:root {
    --ipp-gold: #c2a25a;
    --ipp-gold-dark: #8b6a19;
    --ipp-ink: #252830;
    --ipp-muted: #657083;
    --ipp-line: #e5e0d4;
    --ipp-bg: #f7f5ef;
    --ipp-card: #ffffff;
    --ipp-danger: #c42f36;
    --ipp-success: #1f8a4c;
    --ipp-shadow: 0 18px 50px rgba(34, 31, 25, .11);
}

* { box-sizing: border-box; }
html {
    min-height: 100%;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
body.ipp-search-public,
body.ipp-search-app {
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
    color: var(--ipp-ink);
    background: var(--ipp-bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: var(--ipp-gold-dark); }
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--ipp-gold);
}
.ipp-shell {
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
.ipp-shell--public {
    background:
        radial-gradient(circle at 20% 18%, rgba(194, 162, 90, .22), transparent 28%),
        radial-gradient(circle at 78% 62%, rgba(255, 255, 255, .52), transparent 32%),
        linear-gradient(135deg, rgba(18, 18, 20, .82), rgba(39, 36, 28, .66)),
        repeating-linear-gradient(112deg, rgba(194, 162, 90, .16) 0 2px, transparent 2px 90px),
        #191817;
}
.ipp-footer {
    margin-top: auto;
    padding: 18px 22px;
    text-align: center;
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
}
.ipp-shell--app .ipp-footer {
    color: #817868;
    background: transparent;
}

.ipp-public {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 32px;
}
.ipp-public--landing .ipp-public__brand {
    color: #fff;
    text-align: center;
}
.ipp-logo-mark {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-grid;
    place-items: center;
    background: #fff;
    color: #050505;
    font-weight: 900;
    letter-spacing: -1px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}
.ipp-public__brand .ipp-logo-mark {
    width: 92px;
    height: 92px;
    font-size: 34px;
}
.ipp-public-logo {
    width: min(240px, 62vw);
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .26));
}
.ipp-public__brand p {
    margin: 18px 0 0;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-weight: 800;
}

.ipp-login-card,
.ipp-public__panel {
    width: min(440px, calc(100vw - 32px));
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 22px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
    backdrop-filter: blur(18px);
}
.ipp-login-card h1,
.ipp-public__panel h1 {
    margin: 18px 0 8px;
    font-size: 30px;
}
.ipp-login-card p,
.ipp-public__panel p {
    color: var(--ipp-muted);
}
.ipp-login-card__logo {
    width: 132px;
    height: auto;
    display: block;
    margin: 0 0 12px;
}
.ipp-login-card label,
.ipp-support-card label {
    display: block;
    margin: 16px 0 7px;
    font-weight: 800;
}
.ipp-login-card input[type="text"],
.ipp-login-card input[type="password"],
.ipp-support-card textarea {
    width: 100%;
    border: 1px solid #d7d1c4;
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 16px;
    background: #fff;
}
.ipp-login-card__remember,
.ipp-support-card__check {
    display: flex !important;
    align-items: center;
    gap: 10px;
    font-weight: 700 !important;
}
.ipp-public__mark {
    color: var(--ipp-gold-dark);
    font-weight: 900;
    font-size: 18px;
}

.ipp-button,
.button,
.button-primary,
input[type="submit"] {
    border-radius: 10px !important;
    border: 1px solid var(--ipp-gold) !important;
    background: #fff !important;
    color: var(--ipp-gold-dark) !important;
    min-height: 42px;
    padding: 9px 16px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    cursor: pointer;
}
.ipp-button--gold,
.button-primary,
input[type="submit"] {
    background: var(--ipp-gold) !important;
    color: #fff !important;
}
.ipp-button:hover,
.button:hover,
.button-primary:hover,
input[type="submit"]:hover {
    filter: brightness(.96);
}

.ipp-alert,
.notice {
    margin: 16px 0;
    padding: 13px 15px;
    border-radius: 12px;
    border-left: 5px solid var(--ipp-gold);
    background: #fff8e8;
}
.ipp-alert--error,
.notice-error {
    border-left-color: var(--ipp-danger);
    background: #fff1f2;
}
.ipp-alert--success,
.notice-success {
    border-left-color: var(--ipp-success);
    background: #effaf3;
}

.ipp-app-header {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 26px;
    border-bottom: 1px solid rgba(194, 162, 90, .32);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 12px 30px rgba(36, 33, 25, .08);
    backdrop-filter: blur(16px);
}
.ipp-app-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #111;
    text-decoration: none;
    font-weight: 950;
    font-size: 20px;
}
.ipp-app-logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
}
.ipp-app-logo .ipp-logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #111;
    color: #fff;
    box-shadow: none;
}
.ipp-app-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ipp-app-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 13px;
    border-radius: 10px;
    color: var(--ipp-ink);
    text-decoration: none;
    font-weight: 850;
}
.ipp-app-nav a:hover,
.ipp-app-nav a.is-active {
    background: var(--ipp-gold);
    color: #fff;
}
.ipp-nav-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: var(--ipp-danger);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    box-shadow: 0 0 0 2px #fff;
}

