@import url('/css/pl-dash/tokens.css');
@import url('/css/pl-dash/components.css');

html.pl-dash-embed,
html.pl-dash-embed body {
    background: var(--pl-bg) !important;
}

html.pl-dash-embed #sidebar-container {
    display: none !important;
}

html.pl-dash-embed .main-content.create-form-page {
    margin-left: 0 !important;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    background: var(--pl-bg);
}

html.pl-dash-embed body {
    padding-top: 0 !important;
    font-family: var(--pl-font);
    color: var(--pl-text);
}

html.pl-dash-embed .top-bar {
    padding: 16px 24px;
    border-bottom: 1px solid var(--pl-border);
    background: var(--pl-bg);
}

html.pl-dash-embed .top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
    flex: 1;
}

html.pl-dash-embed .top-bar-left h2 {
    display: none !important;
}

html.pl-dash-embed .top-bar-actions {
    gap: 0;
    margin-left: auto;
}

html.pl-dash-embed .top-bar-actions .preview-button {
    display: none !important;
}

html.pl-dash-embed .top-bar-actions .submit-button.pl-dash-editor-save-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    font-family: var(--pl-font) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--pl-text) !important;
    text-decoration: none !important;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    box-shadow: none !important;
    outline: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}

html.pl-dash-embed .top-bar-actions .submit-button.pl-dash-editor-save-btn:hover:not(:disabled),
html.pl-dash-embed .top-bar-actions .submit-button.pl-dash-editor-save-btn:focus:not(:disabled) {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    color: var(--pl-muted) !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

html.pl-dash-embed .top-bar-actions .submit-button.pl-dash-editor-save-btn:disabled {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    color: var(--pl-muted-2) !important;
    opacity: 0.55 !important;
    cursor: not-allowed !important;
}

html.pl-dash-embed .top-bar-actions .submit-button.pl-dash-editor-save-btn:active {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

html.pl-dash-embed .content-wrapper {
    background: var(--pl-bg);
}

html.pl-dash-embed .toolbar {
    background: var(--pl-bg);
    border-right: 1px solid var(--pl-border);
}

html.pl-dash-embed .toolbar-section h3 {
    color: var(--pl-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

html.pl-dash-embed .preview-area {
    background: #fafafa;
}

.pl-dash-editor-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--pl-muted);
    text-decoration: none;
    white-space: nowrap;
}

.pl-dash-editor-back:hover {
    color: var(--pl-text);
}

.pl-dash-editor-back-arrow {
    display: block;
    flex-shrink: 0;
}

.pl-dash-editor-back[hidden] {
    display: none !important;
}
