/* Layout Grid */
.app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
}

/* Common Panel Styles */
.panel {
    background: var(--studio-panel);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-light);
}

.pane-scroll {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.pane-scroll .guide-container,
.pane-scroll .store-list {
    flex: 0 0 auto;
    overflow: visible;
    min-height: 0;
}

.ad-slot {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}


.ad-slot--responsive ins.adsbygoogle,
.ad-slot--responsive iframe {
    max-width: 100% !important;
    width: 100% !important;
}

/* =========================================
   SIDE PANES
   ========================================= */
.pane-right {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    padding-bottom: 0;
}

.pane-right .pane-scroll {
    min-height: 0;
    overflow-y: auto;
}

.pane-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
    z-index: 1;
    height: 100vh;
    padding: 0;
    overflow: hidden;
}

.app-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    overflow-anchor: none;
    background: #ffffff;
    min-height: 0;
}

.center-input-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #ffffff;
}

.brand-header {
    height: var(--header-height);
    padding: 0 24px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

.brand-logo-img {
    width: 84px;
    height: auto;
    display: block;
}

.brand-logo-text {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.brand-version {
    font-size: 0.75rem;
    background: var(--accent-light);
    color: var(--accent-primary);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 600;
}

.brand-product-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-left: 6px;
    letter-spacing: -0.01em;
}


/* Guide Container */
.guide-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guide-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.guide-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.guide-card.hidden {
    display: none;
}

.guide-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.guide-content {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.guide-chips {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 6px 12px;
    border-radius: 99px;
    background: #fff;
    border: 1px solid var(--border-light);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.2s;
    cursor: pointer;
}

.chip:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--accent-light);
}

/* Center pane brand */
.center-brand {
    padding: 16px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Zero-state recommendation chips — horizontal scroll */
.zero-state-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 8px 24px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;          /* Firefox */
}
.zero-state-chips::-webkit-scrollbar {
    display: none;                  /* Chrome/Safari */
}

.zero-state-chips .chip {
    flex-shrink: 0;
    font-size: 0.82rem;
    padding: 6px 14px;
    white-space: nowrap;
}

.zero-state-chips .chip-questions {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.zero-state-chips .chip-questions:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: #fff;
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.4);
}
