/* =====================================================================
   ILS — Documentation Redesign
   Modern, user-friendly re-skin. Preserves every existing Polaris /
   doc-tab / toggle class so the underlying markup + jQuery toggles
   keep working unchanged.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
    --brand:           #008060;
    --brand-2:         #00a47c;
    --brand-dark:      #004c3f;
    --brand-soft:      #e3f5ee;
    --brand-grad:      linear-gradient(135deg,#004c3f 0%,#008060 50%,#00a47c 100%);
    --hero-grad:       linear-gradient(135deg,#002e25 0%,#004c3f 35%,#008060 75%,#00a47c 100%);
    --accent:          #5563c1;

    --bg:              #ffffff;
    --bg-soft:         #f6f8fb;
    --bg-elev:         #ffffff;
    --bg-tabs:         #eaf3ef;
    --surface:         #ffffff;

    --text:            #0f172a;
    --text-muted:      #5b6b7a;
    --text-dim:        #94a0ae;
    --text-on-brand:   #ffffff;

    --border:          #e3e7ec;
    --border-strong:   #cbd2da;

    --shadow-sm:       0 1px 2px rgba(15,23,42,.05);
    --shadow:          0 2px 8px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
    --shadow-lg:       0 10px 40px rgba(15,23,42,.08), 0 2px 8px rgba(15,23,42,.04);
    --shadow-brand:    0 10px 28px rgba(0,128,96,.22);

    --radius-sm:       8px;
    --radius:          12px;
    --radius-lg:       16px;
    --radius-xl:       22px;

    --sans:            "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono:            "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

[data-theme="dark"] {
    --bg:              #0b1019;
    --bg-soft:         #131a26;
    --bg-elev:         #161f2e;
    --bg-tabs:         #0e1622;
    --surface:         #161f2e;

    --text:            #e8eef5;
    --text-muted:      #97a5b8;
    --text-dim:        #6a7a8f;

    --border:          #232c3d;
    --border-strong:   #313a52;

    --brand-soft:      #0c2922;

    --shadow:          0 2px 8px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.3);
    --shadow-lg:       0 10px 40px rgba(0,0,0,.5);
}

/* ---------- Base resets ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0; padding: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.65 var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { vertical-align: middle; max-width: 100%; }
svg { display: inline-block; vertical-align: middle; fill: currentColor; }
a {
    color: var(--brand);
    text-decoration: none;
    transition: color .2s ease;
}
a:hover, a:focus {
    color: var(--brand-dark);
    text-decoration: none;
    outline: none;
    opacity: 1;
}

/* layout helpers preserved */
.w-left { width: 100%; float: left; }
.d-flex { display: flex; flex-wrap: wrap; }
.flex-center { justify-content: center; }
.align-center { align-items: center; }
.flex-auto { flex: 0 0 auto; }
.align-end { align-items: flex-end; }
.flex-space { justify-content: space-between; }
.text-center { text-align: center; }
.text-right { text-align: right !important; }
.m-b-2rem { margin-bottom: 2rem; }
.m-t-1rem { margin-top: 1rem; }
.m-t-2rem { margin-top: 2rem; }
.m-b-0 { margin-bottom: 0; }
.p-2rem { padding: 2rem; }
.p-t-1 { padding-top: 1rem; }
.p_f_1rem { padding-left: 1rem; }
.w-img { width: 420px; max-width: 100%; }
.c_red { color: #d92d20; }
.txt_color { color: var(--text-muted); }
.bg_color_set { background-color: var(--bg-soft); }
.list_style_none { list-style: none; }

/* ---------- Sticky scroll progress bar ---------- */
.doc-scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
    z-index: 9999; transition: width .1s ease;
}

/* ---------- Section + container ---------- */
.doc-section { width: 100%; float: left; }
.doc-container {
    max-width: 1240px; margin: 0 auto;
    padding: 22px 24px;
    justify-content: space-between;
}

