/* EssayDew reusable service action workspace */

.edsa-panel {
    position: static;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    max-height: min(72dvh, 680px);
    padding: 9px 12px 14px;
    background: linear-gradient(180deg, rgba(16,17,20,.985), rgba(10,11,14,.995));
    border-top: 1px solid rgba(205,164,62,.14);
}

.edsa-panel[hidden] { display: none !important; }

.edsa-action-open #edsdBody > :not(.edsa-panel) {
    display: none !important;
}

.edsa-stack {
    display: grid;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.edsa-intro {
    display: grid;
    gap: 3px;
    padding: 1px 2px 3px;
}

.edsa-intro strong {
    font-size: 16px;
    line-height: 1.22;
    color: #f4ead0;
}

.edsa-intro span,
.edsa-intro small {
    font-size: 13px;
    line-height: 1.35;
    color: rgba(235,235,240,.68);
}

.edsa-assignment-list {
    display: grid;
    gap: 7px;
}

.edsa-assignment {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 13px;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(255,255,255,.035);
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.edsa-assignment.is-selected {
    border-color: rgba(212,171,63,.62);
    background: rgba(212,171,63,.09);
    box-shadow: inset 0 0 0 1px rgba(212,171,63,.08);
}

.edsa-assignment-main {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.edsa-assignment-main strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14.5px;
    color: rgba(250,248,242,.96);
}

.edsa-assignment-main small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    color: rgba(234,235,240,.62);
}

.edsa-check {
    flex: 0 0 auto;
    color: #d7b24e;
    font-size: 17px;
}

.edsa-field {
    display: grid;
    gap: 6px;
    margin: 0;
}

.edsa-field > span,
.edsa-scope legend {
    font-size: 13px;
    font-weight: 800;
    color: rgba(239,231,210,.88);
}

.edsa-field small {
    font-weight: 500;
    color: rgba(238,238,242,.54);
}

.edsa-field input,
.edsa-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 12px;
    background: rgba(255,255,255,.045);
    color: #f5f3ee;
    font: inherit;
    font-size: 16px;
    padding: 10px 11px;
    outline: none;
}

.edsa-field textarea {
    resize: vertical;
    min-height: 82px;
}

.edsa-field input:focus,
.edsa-field textarea:focus {
    border-color: rgba(214,176,70,.58);
    box-shadow: 0 0 0 3px rgba(214,176,70,.07);
}

.edsa-split {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
    gap: 7px;
}

.edsa-upload {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 9px 11px;
    border: 1px dashed rgba(214,176,70,.34);
    border-radius: 13px;
    background: rgba(214,176,70,.045);
    cursor: pointer;
}

.edsa-upload input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.edsa-upload-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(214,176,70,.10);
    color: #e2bd58;
    font-size: 21px;
}