.ipp-app-main {
    width: 100%;
    max-width: 1720px;
    margin: 26px auto 44px;
    padding: 0 clamp(12px, 2vw, 26px);
    overflow: hidden;
}
.ipp-plugin-wrap,
.ipp-help {
    width: 100%;
    max-width: 100%;
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--ipp-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--ipp-shadow);
}
.ipp-plugin-wrap h1,
.ipp-help h1 {
    margin-top: 0;
    font-size: clamp(30px, 3vw, 44px);
}
.ipp-plugin-wrap h2 {
    margin-top: 26px;
}
.ipp-plugin-wrap table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--ipp-line);
    border-radius: 12px;
    overflow: hidden;
}
.ipp-responsive-table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
}
.ipp-responsive-table table {
    min-width: 1100px;
}
.ipp-plugin-wrap th,
.ipp-plugin-wrap td {
    padding: 12px 14px;
    border-bottom: 1px solid #eee9dd;
    text-align: left;
    vertical-align: top;
}
.ipp-plugin-wrap tr:nth-child(even) td {
    background: #fbfaf6;
}
.ipp-plugin-wrap input[type="text"],
.ipp-plugin-wrap input[type="search"],
.ipp-plugin-wrap input[type="url"],
.ipp-plugin-wrap input[type="number"],
.ipp-plugin-wrap select,
.ipp-plugin-wrap textarea,
.ipp-support-card textarea {
    max-width: 100%;
    border: 1px solid #d7d1c4;
    border-radius: 10px;
    min-height: 42px;
    padding: 8px 11px;
}
.ipp-plugin-wrap textarea {
    min-height: 96px;
}
.ipp-shell input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 2px solid #b8b8b8;
    border-radius: 3px;
    background: #fff !important;
    vertical-align: middle;
    margin: 0 6px 0 0;
}
.ipp-shell input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 2px solid #b8b8b8;
    border-radius: 50%;
    background: #fff !important;
    vertical-align: middle;
    margin: 0 6px 0 0;
}
.ipp-shell input[type="checkbox"]:checked,
.ipp-shell input[type="radio"]:checked {
    border-color: var(--ipp-gold);
    background: #fff !important;
}
.ipp-shell input[type="checkbox"]:focus,
.ipp-shell input[type="radio"]:focus {
    outline: 2px solid rgba(194, 162, 90, .35);
    outline-offset: 2px;
}
.ipp-shell input[type="checkbox"]::before,
.ipp-shell input[type="radio"]::before {
    content: "";
    position: absolute;
    display: block;
    opacity: 0;
}
.ipp-shell input[type="checkbox"]::before {
    left: 4px;
    top: 0;
    width: 5px;
    height: 10px;
    border: solid var(--ipp-gold);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.ipp-shell input[type="radio"]::before {
    left: 3px;
    top: 3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ipp-gold);
}
.ipp-shell input[type="checkbox"]:checked::before,
.ipp-shell input[type="radio"]:checked::before {
    opacity: 1;
}
.ipp-shell input[type="text"]:focus,
.ipp-shell input[type="search"]:focus,
.ipp-shell input[type="url"]:focus,
.ipp-shell input[type="number"]:focus,
.ipp-shell input[type="email"]:focus,
.ipp-shell input[type="password"]:focus,
.ipp-shell select:focus,
.ipp-shell textarea:focus {
    border-color: var(--ipp-gold) !important;
    box-shadow: 0 0 0 1px var(--ipp-gold), 0 0 0 4px rgba(194, 162, 90, .18) !important;
    outline: none !important;
}
.ipp-plugin-wrap.is-ajax-loading {
    opacity: .55;
    pointer-events: none;
    transition: opacity .16s ease;
}
.ipp-plugin-wrap .nav-tab-wrapper {
    border-bottom: 1px solid var(--ipp-line);
}
.ipp-plugin-wrap .nav-tab {
    border: 1px solid var(--ipp-line);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    background: #fffaf0;
    color: var(--ipp-gold-dark);
    padding: 10px 14px;
    text-decoration: none;
    font-weight: 900;
}
.ipp-plugin-wrap .nav-tab-active {
    background: var(--ipp-gold);
    color: #fff;
}

.ipp-help__hero {
    max-width: 980px;
    margin-bottom: 24px;
}
.ipp-kicker {
    margin: 0 0 8px;
    color: var(--ipp-gold-dark);
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.ipp-help__grid {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(320px, .9fr);
    gap: 22px;
}
.ipp-support-card,
.ipp-help-card {
    border: 1px solid var(--ipp-line);
    border-radius: 16px;
    padding: 22px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(36, 33, 25, .07);
}
.ipp-help-card details {
    border: 1px solid #eee8da;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 10px 0;
    background: #fffaf0;
}
.ipp-help-card summary {
    cursor: pointer;
    font-weight: 950;
}
.ipp-help-card p {
    color: #4d5564;
}

@media (max-width: 900px) {
    .ipp-app-header {
        position: static;
        align-items: flex-start;
        flex-direction: column;
    }
    .ipp-app-main {
        margin-top: 14px;
    }
    .ipp-plugin-wrap,
    .ipp-help {
        padding: 16px;
    }
    .ipp-help__grid {
        grid-template-columns: 1fr;
    }
    .ipp-responsive-table {
        margin-left: -4px;
        padding-bottom: 8px;
    }
}

@media (max-width: 700px) {
    .ipp-public {
        padding: 18px;
    }
    .ipp-app-nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ipp-app-nav a {
        text-align: center;
    }
    .ipp-plugin-wrap h1,
    .ipp-help h1 {
        font-size: clamp(28px, 9vw, 38px);
    }
}
