/* ============================================================
   DDPHub SaaS Shell (Phase 1)
   Purpose: Create a consistent SaaS surface for dashboard and screeners
   ============================================================ */

.ddphub-app {
    width: 100%;
}

.ddphub-app-shell {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

.ddphub-shell-header {
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.ddphub-shell-header-inner {
    display: flex;
    gap: 18px;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.ddphub-shell-eyebrow {
    margin: 0 0 6px 0;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.55);
}

.ddphub-shell-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

.ddphub-shell-subtitle {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: rgba(0,0,0,0.65);
    max-width: 70ch;
}

.ddphub-shell-meta {
    display: grid;
    gap: 10px;
    min-width: 260px;
}

.ddphub-shell-meta-item {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.7);
}

.ddphub-shell-meta-label {
    display: block;
    font-size: 12px;
    color: rgba(0,0,0,0.55);
    margin-bottom: 4px;
}

.ddphub-shell-meta-value {
    display: block;
    font-size: 14px;
    color: rgba(0,0,0,0.9);
}

.ddphub-shell-progress {
    margin-top: 14px;
}

.ddphub-progress-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.ddphub-progress-track {
    flex: 1;
    min-width: 240px;
    height: 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.08);
    overflow: hidden;
}

.ddphub-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.85);
}

.ddphub-progress-text {
    display: flex;
    gap: 8px;
    align-items: baseline;
}

.ddphub-progress-percent {
    font-size: 14px;
    font-weight: 700;
}

.ddphub-progress-caption {
    font-size: 12px;
    color: rgba(0,0,0,0.6);
}

.ddphub-shell-progress-help {
    margin: 10px 0 0 0;
    font-size: 12px;
    color: rgba(0,0,0,0.6);
}

.ddphub-shell-content {
    width: 100%;
}

.ddphub-shell-footer {
    border-top: 1px solid rgba(0,0,0,0.08);
    margin-top: 18px;
    padding-top: 18px;
}

.ddphub-shell-footer-text {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: rgba(0,0,0,0.65);
    max-width: 90ch;
}

.ddphub-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.ddphub-card {
    grid-column: span 12;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    padding: 14px;
    background: rgba(255,255,255,0.85);
}

@media (min-width: 900px) {
    .ddphub-card {
        grid-column: span 4;
    }
}

.ddphub-card-title {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.ddphub-card-text {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: rgba(0,0,0,0.7);
}

.ddphub-card-note {
    margin: 0;
    font-size: 12px;
    color: rgba(0,0,0,0.6);
}
/* DDPHub SaaS Shell (Public) */

.ddphub-app {
    width: 100%;
}

.ddphub-app-shell {
    width: 100%;
    margin: 0 auto;
    padding: 24px 16px;
    box-sizing: border-box;
}

.ddphub-shell-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Template screeners commonly include max-w-3xl.
   This preserves their internal spacing but allows the shell to use a wider canvas. */
.ddphub-app-screener .screener-container {
    max-width: 1200px;
}

/* Gravity Forms wrapper */
.ddphub-app-screener .ddphub-form {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