/* ---------- SIDEBAR LAYOUT (replaces hero + top tab grid) ---------- */
/* Slim sticky topbar */
.doc-topbar {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; gap: 16px;
    height: 62px; padding: 0 22px;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.doc-topbar-brand {
    display: flex; align-items: center; gap: 12px;
    color: var(--text); font-weight: 700; font-size: 15px;
    text-decoration: none;
}
.doc-topbar-brand:hover { color: var(--text); text-decoration: none; }
.doc-topbar-brand img { height: 28px; width: auto; }
.doc-topbar-name { letter-spacing: -.01em; }
.doc-topbar-badge {
    font-size: 11px; font-weight: 700;
    background: var(--brand-soft); color: var(--brand);
    padding: 3px 10px; border-radius: 20px;
    letter-spacing: .04em; text-transform: uppercase;
}
.doc-topbar-search {
    flex: 1; max-width: 460px; margin: 0 auto;
    position: relative;
}
.doc-topbar-search input {
    width: 100%; height: 40px;
    padding: 0 40px 0 38px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    font: 14px var(--sans); color: var(--text);
    transition: all .15s ease;
}
.doc-topbar-search input::placeholder { color: var(--text-dim); }
.doc-topbar-search input:focus {
    outline: none;
    background: var(--bg);
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-soft);
}
.doc-topbar-search .doc-search-icon {
    position: absolute; left: 12px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim); pointer-events: none;
}
.doc-topbar-search .doc-search-kbd {
    position: absolute; right: 10px; top: 50%;
    transform: translateY(-50%);
    font: 11px var(--mono); color: var(--text-dim);
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 2px 7px; border-radius: 5px;
}
.doc-topbar-actions {
    display: flex; gap: 8px; align-items: center;
}
.doc-topbar-cta {
    display: inline-flex; align-items: center;
    height: 38px; padding: 0 16px;
    background: var(--brand-grad); color: #fff;
    border-radius: 9px;
    font: 14px var(--sans); font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,128,96,.22);
    transition: transform .15s ease, box-shadow .15s ease;
}
.doc-topbar-cta:hover {
    color: #fff; text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,128,96,.32);
}
.doc-topbar .doc-theme-toggle {
    width: 38px; height: 38px;
    background: var(--bg-soft); color: var(--text);
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    backdrop-filter: none;
}
.doc-topbar .doc-theme-toggle:hover {
    background: var(--brand-soft); color: var(--brand);
    transform: translateY(-1px);
}
.doc-sidebar-toggle {
    display: none;
    width: 38px; height: 38px;
    background: var(--bg-soft); color: var(--text);
    border: 1px solid var(--border-strong);
    border-radius: 9px; cursor: pointer;
    align-items: center; justify-content: center;
}

/* 2-col layout */
.doc-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 62px);
    align-items: stretch;
}

/* Sidebar */
.doc-sidebar {
    position: sticky; top: 62px;
    height: calc(100vh - 62px); overflow-y: auto;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    padding: 18px 0 24px;
    scrollbar-width: thin;
}
.doc-sidebar::-webkit-scrollbar { width: 6px; }
.doc-sidebar::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.doc-sidebar nav { padding: 0; }
.doc-sidebar-group { padding: 8px 14px 14px; }
.doc-sidebar-group + .doc-sidebar-group {
    border-top: 1px solid var(--border);
    padding-top: 14px;
}
.doc-sidebar-group h4 {
    margin: 4px 0 8px;
    font-size: 11px; font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase; letter-spacing: .1em;
    padding: 0 10px;
}
.doc-sidebar nav ul { list-style: none; margin: 0; padding: 0; }
.doc-sidebar nav li { margin: 0; padding: 0; }

