/* Oak & Axis Move Timeline Planner - Stylesheet v1.0.0 */

.oatp-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    max-width: 860px;
    margin: 0 auto 2rem;
    border: 1px solid rgba(22,51,38,.15);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(14,26,20,.10);
}

.oatp-wrap * {
    box-sizing: border-box;
}

/* Header */
.oatp-hdr {
    background: #1a2e1b;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.oatp-hdr-title {
    font-size: 13px;
    font-weight: 800;
    color: #c7a35a;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.oatp-hdr-sub {
    font-size: 11px;
    color: rgba(255,255,255,.45);
}

/* Body */
.oatp-body {
    padding: 22px;
    background: #fdfbf7;
}

.oatp-intro {
    font-size: 14px;
    color: rgba(14,26,20,.70);
    line-height: 1.7;
    margin: 0 0 18px;
}

/* Toggle (buyer/seller switch for combined mode) */
.oatp-toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.oatp-toggle-label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(14,26,20,.70);
}

.oatp-toggle {
    display: flex;
    border: 1px solid rgba(22,51,38,.20);
    border-radius: 999px;
    overflow: hidden;
}

.oatp-toggle-btn {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: transparent;
    color: rgba(14,26,20,.60);
    font-family: inherit;
    transition: background .15s, color .15s;
}

.oatp-toggle-btn.oatp-toggle-on {
    background: #2C4A2E;
    color: #fff;
}

/* Controls row */
.oatp-controls {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    background: rgba(22,51,38,.05);
    border: 1px solid rgba(22,51,38,.12);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 22px;
}

.oatp-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.oatp-label {
    font-size: 11px;
    font-weight: 800;
    color: rgba(14,26,20,.60);
    text-transform: uppercase;
    letter-spacing: .6px;
}

.oatp-date-inp {
    padding: 9px 12px;
    font-size: 14px;
    border: 1px solid rgba(22,51,38,.22);
    border-radius: 10px;
    font-family: inherit;
    color: #0E1A14;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    min-width: 180px;
}

.oatp-date-inp:focus {
    outline: none;
    border-color: #2C4A2E;
    box-shadow: 0 0 0 3px rgba(44,74,46,.10);
}

.oatp-gen-btn {
    padding: 10px 24px;
    background: #2C4A2E;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, transform .15s;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(22,51,38,.18);
}

.oatp-gen-btn:hover {
    background: #3d6640;
    transform: translateY(-1px);
}

/* Output hidden by default */
.oatp-output {
    display: none;
}

.oatp-output.oatp-show {
    display: block;
}

/* Phase list */
.oatp-phase-list {
    display: flex;
    flex-direction: column;
}

.oatp-phase {
    display: flex;
    gap: 14px;
    align-items: stretch;
}

/* Spine */
.oatp-spine {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 26px;
}

.oatp-node {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #2C4A2E;
    border: 2.5px solid #fdfbf7;
    box-shadow: 0 0 0 2px #2C4A2E;
    flex-shrink: 0;
    margin-top: 15px;
}

.oatp-node-key {
    background: #c7a35a;
    box-shadow: 0 0 0 2px #c7a35a;
    width: 16px;
    height: 16px;
}

.oatp-line {
    width: 2px;
    background: rgba(22,51,38,.14);
    flex: 1;
    min-height: 8px;
}

.oatp-phase:last-child .oatp-line {
    display: none;
}

/* Phase content card */
.oatp-content {
    flex: 1;
    padding: 13px 15px;
    margin-bottom: 8px;
    border: 1px solid rgba(14,26,20,.10);
    border-radius: 14px;
    background: #fff;
}

.oatp-content-key {
    border-color: rgba(199,163,90,.55);
    border-width: 1.5px;
}

.oatp-content-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.oatp-phase-name {
    font-size: 13.5px;
    font-weight: 800;
    color: #0E1A14;
    margin: 0;
    line-height: 1.35;
}

.oatp-date-badge {
    font-size: 11.5px;
    font-weight: 800;
    color: #1a3a1b;
    background: rgba(22,51,38,.10);
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.oatp-date-badge-key {
    color: #5b4018;
    background: rgba(199,163,90,.22);
}

.oatp-phase-detail {
    font-size: 12.5px;
    color: rgba(14,26,20,.65);
    line-height: 1.6;
    margin: 0 0 8px;
}

.oatp-tasks {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.oatp-task {
    font-size: 11px;
    padding: 2px 9px;
    border-radius: 20px;
    background: rgba(22,51,38,.07);
    color: rgba(14,26,20,.65);
    border: 1px solid rgba(22,51,38,.10);
}

/* Summary bar */
.oatp-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 14px 18px;
    background: #1a2e1b;
    border-radius: 14px;
    margin-top: 16px;
}

.oatp-sum-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.oatp-sum-label {
    font-size: 10px;
    color: rgba(255,255,255,.45);
    text-transform: uppercase;
    letter-spacing: .6px;
}

.oatp-sum-val {
    font-size: 15px;
    font-weight: 800;
    color: #c7a35a;
}

.oatp-print-btn {
    margin-left: auto;
    padding: 8px 16px;
    border: 1px solid rgba(199,163,90,.45);
    border-radius: 999px;
    background: transparent;
    color: #c7a35a;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}

.oatp-print-btn:hover {
    background: rgba(199,163,90,.12);
}

/* Responsive */
@media (max-width: 600px) {
    .oatp-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .oatp-gen-btn {
        width: 100%;
        text-align: center;
    }
    .oatp-date-inp {
        width: 100%;
    }
    .oatp-summary {
        flex-direction: column;
        align-items: flex-start;
    }
    .oatp-print-btn {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}

/* Print */
@media print {
    .oatp-controls,
    .oatp-gen-btn,
    .oatp-print-btn,
    .oatp-toggle-row {
        display: none !important;
    }
    .oatp-output {
        display: block !important;
    }
    .oatp-hdr {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .oatp-wrap {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
