.lending_top_box>.action_area {
    margin: auto;
}

#account_management_field{
    padding: 0;
    margin-top: 1em;
    background: white;
    border-radius: var(--br);
}

/* General Layouts */
.exec-dashboard, .exec-resources {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2em;
}

/* Grid Dashboard */
.exec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5em;
}

.exec-tile {
    background: #ffffff;
    border: 1px solid var(--c_paleapricot_50);
    border-radius: var(--br, 8px);
    padding: 1.5em;
    display: flex;
    flex-direction: column;
    gap: .5em;
}

.exec-tile p{
    font-size: .95em;
    color: var(--c_charcoalgrey);
    margin: 0;
}

.exec-tile p img {
    float: left;
    margin-right: 15px;
    margin-bottom: 15px;
    width: 4em;
    height: auto;
    border-radius: var(--br);
    object-fit: cover;
    overflow: hidden;
}

.exec-tile p::after {
    content: "";
    display: table;
    clear: both;
}

.exec-tile.span-2 {
    grid-column: span 2;
}

.exec-tile.height-2 {
    grid-row: span 2;
}

.exec-tile.ask-tile {
    border-radius: 0 var(--br) var(--br) 0;
    border-left: 3px solid var(--c_paleapricot_impact);
}

.tile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--c_paleapricot_25);
    padding-bottom: 0.5em;
}

.tile-header h4 {
    color: var(--c_slateblue);
    font-size: 1.1em;
}

.tile-date {
    font-size: 0.8em;
    color: var(--c_charcoalgrey);
    background: var(--c_paleapricot_25);
    padding: 0.2em 0.6em;
    border-radius: 4px;
    white-space: nowrap;
    border: 1px solid var(--c_paleapricot_50);
}

.tile-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.outline-btn {
    display: inline-block;
    text-align: center;
    background: transparent;
    color: var(--c_paleapricot_impact);
    border: 1px solid var(--c_paleapricot_impact);
    padding: 0.5em 1em;
    border-radius: var(--br, 4px);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background 0.2s, color 0.2s;
    margin-top: auto;
}

.outline-btn:hover {
    background: var(--c_paleapricot_impact);
    color: #fff;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 4em;
    margin-top: 2em;
    max-height: 50vh;
    overflow-y: auto;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5em;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -2em;
    height: calc(100% + 2.5em);
    width: 2px;
    background: var(--c_paleapricot);
}

.timeline-item.done::before {
    background: var(--c_paleapricot_impact);
}

.timeline-marker {
    position: absolute;
    left: calc(-3em - 5px);
    top: 0;
    width: 2em;
    height: 2em;
    border-radius: 50%;
    background: var(--c_paleapricot_25);
    border: 2px solid var(--c_paleapricot);
    padding: .25em;
    display: flex;
    align-items: center;
    justify-content: center;
}
.timeline-marker > img {
    width: 100%;
    height: auto;
}

.timeline-item.done .timeline-marker {
    border-color: var(--c_paleapricot_impact);
}

.timeline-item.active .timeline-marker::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: conic-gradient(
        var(--c_paleapricot_impact) 0deg 90deg, 
        transparent 90deg 270deg, 
        var(--c_paleapricot_impact) 270deg 360deg
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff 100%);
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff 100%);
}

.timeline-content {
    margin-left: 1em;
    background: var(--c_paleapricot_50);
    width: fit-content;
    min-width: 50%;
    padding: 1em;
    border-radius: var(--br);
    border: solid 1px var(--c_paleapricot);
}

.timeline-item.locked .timeline-content {
    opacity: 0.5;
}

.timeline-content h5 {
    color: var(--c_slateblue);
    font-size: 1.1em;
    margin-bottom: 0.5em;
}

.timeline-content h5 span {
    font-weight: normal;
}

.timeline-content ul {
    margin: 0;
    padding-left: 1.2em;
    color: #555;
    font-size: 0.95em;
    line-height: 1.6;
}

/* Milestone Grid Styling for Timeline */
.milestone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2em;
    margin-top: 1.2em;
}

.milestone-card {
    background: var(--c_paleapricot_25);
    border: 1px solid var(--c_paleapricot);
    border-radius: var(--br, 8px);
    padding: 1em;
}

.milestone-title {
    margin: 0 0 0.5em 0;
    font-size: 1.05em;
    color: var(--c_slateblue);
    font-weight: 600;
    line-height: 1.2;
}

.milestone-body {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 1.2em;
    align-items: flex-start;
}

.milestone-text > img {
    max-width: calc(100% - 1em);
    object-fit: contain;

    float: left;
    margin-right: 15px;
    max-width: 80px;
    height: auto;
}

.milestone-text {
    margin: 0;
    font-size: 0.9em;
    color: var(--c_charcoalgrey);
}

/* Resource Vault */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1em;
}

.resource-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--c_paleapricot_50);
    border-radius: var(--br, 8px);
    padding: 1em;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, border-color 0.2s;
    gap: 1em;
}

.resource-card > img {
    height: auto;
    width: 2em;
}

.resource-card:hover {
    background: var(--c_paleapricot_25);
    border-color: var(--c_paleapricot_impact);
}

.resource-card.action-card {
    background: var(--c_paleapricot);
    border-color: var(--c_paleapricot_impact);
}

.resource-card.action-card:hover {
    opacity: 0.9;
}

.resource-icon {
    font-size: 2em;
    margin-right: 15px;
}

.resource-info h5 {
    margin: 0 0 0.2em 0;
    font-size: 1em;
}

.resource-info p {
    margin: 0;
    font-size: 0.8em;
    color: #666;
}

/* Modal Overlay with Blur */
.exec-modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 35, 49, 0.4); /* Dark translucent background */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 2em;
}

/* Modal Box */
.exec-modal-container {
    background: white;
    width: 100%;
    max-width: 1000px;
    height: 85vh;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0,0,0,0.2);
    border: 1px solid var(--c_paleapricot_25);
}

/* Modal Header */
.exec-modal-header {
    padding: 0 1.5em 0;
    background: var(--c_paleapricot_25);
    border-bottom: 1px solid var(--c_paleapricot);
    display: grid;
    grid-template-columns: auto 1fr auto;
    justify-content: flex-start;
    align-items: center;
    gap: 1em;
}

.exec-modal-header h4 {
    margin: 0;
    color: var(--c_slateblue);
    font-size: 1.2em;
}

.exec-modal-header p {
    margin: 0.2em 0 0 0;
    font-size: 0.85em;
    color: var(--c_charcoalgrey);
}

.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 2em;
    line-height: 1;
    color: var(--c_charcoalgrey);
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: var(--c_paleapricot_impact);
}

/* Modal Body / Iframe Container */
.exec-modal-body {
    flex-grow: 1;
    padding: 0;
    background: #fff;
}


/* Mobile Adjustments */
@media all and (max-width: 767px) {

    .action_area{
        display: none;
    }
    
    .exec-tile.span-2 {
        grid-column: span 1;
    }
    
    .exec-roadmap {
        padding: 3em 1em;
    }

    .exec-modal-header > img { display: none; }

    .exec-modal-overlay { 
        padding: 16px; 
        box-sizing: border-box;
    }
    
    .exec-modal-container { 
        height: 90vh; 
        width: 100%;
        max-width: 100%; 
        overflow: hidden; 
        border-radius: 12px;
    }

    .exec-modal-header h4 {
        font-size: 1.1em;
    }

    .exec-modal-body {
        width: 100%;
        overflow-x: auto; 
        -webkit-overflow-scrolling: touch;
    }

    .exec-modal-body iframe {
        width: 100%;
        height: 100%;
    }
}