/* Sidebar nav item — replaces .select-doc-tab card styling */
.doc-nav-item.select-doc-tab,
a.doc-nav-item {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 9px 12px !important;
    margin: 2px 0;
    border-radius: 8px;
    color: var(--text-muted) !important;
    font-size: 14px; font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, transform .15s ease;
    min-height: 0 !important;
    flex-wrap: nowrap !important;
    overflow: hidden;
}
.doc-nav-item.select-doc-tab::before { display: none !important; }
.doc-nav-item:hover {
    background: #eef3f0 !important;
    color: var(--brand-dark) !important;
    transform: translateX(2px);
    text-decoration: none;
}
.doc-nav-item.active {
    background: var(--brand-grad) !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0,128,96,.22) !important;
    transform: none;
}
.doc-nav-item.active:hover { color: #fff !important; }
.doc-nav-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--brand);
    flex-shrink: 0;
    opacity: .6;
    transition: opacity .15s, background-color .15s, transform .15s;
}
.doc-nav-item:hover .doc-nav-dot { opacity: 1; transform: scale(1.2); }
.doc-nav-item.active .doc-nav-dot { background: #fff; opacity: 1; }
.doc-nav-ext {
    margin-left: auto;
    font-size: 10px; font-weight: 700;
    color: var(--brand);
    background: var(--brand-soft);
    padding: 2px 7px; border-radius: 10px;
    letter-spacing: .05em;
}
.doc-nav-item.active .doc-nav-ext {
    background: rgba(255,255,255,.22);
    color: #fff;
}

/* Main content area */
.doc-main {
    min-width: 0;
    padding: 8px 0 0;
}
.doc-main .doc-container { padding: 28px 28px; max-width: none; }
.doc-main .doc-tab-collps { padding: 0; }

/* ---------- Hero (main-doc-sec) ---------- */
.main-doc-sec {
    position: relative;
    float: left; width: 100%;
    padding: 14px 0 64px;
    background: var(--hero-grad);
    color: var(--text-on-brand);
    overflow: hidden;
    isolation: isolate;
}
.main-doc-sec::before {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(900px 400px at 20% 0%, rgba(255,255,255,.10), transparent 60%),
        radial-gradient(700px 400px at 90% 100%, rgba(255,255,255,.08), transparent 60%);
    pointer-events: none;
}
.main-doc-sec::after {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    pointer-events: none;
}

.doc-logo img,
.doc-logo .Polaris-TopBar__Logo { max-height: 32px; filter: brightness(0) invert(1); }
.app_name_css {
    color: #fff;
    margin-left: 14px;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -.01em;
}

/* Header button row utilities */
.doc-header-actions {
    display: flex; gap: 10px; align-items: center;
}
.doc-search-wrap {
    position: relative; margin: 18px auto 0;
    width: 100%; max-width: 620px;
}
.doc-search-wrap input {
    width: 100%; height: 50px;
    padding: 0 56px 0 50px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 14px;
    color: #fff;
    font: 15px/1.4 var(--sans);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all .18s ease;
}
.doc-search-wrap input::placeholder { color: rgba(255,255,255,.7); }
.doc-search-wrap input:focus {
    outline: none;
    background: rgba(255,255,255,.95);
    color: var(--text);
    border-color: #fff;
    box-shadow: 0 0 0 5px rgba(255,255,255,.18);
}
.doc-search-wrap input:focus::placeholder { color: var(--text-dim); }
.doc-search-wrap .doc-search-icon {
    position: absolute; left: 18px; top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,.85);
    pointer-events: none; transition: color .18s ease;
}
.doc-search-wrap input:focus + .doc-search-icon,
.doc-search-wrap input:focus ~ .doc-search-icon { color: var(--text-dim); }
.doc-search-wrap .doc-search-kbd {
    position: absolute; right: 14px; top: 50%;
    transform: translateY(-50%);
    font: 11px var(--mono); color: rgba(255,255,255,.85);
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.25);
    padding: 3px 8px; border-radius: 6px;
}
.doc-search-wrap input:focus ~ .doc-search-kbd { display: none; }

.goto-btn .Polaris-Button.Polaris-Button--primary {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.4);
    color: #fff;
    min-width: inherit; min-height: 38px;
    padding: 6px 18px; border-radius: 9px;
    font-weight: 600;
    box-shadow: none;
    backdrop-filter: blur(8px);
    transition: all .15s ease;
}
.goto-btn .Polaris-Button.Polaris-Button--primary:hover,
.goto-btn .Polaris-Button.Polaris-Button--primary:focus {
    background: #fff;
    color: var(--brand-dark);
    transform: translateY(-1px);
}