.edsa-upload-copy {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.edsa-upload-copy strong {
    font-size: 14px;
    color: rgba(250,247,238,.96);
}

.edsa-upload-copy small {
    font-size: 11.5px;
    line-height: 1.25;
    color: rgba(235,235,240,.56);
}

.edsa-file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.edsa-file-list[hidden] { display: none !important; }

.edsa-file-chip {
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 8px;
    border-radius: 9px;
    background: rgba(64,190,124,.08);
    border: 1px solid rgba(64,190,124,.20);
    color: rgba(232,246,237,.90);
    font-size: 11.5px;
}

.edsa-file-chip span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.edsa-scope {
    margin: 0;
    padding: 0;
    border: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.edsa-scope legend {
    grid-column: 1 / -1;
    margin-bottom: 2px;
}

.edsa-scope label {
    min-height: 42px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 10px;
    background: rgba(255,255,255,.035);
    font-size: 12.5px;
    color: rgba(244,244,246,.82);
    cursor: pointer;
}

.edsa-scope input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.edsa-scope label:has(input:checked) {
    border-color: rgba(214,176,70,.58);
    background: rgba(214,176,70,.10);
    color: #f2ddb0;
}

.edsa-primary,
.edsa-secondary {
    width: 100%;
    min-height: 46px;
    border-radius: 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.edsa-primary {
    border: 1px solid rgba(225,188,80,.72);
    background: linear-gradient(180deg, #d5ad47, #b88b28);
    color: #171208;
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

.edsa-secondary {
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.045);
    color: rgba(245,243,237,.92);
}

.edsa-primary:disabled,
.edsa-secondary:disabled {
    opacity: .62;
    cursor: default;
}

.edsa-empty,
.edsa-notice {
    padding: 10px 11px;
    border-radius: 11px;
    font-size: 12.5px;
    line-height: 1.4;
}

.edsa-empty {
    border: 1px dashed rgba(255,255,255,.10);
    color: rgba(239,239,242,.66);
}

.edsa-notice {
    margin-bottom: 8px;
    border: 1px solid rgba(214,176,70,.24);
    background: rgba(214,176,70,.07);
    color: #edd9aa;
}

.edsa-notice--success {
    border-color: rgba(64,190,124,.24);
    background: rgba(64,190,124,.07);
    color: #ccebd8;
}

.edsa-notice--error {
    border-color: rgba(226,91,91,.26);
    background: rgba(226,91,91,.07);
    color: #f2c1c1;
}

.edsa-loading,
.edsa-success {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-align: center;
    padding: 22px 12px;
}

.edsa-loading {
    color: rgba(242,242,245,.72);
    font-size: 13.5px;
}

.edsa-spinner {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.15);
    border-top-color: #d7b24e;
    animation: edsa-spin .7s linear infinite;
}

.edsa-success-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(64,190,124,.10);
    border: 1px solid rgba(64,190,124,.24);
    color: #73d39b;
    font-size: 20px;
    font-weight: 900;
}

.edsa-success strong {
    font-size: 17px;
    color: rgba(250,248,242,.97);
}

.edsa-success p {
    max-width: 430px;
    margin: 0 0 4px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(238,238,242,.65);
}

@keyframes edsa-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
    .edsa-panel {
        max-height: min(68dvh, 590px);
        padding: 8px 10px 12px;
    }

    .edsa-stack {
        gap: 9px;
    }

    .edsa-new-assignment-form {
        padding-bottom: max(4px, env(safe-area-inset-bottom));
    }
}

/* Premium Tutor request */
.edsa-tutor-hero{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px;border-radius:14px;border:1px solid rgba(214,176,70,.18);background:radial-gradient(circle at 85% 15%,rgba(214,176,70,.09),transparent 42%),rgba(255,255,255,.025)}
.edsa-tutor-hero>div{min-width:0;display:grid;gap:2px}
.edsa-tutor-hero strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f6f0df;font-size:16px}
.edsa-eyebrow{color:#cba747;font-size:9.5px;line-height:1;font-weight:900;letter-spacing:.11em}
.edsa-tutor-count{flex:0 0 auto;padding:6px 8px;border-radius:999px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.035);color:rgba(244,244,246,.68);font-size:11px}
.edsa-scope--premium label span{display:grid;gap:1px;text-align:center}
.edsa-scope--premium label b{font-size:12px;font-weight:800}
.edsa-scope--premium label small{font-size:9.5px;font-weight:500;color:rgba(240,240,244,.48)}
.edsa-more{border:1px solid rgba(255,255,255,.08);border-radius:11px;background:rgba(255,255,255,.025)}
.edsa-more summary{padding:9px 10px;cursor:pointer;color:rgba(243,239,229,.74);font-size:12px;font-weight:700}
.edsa-more[open]{padding-bottom:9px}
.edsa-more[open] .edsa-field{padding:0 9px}
.edsa-primary--premium{min-height:48px}
.edsa-safe-note{margin:-3px 0 0;text-align:center;color:rgba(236,236,240,.43);font-size:10.5px}
