.temp-share-panel {
    grid-column: 1 / -1;
    width: 100%;
    padding: 26px;
    color: var(--text);
}

.temp-share-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.temp-share-eyebrow {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: #d86f1c;
    font: 700 .66rem "Space Grotesk", sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.temp-share-eyebrow svg { width: 13px; height: 13px; }
.temp-share-heading h3 { margin: 0; font-size: 1.05rem; letter-spacing: -.025em; }
.temp-share-heading p { margin: 5px 0 0; color: var(--text-3); font-size: .74rem; }

.temp-share-online {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 100px;
    background: rgba(22, 121, 74, .09);
    color: #16794a;
    font-size: .65rem;
    font-weight: 700;
}

.temp-share-online > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(22, 121, 74, .1);
}

body.dark-mode .temp-share-online { color: #6dd5a0; background: rgba(31, 122, 78, .16); }

.temp-share-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 14px;
}

.temp-share-drop {
    min-height: 118px;
    padding: 20px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    border: 1px dashed var(--border-strong);
    border-radius: 16px;
    background: var(--surface-2);
    cursor: pointer;
    outline: none;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.temp-share-drop:hover,
.temp-share-drop:focus-visible,
.temp-share-drop.dragover {
    border-color: var(--accent-hover);
    background: var(--accent-subtle);
    transform: translateY(-1px);
}

.temp-share-drop input { display: none; }

.temp-share-drop-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--surface);
    color: #d86f1c;
    box-shadow: var(--shadow-sm);
}

.temp-share-drop-icon svg { width: 20px; height: 20px; }
.temp-share-drop strong { display: block; overflow: hidden; color: var(--text); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.temp-share-drop p { margin: 5px 0 0; color: var(--text-3); font-size: .66rem; }

.temp-share-browse {
    min-height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--surface);
    color: var(--text-2);
    font-size: .68rem;
    font-weight: 700;
}

.temp-share-controls {
    padding: 15px;
    display: grid;
    gap: 9px;
    align-content: center;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-2);
}

.temp-share-controls label { color: var(--text-2); font-size: .65rem; font-weight: 700; }

.temp-share-controls select {
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    outline: none;
    background: var(--surface);
    color: var(--text);
    font: 600 .69rem Inter, sans-serif;
}

.temp-share-controls button {
    min-height: 39px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: #17120e;
    font: 700 .68rem Inter, sans-serif;
    cursor: pointer;
}

.temp-share-controls button:hover { background: var(--accent-hover); }
.temp-share-controls button:disabled { cursor: not-allowed; opacity: .45; }
.temp-share-controls button svg { width: 14px; height: 14px; }

.temp-share-status {
    display: none;
    margin-top: 12px;
    padding: 11px 13px;
    border-radius: 11px;
    color: var(--text-2);
    background: var(--surface-2);
    font-size: .7rem;
}

.temp-share-status.show { display: block; }
.temp-share-status.error { color: #b42318; background: rgba(180, 35, 24, .08); }

.temp-share-result {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 13px;
    border: 1px solid rgba(22, 121, 74, .14);
    border-radius: 13px;
    background: rgba(22, 121, 74, .07);
}

.temp-share-result.show { display: flex; }
.temp-share-result > div { min-width: 0; flex: 1; }
.temp-share-result span { display: block; margin-bottom: 3px; color: #16794a; font-size: .62rem; font-weight: 700; }
.temp-share-result code { display: block; overflow: hidden; color: var(--text); font: 600 .72rem "Space Grotesk", monospace; text-overflow: ellipsis; white-space: nowrap; }

.temp-share-result button,
.temp-share-result a,
.temp-share-action {
    min-height: 32px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text-2);
    font: 700 .63rem Inter, sans-serif;
    text-decoration: none;
    cursor: pointer;
}

.temp-share-result svg,
.temp-share-action svg { width: 12px; height: 12px; }

.temp-share-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0 10px;
}

.temp-share-list-heading strong { font-size: .73rem; }
.temp-share-list-heading span { color: var(--text-3); font-size: .65rem; }

.temp-share-list {
    display: grid;
    gap: 7px;
}

.temp-share-empty {
    margin: 0;
    padding: 16px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    color: var(--text-3);
    text-align: center;
    font-size: .68rem;
}

.temp-share-item {
    padding: 11px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-2);
}

.temp-share-item-main { min-width: 0; }
.temp-share-item-main strong { display: block; overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.temp-share-item-main span { display: block; margin-top: 3px; color: var(--text-3); font-size: .61rem; }
.temp-share-actions { display: flex; gap: 5px; }
.temp-share-action.delete { color: #c33b43; }

@media (max-width: 700px) {
    .temp-share-panel { padding: 18px !important; }
    .temp-share-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .temp-share-workspace { grid-template-columns: 1fr; }
    .temp-share-drop { min-height: 110px; grid-template-columns: 40px minmax(0, 1fr); padding: 16px; }
    .temp-share-drop-icon { width: 40px; height: 40px; }
    .temp-share-browse { display: none; }
    .temp-share-result { align-items: stretch; flex-wrap: wrap; }
    .temp-share-result > div { width: 100%; flex-basis: 100%; }
    .temp-share-result button, .temp-share-result a { flex: 1; }
    .temp-share-item { align-items: flex-start; grid-template-columns: 1fr; }
    .temp-share-actions { width: 100%; }
    .temp-share-action { flex: 1; }
}