/* Theme toggle button (added via JS) */
.doc-theme-toggle {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 9px;
    color: #fff;
    cursor: pointer;
    transition: all .15s ease;
    backdrop-filter: blur(8px);
}
.doc-theme-toggle:hover { background: #fff; color: var(--brand-dark); transform: translateY(-1px); }
.doc-theme-toggle .sun { display: none; }
[data-theme="dark"] .doc-theme-toggle .sun { display: block; }
[data-theme="dark"] .doc-theme-toggle .moon { display: none; }

.main-doc-sec .Polaris-TextContainer {
    margin: 26px 0 4px; text-align: center;
}
.main-doc-sec .Polaris-TextContainer .Polaris-DisplayText {
    font-weight: 800;
    font-size: clamp(1.9rem, 3.2vw, 2.7rem);
    color: #fff;
    letter-spacing: -.02em;
    line-height: 1.15;
}
.main-doc-sec .Polaris-TextContainer .Polaris-DisplayText::before {
    content: "✨ ";
    font-size: .8em;
}
.doc-hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 0 auto;
    padding: 6px 14px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 30px;
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    backdrop-filter: blur(8px);
}
.doc-hero-tag .dot {
    width: 7px; height: 7px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(74,222,128,.25);
}

/* ---------- Tabs (modern card grid — NOT sticky, scrolls with page) ---------- */
.doc-tabs {
    background: var(--bg-tabs);
    padding: 32px 0 18px;
    border-bottom: 1px solid var(--border);
}

.doc-tab-info {
    margin: 0 -8px; padding: 0;
    list-style: none;
}
.doc-tab-info li {
    width: 33.33%;
    padding: 0 8px;
    margin-bottom: 16px;
}

.select-doc-tab {
    background: var(--surface);
    padding: 18px 22px;
    position: relative;
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap !important;
    gap: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    overflow: hidden;
    min-height: 78px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}
