:root {
color-scheme: light;
--bg: #f6f7f9;
--fg: #1a1d23;
--muted: #5c6570;
--accent: #2563eb;
--border: #d0d5dd;
--radius: 10px;
--dialog-open-width: 480px;
--dialog-open-height: 360px;
--dialog-max-width: 800px;
--dialog-max-height: 600px;
font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
display: flex;
flex-direction: column;
background: linear-gradient(160deg, #eef2ff 0%, var(--bg) 45%, #f8fafc 100%);
color: var(--fg);
}
.titlebar {
display: flex;
align-items: center;
justify-content: space-between;
background: #e9ecef;
border-bottom: 1px solid var(--border);
padding: 0 0.5rem;
height: 2rem;
flex-shrink: 0;
user-select: none;
}
.titlebar-title {
font-size: 0.8rem;
color: var(--muted);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.titlebar-controls {
display: flex;
gap: 0.25rem;
}
.titlebar-btn {
appearance: none;
border: none;
background: transparent;
width: 1.5rem;
height: 1.5rem;
border-radius: 4px;
cursor: pointer;
font-size: 0.75rem;
display: flex;
align-items: center;
justify-content: center;
color: var(--fg);
padding: 0;
}
.titlebar-btn:hover {
background: rgba(0, 0, 0, 0.08);
}
.titlebar-btn.close:hover {
background: #e81123;
color: #fff;
}
.dialog {
flex: 1;
display: flex;
flex-direction: column;
width: min(var(--dialog-open-width), var(--dialog-max-width), calc(100vw - 2rem));
max-width: var(--dialog-max-width);
max-height: var(--dialog-max-height);
margin: auto;
padding: 1.5rem;
background: #fff;
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}
html.wyvern-embedded .dialog--frame.dialog,
html.wyvern-embedded .dialog--panel.dialog {
flex: 0 0 auto !important;
max-height: none !important;
margin-top: 0 !important;
margin-bottom: 0 !important;
}
h1 {
margin: 0 0 0.75rem;
font-size: 1.25rem;
font-weight: 650;
}
.status {
margin: 0 0 1.25rem;
color: var(--muted);
line-height: 1.45;
font-size: 0.9rem;
}
.buttons {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
justify-content: flex-end;
margin-top: auto;
padding-top: 1rem;
}
button {
appearance: none;
border: 1px solid var(--border);
background: #fff;
color: var(--fg);
border-radius: 8px;
padding: 0.5rem 0.9rem;
font: inherit;
cursor: pointer;
}
button.primary {
background: var(--accent);
border-color: var(--accent);
color: #fff;
}
button:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.error {
color: #b91c1c;
padding: 1rem;
}