/* Urun Rehberi (Product Guide) — PWA / mobile FT card aesthetic */
:root {
    --pi-navy: #003087;
    --pi-navy-hover: #00266c;
    --pi-navy-deep: #001f57;
    --pi-ink: #111827;
    --pi-muted: #6b7280;
    --pi-border: #e5e7eb;
    --pi-soft: #f8fafc;
    --pi-radius: 12px;
    --pi-radius-sm: 8px;
}

.pi-help-trigger {
    white-space: nowrap;
}

.pi-shell-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 24, 64, 0.28);
    z-index: 80;
    backdrop-filter: blur(2px);
}

.pi-shell {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 100vw);
    height: 100vh;
    z-index: 81;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: var(--pi-ink);
    border-left: 1px solid var(--pi-border);
    box-shadow: -12px 0 40px rgba(0, 48, 135, 0.12);
    border-radius: 16px 0 0 16px;
    overflow: hidden;
}

.pi-shell__accent {
    height: 4px;
    width: 100%;
    background: var(--pi-navy);
    flex-shrink: 0;
}

.pi-shell__header {
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--pi-border);
    background: #fff;
}

.pi-shell__brand {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.pi-shell__logo-wrap {
    width: 52px;
    height: 52px;
    border-radius: var(--pi-radius-sm);
    border: 1px solid #f3f4f6;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.pi-shell__logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.pi-shell__brand-text {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
}

.pi-shell__eyebrow {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--pi-ink);
    line-height: 1.25;
    text-transform: none;
}

.pi-shell__eyebrow-en {
    margin: 3px 0 0;
    font-size: 13px;
    color: var(--pi-muted);
    line-height: 1.3;
}

.pi-shell__title {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--pi-ink);
}

.pi-shell__status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0;
    font-size: 12px;
    color: var(--pi-muted);
}

.pi-shell__route {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
}

.pi-shell__close {
    border: 0;
    background: transparent;
    color: #9ca3af;
    width: 32px;
    height: 32px;
    border-radius: var(--pi-radius-sm);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -4px -4px 0 0;
    flex-shrink: 0;
}
.pi-shell__close:hover {
    color: var(--pi-navy);
    background: var(--pi-soft);
}

.pi-shell__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--pi-border);
    background: var(--pi-soft);
}

.pi-shell__tab {
    border: 1px solid transparent;
    background: #fff;
    color: var(--pi-muted);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pi-shell__tab:hover {
    color: var(--pi-navy);
    border-color: #dbe3f4;
}
.pi-shell__tab.on {
    background: var(--pi-navy);
    border-color: var(--pi-navy);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 48, 135, 0.22);
}

.pi-shell__body {
    flex: 1;
    overflow: auto;
    padding: 20px;
    font-size: 14px;
    line-height: 1.55;
    color: #1f2937;
}

.pi-shell__body h3 {
    margin: 1.15rem 0 .45rem;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--pi-muted);
}
.pi-shell__body h3:first-child { margin-top: 0; }

.pi-shell__body ul, .pi-shell__body ol { padding-left: 1.2rem; margin: 0.35rem 0 0.75rem; }
.pi-shell__body p { margin: 0.25rem 0 0.75rem; }

.pi-why {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: var(--pi-radius);
    background: linear-gradient(180deg, #f3f6fc 0%, #fff 100%);
    border: 1px solid #dbe3f4;
}
.pi-why__label {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--pi-navy);
}
.pi-why__text {
    margin: 0 !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--pi-ink);
}

.pi-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: .04em;
    background: #eef2ff;
    color: var(--pi-navy);
}
.pi-pill--live {
    background: #ecfdf5;
    color: #047857;
    box-shadow: inset 0 0 0 1px rgba(4, 120, 87, 0.15);
}
.pi-pill--stub {
    background: #fffbeb;
    color: #b45309;
}
.pi-pill--partial, .pi-pill--in_scope {
    background: #eff6ff;
    color: #1d4ed8;
}

.pi-callout {
    margin: 12px 0;
    padding: 12px 14px;
    border: 1px solid var(--pi-border);
    border-radius: var(--pi-radius-sm);
    background: var(--pi-soft);
}
.pi-callout--warn {
    border-color: #fcd34d;
    background: #fffbeb;
}

.pi-muted { color: var(--pi-muted); }
.pi-linkish {
    border: 0;
    background: none;
    color: var(--pi-navy);
    cursor: pointer;
    padding: 0;
    text-align: left;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
}
.pi-linkish:hover { text-decoration: underline; }

.pi-component-list li {
    margin-bottom: 10px;
    display: grid;
    gap: 2px;
}

.pi-mermaid-card {
    padding: 4px;
    border-radius: var(--pi-radius);
    background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
    border: 1px solid #dbe3f4;
    margin-bottom: 12px;
}
.pi-mermaid {
    margin: 0;
    padding: 14px;
    border-radius: calc(var(--pi-radius) - 2px);
    background: #fff;
    overflow: auto;
    font-size: 12px;
    white-space: pre-wrap;
    border: 0;
}

.pi-pres-durations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.pi-pres-durations button,
.pi-pres-actions button,
.pi-btn-ghost {
    border: 1px solid var(--pi-border);
    background: #fff;
    color: #4b5563;
    border-radius: var(--pi-radius-sm);
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}
.pi-pres-durations button.on {
    color: #fff;
    border-color: var(--pi-navy);
    background: var(--pi-navy);
}
.pi-pres-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pi-pres-step__meta { color: var(--pi-muted); font-size: 12px; margin: 0 0 6px; font-weight: 600; }
.pi-pres-pitch {
    padding: 16px;
    border-radius: var(--pi-radius);
    background: var(--pi-soft);
    border: 1px solid var(--pi-border);
}
.pi-pres-pitch__text {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--pi-ink);
    margin: 0 !important;
}

.pi-btn-primary {
    border: 0;
    background: var(--pi-navy);
    color: #fff;
    border-radius: var(--pi-radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.pi-btn-primary:hover { background: var(--pi-navy-hover); }
.pi-btn-primary:active { background: var(--pi-navy-deep); }
.pi-btn-ghost:hover { color: var(--pi-navy); background: var(--pi-soft); }

.pi-nav-list {
    list-style: none;
    padding: 0 !important;
    margin: 0;
    display: grid;
    gap: 10px;
}
.pi-nav-card {
    width: 100%;
    text-align: left;
    display: grid;
    gap: 3px;
    padding: 14px 16px;
    border-radius: var(--pi-radius);
    border: 1px solid var(--pi-border);
    background: #fff;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.pi-nav-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 14px rgba(0, 48, 135, 0.08);
}
.pi-nav-card--static { cursor: default; }
.pi-nav-card__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--pi-ink);
}
.pi-nav-card__sub {
    font-size: 12px;
    color: var(--pi-muted);
    word-break: break-all;
}

.pi-shell__footer {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 14px 20px 18px;
    border-top: 1px solid var(--pi-border);
    background: #fff;
}
.pi-shell__cta {
    flex: 1;
    height: 44px;
}
.pi-btn-ghost { height: 44px; }

.pi-spotlight {
    outline: 3px solid var(--pi-navy) !important;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(0, 48, 135, 0.18) !important;
    transition: outline-color .2s ease;
}

@media (max-width: 720px) {
    .pi-shell {
        width: 100vw;
        border-radius: 16px 16px 0 0;
        top: auto;
        bottom: 0;
        height: min(92vh, 100%);
        box-shadow: 0 -8px 32px rgba(0, 48, 135, 0.12);
    }
}