.select-doc-tab::before {
    content: "";
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--brand-grad);
    transform: scaleY(0); transform-origin: top;
    transition: transform .25s ease;
}
.select-doc-tab:hover {
    border-color: var(--brand-2);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.select-doc-tab:hover::before { transform: scaleY(1); }
.select-doc-tab.active {
    background: var(--brand-grad);
    border-color: transparent;
    box-shadow: var(--shadow-brand);
    transform: translateY(-1px);
}
.select-doc-tab.active::before { transform: scaleY(1); background: rgba(255,255,255,.6); }

.doc-tab-icon {
    flex-shrink: 0;
    width: 52px; height: 52px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-soft);
    border-radius: 12px;
    transition: background-color .18s ease;
}
.doc-tab-icon svg {
    height: 28px; width: 28px;
    fill: var(--brand);
    transition: fill .18s ease;
}
.select-doc-tab:hover .doc-tab-icon { background: rgba(0,128,96,.18); }
.select-doc-tab.active .doc-tab-icon { background: rgba(255,255,255,.18); }
.select-doc-tab.active .doc-tab-icon svg { fill: #fff; }

.doc-tab-content {
    flex: 1 1 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
}
.doc-tab-content .Polaris-DisplayText {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--text);
    letter-spacing: -.01em;
    line-height: 1.3;
}
.select-doc-tab.active .doc-tab-content .Polaris-DisplayText { color: #fff; }
.doc-tab-content svg {
    margin: 0 !important;
    height: 16px; width: 16px;
    fill: var(--text-dim);
    flex-shrink: 0;
    transition: all .25s ease;
}
.select-doc-tab:hover .doc-tab-content svg { fill: var(--brand); transform: translateX(3px) rotate(0deg); }
.select-doc-tab.active .doc-tab-content svg { fill: #fff; transform: rotate(90deg); }

/* ---------- Tab body container ---------- */
.doc-tab-collps {
    padding: 36px 0 24px;
    background: var(--bg);
}
.doc-tab-intro {
    min-height: 60vh;
    animation: fadeUp .35s ease both;
}
.doc-tab-intro.hide { display: none; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.doc-tab-intro > .Polaris-TextContainer {
    margin: 4px 0 28px;
}
.doc-tab-intro > .Polaris-TextContainer .Polaris-DisplayText {
    font-weight: 800;
    font-size: clamp(1.7rem, 2.6vw, 2.2rem);
    color: var(--text);
    letter-spacing: -.02em;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}
.doc-tab-intro > .Polaris-TextContainer .Polaris-DisplayText::after {
    content: "";
    position: absolute;
    left: 50%; transform: translateX(-50%);
    bottom: 0;
    width: 56px; height: 4px;
    background: var(--brand-grad);
    border-radius: 2px;
}

/* ---------- Main content / cards (Polaris-Card re-skin) ---------- */
.Polaris-Card.main_content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.Polaris-Card.main_content:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
}
.Polaris-Card.main_content:focus-within {
    border-color: var(--brand);
}

.Polaris-Card__Section.toggle-now {
    padding: 18px 22px;
    cursor: pointer;
    background: var(--surface);
    transition: background-color .15s ease;
}
.Polaris-Card__Section.toggle-now:hover {
    background: var(--bg-soft);
}
.toggle-now.toggle_content_active {
    background: var(--brand-soft);
    border-bottom: 1px solid var(--border);
}
.toggle-content {
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
}
.toggle-content .Polaris-TextContainer {
    padding-right: 15px;
    width: calc(100% - 50px);
}
.toggle-content .Polaris-Heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -.01em;
    margin: 0;
    display: flex; align-items: center; gap: 10px;
}
.toggle-content .Polaris-TextStyle--variationSubdued {
    display: block;
    color: var(--text-muted);
    font-size: 13.5px;
    margin-top: 4px;
    line-height: 1.55;
}
.toggle-now.toggle_content_active .toggle-content .Polaris-Heading {
    color: var(--brand-dark);
}

.toggle-content .Polaris-SettingAction__Action {
    margin: 0;
    flex-shrink: 0;
    width: 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bg-soft);
    border-radius: 50%;
    border: 1px solid var(--border);
    transition: all .2s ease;
}
.Polaris-Card__Section.toggle-now:hover .Polaris-SettingAction__Action {
    background: var(--brand-soft);
    border-color: var(--brand);
}
.toggle-now.toggle_content_active .Polaris-SettingAction__Action {
    background: var(--brand);
    border-color: var(--brand);
}
.toggle-now.toggle_content_active .Polaris-SettingAction__Action svg {
    fill: #fff !important;
}
svg.activeToggle {
    display: block;
    height: 11px; width: 11px;
    fill: var(--text-muted);
    cursor: pointer;
    transition: all .3s ease;
}
.toggle-now.toggle_content_active svg.activeToggle {
    transform: rotate(180deg);
}

