#awocontract-root {
    --act-bg: #08111f;
    --act-surface: #0f1d32;
    --act-surface-2: #162946;
    --act-border: #253e63;
    --act-text: #f1f5f9;
    --act-muted: #94a3b8;
    --act-gold: #eab308;
    font-family: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
    color: var(--act-text);
    background: var(--act-bg);
    border-radius: 16px;
    padding: 20px;
    box-sizing: border-box;
}

#awocontract-root[data-theme="light"] {
    --act-bg: #f1f5f9;
    --act-surface: #ffffff;
    --act-surface-2: #f8fafc;
    --act-border: #cbd5e1;
    --act-text: #0f172a;
    --act-muted: #475569;
}

#awocontract-root * {
    box-sizing: border-box;
}

.act-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--act-border);
}

.act-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.act-brand-row h1 {
    margin: 0;
    font-size: 25px;
    font-weight: 900;
    color: var(--act-text);
}

.act-brand-row h1 span {
    color: var(--act-gold);
}

.act-plan-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(234, 179, 8, 0.16);
    color: var(--act-gold);
    border: 1px solid rgba(234, 179, 8, 0.35);
}

.act-blue-pill {
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.16);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.32);
}

.act-subtitle {
    margin: 5px 0 0;
    font-size: 13px;
    color: var(--act-muted);
}

.act-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.act-btn {
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 9px;
    padding: 8px 13px;
    font-size: 12.5px;
    font-weight: 700;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.act-btn.primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
}

.act-btn.secondary {
    background: var(--act-surface-2);
    color: var(--act-text);
    border-color: var(--act-border);
}

.act-btn.gold {
    background: linear-gradient(135deg, #d97706, #eab308);
    color: #09111e;
}

.act-main {
    display: grid;
    grid-template-columns: 475px 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 1240px) {
    .act-main {
        grid-template-columns: 1fr;
    }
}

.act-panel {
    background: var(--act-surface);
    border: 1px solid var(--act-border);
    border-radius: 14px;
    padding: 16px;
}

.act-section-box {
    background: var(--act-surface-2);
    border: 1px solid var(--act-border);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 14px;
}

.act-section-box:last-child {
    margin-bottom: 0;
}

.act-section-box h2 {
    margin: 0 0 10px;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--act-text);
}

.act-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

#awocontract-root label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--act-muted);
    margin: 8px 0 4px;
}

#awocontract-root input,
#awocontract-root select,
#awocontract-root textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--act-border);
    background: var(--act-surface);
    color: var(--act-text);
    font-size: 12.5px;
    font-family: inherit;
}

.act-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.act-inline-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.act-sig-pad {
    width: 100%;
    height: 96px;
    background: #ffffff;
    border: 2px dashed #64748b;
    border-radius: 8px;
    cursor: crosshair;
    touch-action: none;
}

.act-stage-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.act-stage-head h3 {
    margin: 0;
    font-size: 15px;
    color: var(--act-text);
}

.act-stage-head small {
    color: var(--act-muted);
    font-size: 12px;
}

/* A4 CONTRACT SHEET */
.act-doc-sheet {
    max-width: 794px;
    margin: 0 auto;
    background: #ffffff;
    color: #0f172a;
    border-radius: 10px;
    padding: 36px 42px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    line-height: 1.62;
    font-size: 12.8px;
}

.act-status {
    margin-top: 12px;
    font-size: 12.5px;
    font-weight: 700;
    color: #4ade80;
    min-height: 20px;
}

.act-dialog {
    background: var(--act-surface);
    color: var(--act-text);
    border: 1px solid var(--act-border);
    border-radius: 14px;
    padding: 20px;
    max-width: 500px;
    width: 92%;
}

.act-dialog::backdrop {
    background: rgba(5, 10, 20, 0.72);
}

@media print {
    body * {
        visibility: hidden;
    }
    #awocontract-root,
    #awocontract-root #act-doc-preview,
    #awocontract-root #act-doc-preview * {
        visibility: visible;
    }
    .no-print {
        display: none !important;
    }
    #awocontract-root {
        padding: 0;
        background: #ffffff;
    }
    .act-doc-sheet {
        box-shadow: none;
        padding: 10px 20px;
        max-width: 100%;
    }
}