/* Expanded body */
.Polaris-Card__Section.when-content-toggle {
    padding: 18px 22px 22px;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    animation: slideDown .25s ease both;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Nested Polaris-Card (inner content blocks) */
.Polaris-Card.bg_color_set {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: none;
    margin-bottom: 14px;
    overflow: hidden;
}
.Polaris-Card.bg_color_set:last-child { margin-bottom: 0; }

.Polaris-Card__Header {
    padding: 14px 18px 4px;
}
.Polaris-Card__Header .Polaris-Heading {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 0;
    letter-spacing: -.01em;
}
[data-theme="dark"] .Polaris-Card__Header .Polaris-Heading {
    color: var(--brand-2);
}
.Polaris-Card__Section {
    padding: 14px 18px 16px;
    color: var(--text);
}
.Polaris-Card__Section.p-t-1 { padding-top: 14px; }

/* ---------- Typography reset for Polaris bits ---------- */
.Polaris-Heading {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -.005em;
}
.Polaris-Subheading {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-transform: none;
    letter-spacing: 0;
    margin: 0 0 6px;
}
.Polaris-TextStyle--variationSubdued { color: var(--text-muted); }

p {
    margin: 0 0 10px;
    color: var(--text);
    line-height: 1.65;
}
.txt_color p,
.txt_color li { color: var(--text-muted); }

.Polaris-List {
    padding-left: 22px;
    margin: 8px 0 12px;
}
.Polaris-List__Item {
    line-height: 1.65;
    margin: 0 0 6px;
}
.Polaris-List.mar-left-fiverem { margin-left: 1.5rem; }
.marg-left-three { margin-left: 1rem; }

/* ---------- Why-app process (Slick carousel — keep original layout) ---------- */
/* Slick sets inline widths on the slide track, so we don't fight it.
   We just style the icon + text inside each slide. */
.whyapp_process {
    padding: 20px 0 0;
    overflow: hidden;
}
.whyapp_process_item {
    cursor: pointer;
    width: 50%;
    float: left;
    display: flex !important;
    align-items: center;
    padding: 8px 12px;
}
.whyapp_img {
    width: 20%;
    float: left;
    text-align: center;
}
.whyapp_img svg {
    width: 92px;
    height: 92px;
}
.whyapp_desc {
    width: 80%;
    float: left;
    padding: 0 10px 0 18px;
}
.whyapp_desc h2.Polaris-Subheading {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}
.whyapp_desc ul {
    list-style: none;
    padding: 0; margin: 0;
}
.whyapp_desc ul li.Polaris-List__Item {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}
.whyapp_process .slick-dots {
    text-align: center;
    margin: 28px 0 0;
    line-height: 1;
    width: 100%;
    float: left;
    padding: 0; list-style: none;
}
.whyapp_process .slick-dots li {
    display: inline-block;
    line-height: 1;
    margin: 0 3px;
}
.whyapp_process .slick-dots li button {
    text-indent: -9999px;
    border-radius: 50%;
    border: 0;
    background-color: rgba(0,128,96,.25);
    width: 9px; height: 9px;
    padding: 0;
    cursor: pointer;
    transition: all .3s ease;
}
.whyapp_process .slick-dots li.slick-active button {
    background: var(--brand-grad);
    width: 26px;
    border-radius: 6px;
}
.whyapp_process .slick-dots li button:focus { outline: 0; }

/* ---------- Polaris features (logos / plan-feature row) ---------- */
/* Keep original 6-per-row layout. */
.Polaris_features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.Polaris_features h5.Polaris-Subheading {
    font-size: 13px;
    color: var(--text-muted);
}
.span_one {
    width: 16.66%;
    text-align: center;
    padding: 15px 7.5px;
}
.span_one img { max-width: 100%; }
.span_one svg {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}

/* ---------- Misc utilities preserved ---------- */
.order_process {
    text-decoration: underline;
    font-size: 16px;
    font-weight: 600;
    color: var(--brand);
}
.m_top_10 { margin-top: 10px; }

img.logo_img {
    padding: 8px; margin: 5px;
    border-radius: 8px;
    border: 1px solid var(--border);
    height: 50px;
    background: var(--surface);
    transition: border-color .15s, transform .15s;
}
img.logo_img:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
}
.logo_img {
    margin: 0.5rem 1rem 0.5rem 0;
    height: 31px;
    object-fit: scale-down;
    object-position: bottom;
    max-width: 100%;
}

.plan_img {
    margin-left: 0;
    width: 100%;
    max-width: 720px;
    display: block;
}
.imgset {
    margin: 18px auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 100%;
    transition: transform .2s ease;
}
.imgset:hover { transform: scale(1.005); }
.plan_section .imgset {
    box-shadow: none;
    border: 0;
    margin: 0 auto;
}

.div_display_flex {
    display: flex;
    margin: 0 -10px;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4px;
}
.right-fed-img, .left-fed-img {
    flex: 1 1 360px;
    margin: 0 10px;
    min-width: 0;
}

.main_content .m-t-2rem {
    margin: 12px -5px 0;
    display: flex;
    flex-wrap: wrap;
}

/* Tables (Polaris-DataTable) inside docs */
.tabresize {
    margin: 1rem 0 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.tabresize .Polaris-DataTable__Table {
    border-collapse: collapse;
    width: 100%;
}
.tabresize .Polaris-DataTable__Table .Polaris-DataTable__Cell {
    text-align: left;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid var(--border);
    color: var(--text);
}
.tabresize .Polaris-DataTable__Cell--header {
    font-weight: 700;
    background: var(--brand-soft);
    color: var(--brand-dark);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .04em;
}
[data-theme="dark"] .tabresize .Polaris-DataTable__Cell--header {
    color: var(--brand-2);
}
.tabresize .Polaris-DataTable__Table .Polaris-DataTable__Cell .redClr {
    color: #d92d20;
    font-weight: 600;
}

.Mailinfo {
    margin: 1.5rem 0 .5rem;
    font-size: 15px;
}
.Mailinfo a {
    color: var(--brand);
    text-decoration: underline;
    font-weight: 600;
}

/* ---------- Footer ---------- */
footer {
    background: var(--bg-soft);
    width: 100%;
    float: left;
    padding: 34px 0;
    border-top: 1px solid var(--border);
}
.need-help {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}
.help-box,
.need-help > div {
    display: inline-flex; align-items: center;
}
.need-help p {
    text-align: center;
    font-size: 15px;
    margin: 0;
    color: var(--text-muted);
}
.need-help a {
    color: var(--brand);
    text-decoration: underline;
    font-weight: 600;
}
.need-help a:hover, .need-help a:focus { color: var(--brand-dark); }
.need-help svg {
    fill: var(--brand);
    width: 22px; height: 22px;
}
.Polaris-FooterHelp__Icon,
.Polaris-Icon.Polaris-Icon--colorHighlight {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    background: var(--brand-soft);
    border-radius: 50%;
}

/* ---------- Back-to-top floating button ---------- */
.doc-back-top {
    position: fixed;
    right: 24px; bottom: 24px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--brand-grad);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-brand);
    cursor: pointer;
    border: 0;
    opacity: 0; pointer-events: none;
    transform: translateY(8px);
    transition: all .25s ease;
    z-index: 40;
}
.doc-back-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.doc-back-top:hover { transform: translateY(-3px); }

/* ---------- Search highlight / no-match / cross-tab jump states ---------- */
.doc-search-hidden { display: none !important; }
.doc-search-match {
    box-shadow: 0 0 0 2px var(--brand-soft), 0 1px 2px rgba(15,23,42,.05) !important;
    border-color: var(--brand) !important;
}
.doc-search-empty {
    background: var(--bg-soft);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    color: var(--text-muted);
    padding: 20px 22px;
    text-align: center;
    font-size: 14.5px;
    margin: 0 0 18px;
}
.doc-search-empty strong { color: var(--text); font-weight: 600; }

.doc-search-jump {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    background: var(--brand-soft);
    border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
    border-left: 4px solid var(--brand);
    border-radius: var(--radius);
    margin: 0 0 18px;
    font-size: 13.5px;
}
.doc-search-jump .dsj-label {
    color: var(--brand-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 11px;
    margin-right: 4px;
}
.doc-search-jump .dsj-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff;
    border: 1px solid var(--brand);
    color: var(--brand-dark);
    padding: 5px 12px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all .15s ease;
}
.doc-search-jump .dsj-pill:hover {
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}
.doc-search-jump .dsj-pill em {
    font-style: normal;
    background: var(--brand-soft);
    color: var(--brand);
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}
.doc-search-jump .dsj-pill:hover em {
    background: rgba(255,255,255,.25);
    color: #fff;
}
[data-theme="dark"] .doc-search-jump .dsj-pill { background: var(--surface); }
[data-theme="dark"] .doc-search-jump .dsj-pill:hover { background: var(--brand); }

/* ---------- Focus ring ---------- */
div:focus,
a:focus,
button:focus { outline: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* ---------- Sidebar responsive: collapse to slide-over on small screens ---------- */
@media only screen and (max-width: 900px) {
    .doc-sidebar-toggle { display: inline-flex; }
    .doc-topbar-search { display: none; }
    .doc-topbar-name { display: none; }

    .doc-layout { grid-template-columns: 1fr; }
    .doc-sidebar {
        position: fixed;
        top: 62px; left: 0; bottom: 0;
        width: 280px; height: calc(100vh - 62px);
        z-index: 49;
        transform: translateX(-100%);
        transition: transform .22s ease;
        box-shadow: 0 12px 30px rgba(0,0,0,.16);
    }
    .doc-sidebar.open { transform: translateX(0); }
    .doc-sidebar-backdrop {
        position: fixed; inset: 62px 0 0 0;
        background: rgba(15,23,42,.42);
        opacity: 0; pointer-events: none;
        transition: opacity .2s ease;
        z-index: 48;
    }
    .doc-sidebar-backdrop.show {
        opacity: 1; pointer-events: auto;
    }
    .doc-main .doc-container { padding: 18px 16px; }
}

/* ---------- Responsive ---------- */
@media only screen and (max-width: 991px) {
    .Polaris_features { display: block; }
    .span_one { width: 33.33%; float: left; }
    .doc-tab-info li { width: 50%; }
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .whyapp_img { width: 30%; }
    .whyapp_desc { width: 70%; }
}
@media only screen and (max-width: 767px) {
    .doc-container { padding: 16px 16px; }
    .main-doc-sec { position: relative; padding-bottom: 44px; }
    .flex-space {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        padding: 16px 0 18px;
        border-bottom: 1px solid rgba(255,255,255,.18);
    }
    .doc-logo { flex-direction: column; text-align: center; gap: 8px; }
    .app_name_css { margin-left: 0; font-size: 1.2rem; }
    .doc-header-actions { margin-top: 14px; }
    .goto-btn .Polaris-Button.Polaris-Button--primary { padding: .4rem 1rem; }
    .goto-btn .Polaris-Button.Polaris-Button--primary .Polaris-Button__Text { font-size: 13px; }
    .main-doc-sec .Polaris-TextContainer { margin: 18px 0 0; }
    .main-doc-sec .Polaris-TextContainer .Polaris-DisplayText { font-size: 1.6rem; line-height: 1.3; }
    .doc-search-wrap { margin-top: 14px; }
    .doc-search-wrap input { height: 46px; }

    .doc-tabs {
        padding: 16px 0 4px;
    }
    .doc-tab-info { margin: 0 -6px; }
    .doc-tab-info li {
        width: 50%; padding: 0 6px;
        margin-bottom: 12px;
        display: flex; flex-wrap: wrap;
    }
    .select-doc-tab {
        flex-direction: column;
        flex: 1 1 auto;
        align-items: flex-start;
        padding: 14px;
        gap: 10px;
        min-height: 0;
    }
    .doc-tab-icon { width: 42px; height: 42px; }
    .doc-tab-icon svg { height: 22px; width: 22px; }
    .doc-tab-content { flex: 1 1 auto; width: 100%; }
    .doc-tab-content .Polaris-DisplayText { font-size: 1.2rem; }
    .doc-tab-collps { padding: 22px 0 16px; }
    .doc-tab-intro > .Polaris-TextContainer .Polaris-DisplayText { font-size: 1.7rem; }
    .Polaris-Card__Section.toggle-now { padding: 14px 16px; }
    .Polaris-Card__Section.when-content-toggle { padding: 14px 16px 16px; }
    .Polaris-Card__Header { padding: 12px 14px 0; }
    .Polaris-Card__Section { padding: 12px 14px 14px; }
    .Polaris-Heading { font-size: 1.1rem; }
    p,
    .Polaris-TextStyle--variationSubdued,
    .Polaris-List__Item { font-size: 14px; }
    .imgset { margin: 14px auto; }
    .m-b-2rem { margin-bottom: 1.4rem; }
    .logo_img { height: 28px; }
    .m-b-0 { margin-bottom: .4rem; }
    .Polaris-List.mar-left-fiverem { margin-left: 1.4rem; }
    .marg-left-three { margin-left: 0.8rem; }
    .whyapp_process_item { display: block !important; }
    .whyapp_desc, .whyapp_img { width: 100%; }
    .whyapp_img {
        text-align: center;
        margin-bottom: 10px;
    }
    .whyapp_desc { padding: 0; text-align: center; }
    .doc-back-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
    .span_one { width: 50%; }
}
@media only screen and (max-width: 575px) {
    .span_one { width: 50%; }
    .need-help p { font-size: 14px; }
    .need-help { flex-wrap: wrap; }
}
@media only screen and (max-width: 479px) {
    .span_one { width: 100%; }
    .doc-tab-info li { width: 100%; }
}
