/* Wybe web UI — design system extracted from raw/ui-preview-base, 2-column layout:
   [ Sidebar 240px ] [ Main chat workspace ]                                        */

:root {
  --ink: #262824;
  --sub: #686b63;
  --muted: #858780;
  --line: #e9eae4;
  --soft: #f7f7f3;
  --side: #f8f8f6;
  --green: #476044;
  --green-dark: #35472f;
  --green-soft: #eaf0e6;
  --amber: #94723b;
  --amber-soft: #f8f3e9;
  --red: #8a2f2f;
  --red-soft: #f8ecea;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --font: "Instrument Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  /* assistant-ui-lean inherits Wybe's palette */
  --aui-ink: var(--ink);
  --aui-muted: var(--sub);
  --aui-line: var(--line);
  --aui-paper: #ffffff;
  --aui-user: #f2f3ee;
  --aui-accent: var(--green);
  --aui-mono: var(--mono);
  --aui-error: var(--red);
  --aui-radius: 12px;
  --aui-gap: 14px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; }
body { font: 14px var(--font); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:hover { background: var(--soft); }
.aui-composer-send:hover { background: var(--green-dark); color: #fff; }
.aui-composer-cancel:hover { background: #6f2424; color: #fff; }
button:disabled { cursor: default; opacity: .4; }
button, input, textarea, select, a, summary { outline-offset: 3px; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible,
a:focus-visible, summary:focus-visible { outline: 2px solid #7b926d; }
button, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
code, kbd, pre { font-family: var(--mono); }
code { font-size: 12px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.icon-button { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--sub); flex-shrink: 0; }
.icon-button:hover { background: #eaece5; }
.dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #839674; flex-shrink: 0; }

/* ---------- App shell: 2 columns ---------- */
.app {
  height: 100dvh;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  overflow: hidden;
}

/* ---------- Sidebar (left) ---------- */
.sidebar {
  background: var(--side);
  border-right: 1px solid var(--line);
  padding: 27px 16px 17px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.brand { display: flex; align-items: center; gap: 9px; padding: 0 12px; font-size: 25px; font-weight: 650; letter-spacing: -1.3px; flex-shrink: 0; }
.brand svg { width: 27px; height: 27px; stroke-width: 2.5; color: var(--green); }
.sidebar-scroll { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -6px; padding: 0 6px; scrollbar-width: thin; scrollbar-color: #e3e5de transparent; }
.nav-label, .nav-heading {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10px; font-weight: 600; letter-spacing: 1.15px; color: var(--muted); text-transform: uppercase;
  padding: 0 11px; margin: 39px 0 12px;
}
.nav-heading .icon-button { width: 24px; height: 24px; }
.project-list { display: block; }
.project-button, .project-item {
  width: 100%; height: 41px; display: flex; gap: 10px; align-items: center; padding: 0 12px;
  border-radius: 7px; margin-bottom: 4px; color: var(--sub); font-size: 13px; text-align: left;
}
.project-button > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-button[aria-current="page"], .project-button.selected, .project-item.selected { background: #e9ece3; color: #30432d; font-weight: 550; }
.project-button .dot, .project-button .selected-dot { margin-left: auto; }
.selected-dot { width: 5px; height: 5px; border-radius: 50%; background: #839674; flex-shrink: 0; }
.project-glyph, .glyph {
  height: 22px; width: 22px; border: 1px solid #d9ddd2; border-radius: 6px; background: #fff;
  display: grid; place-items: center; font-size: 10px; color: #707a65; flex-shrink: 0;
}
.project-button[aria-current="page"] .project-glyph, .selected .project-glyph { background: #f6f9f1; border-color: #cfdbc5; color: var(--green); }
.subnav { margin: 6px 0 13px 23px; border-left: 1px solid #dedfd7; padding-left: 10px; }
.subitem {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 9px; text-align: left;
  color: var(--sub); font-size: 11px; border-radius: 5px;
}
.subitem span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subitem svg { width: 13px; height: 13px; }
.subitem.active, .subitem[aria-current="true"] { color: var(--green-dark); font-weight: 550; background: #eeefe9; }
.sidebar-bottom { flex-shrink: 0; padding-top: 18px; border-top: 1px solid var(--line); margin-top: 10px; }
.profile { display: flex; align-items: center; gap: 10px; padding: 8px 11px 0; font-size: 12px; }
.profile .avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.profile small, .profile .personal { margin-left: auto; font-size: 10px; color: var(--muted); }

/* ---------- Chat workspace (right) ---------- */
.chat { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: #fff; position: relative; }
.chat-header {
  height: 69px; flex-shrink: 0; border-bottom: 1px solid var(--line); padding: 0 30px;
  display: flex; align-items: center; gap: 8px;
}
.chat-header h2 { font-size: 12px; font-weight: 550; }
.chat-header .actions { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.chat-tools button:not(.icon-button) { border: 1px solid var(--line); border-radius: 6px; padding: 4px 9px; font-size: 11px; color: var(--sub); background: #fff; }
.chat-tools button:not(.icon-button):hover:not(:disabled) { background: var(--soft); border-color: #d6dacd; color: var(--ink); }
.thread-heading { width: 100%; max-width: 820px; margin: 0 auto; padding: 19px 30px 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; color: var(--muted); }
.thread-heading time { font-size: 9px; color: #a0a595; white-space: nowrap; }

.thread, .aui-thread {
  flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #e3e5de transparent;
}
.thread { padding: 24px 30px; }
.thread > *, .aui-thread-viewport { max-width: 820px; margin-left: auto; margin-right: auto; width: 100%; }

/* assistant-ui-lean overrides: borderless, centred reading column */
.aui-thread { border: 0; border-radius: 0; background: transparent; width: 100%; max-width: 820px; margin: 0 auto; }
.aui-thread-viewport { overflow: visible; padding: 24px 30px; gap: 22px; max-width: none; }
.aui-message { max-width: 100%; padding: 0; border: 0; border-radius: 0; font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }
.aui-message[data-role="user"] { align-self: flex-end; max-width: 85%; background: var(--aui-user); border-radius: 12px 12px 3px 12px; padding: 10px 14px; }
.aui-message[data-role="assistant"] { align-self: stretch; border: 0; }
.aui-message[data-role="system"] { align-self: center; font-size: 11px; }
.aui-text { margin: 0 0 8px; white-space: pre-wrap; }
.aui-text:last-child { margin-bottom: 0; }
.aui-reasoning { font-size: 12px; }
.aui-empty { text-align: center; padding: 60px 0; }

/* messages (non-aui markup) */
.message { font-size: 13px; line-height: 1.85; margin-bottom: 24px; overflow-wrap: anywhere; }
.message.user { background: var(--aui-user); border-radius: 12px 12px 3px 12px; padding: 10px 14px; max-width: 85%; margin-left: auto; }
.message.assistant p { margin-bottom: 11px; }
.message.assistant p:last-child { margin-bottom: 0; }
.assistant-head { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #5f7052; font-weight: 550; margin-bottom: 8px; }
.assistant-head svg { width: 15px; height: 15px; stroke-width: 2; }
.message-actions { display: flex; margin-top: 8px; }
.message-actions button { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 5px; color: #a0a792; }
.message-actions svg { width: 13px; height: 13px; }

/* empty state + suggestions */
.empty-chat { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8vh 0 20px; }
.empty-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin-bottom: 18px; }
.empty-icon svg { width: 24px; height: 24px; stroke-width: 2.2; }
.empty-chat h3 { font: 400 30px/1.2 var(--serif); letter-spacing: -.3px; margin-bottom: 8px; }
.empty-chat p { font-size: 13px; line-height: 1.7; color: var(--sub); max-width: 420px; margin-bottom: 24px; }
.suggestions { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 440px; }
.suggestion {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left;
  border: 1px solid var(--line); border-radius: 9px; padding: 11px 14px; font-size: 12px; color: var(--sub); background: #fff;
}
.suggestion:hover { background: var(--soft); border-color: #dcdfd3; color: var(--green-dark); }
.suggestion svg { width: 14px; height: 14px; color: #959e8b; }

/* history menu */
.menu {
  position: absolute; top: 60px; right: 24px; z-index: 6; width: 280px; max-height: 360px; overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; box-shadow: 0 14px 34px #26282420;
}
.menu small, .menu .menu-label { display: block; padding: 8px 10px 6px; font-size: 10px; color: var(--muted); }
.menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; font-size: 12px; }
.menu button small { padding: 2px 0 0; }
.menu button[aria-current="true"] { background: var(--green-soft); color: var(--green-dark); }

/* ---------- Tool activity / aui-tool-call ---------- */
.tool-activity, .activity, .aui-tool-call {
  margin: 12px 0; padding: 0; border: 1px solid #e4e7de; border-radius: 8px; background: #fcfdf9;
  font-size: 11px; color: var(--sub); overflow: hidden;
}
.aui-tool-call { border-style: solid; padding: 0; }
.tool-activity > summary, .activity > summary, .aui-tool-call > summary, .aui-tool-head {
  list-style: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; min-width: 0;
}
.tool-activity > summary::-webkit-details-marker, .activity > summary::-webkit-details-marker, .aui-tool-call > summary::-webkit-details-marker { display: none; }
.tool-activity > summary:hover, .activity > summary:hover, .aui-tool-call > summary:hover { background: #f3f6ee; }
.tool-activity summary svg, .activity summary svg, .aui-tool-call summary svg { width: 13px; height: 13px; color: var(--green); }
.tool-activity summary .chevron, .activity summary .chevron, .aui-tool-call summary .chevron { margin-left: auto; color: #959e8b; transition: transform .15s; }
.tool-activity[open] summary .chevron, .activity[open] summary .chevron, .aui-tool-call[open] summary .chevron { transform: rotate(90deg); }
.aui-tool-call > summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 1.6px solid #959e8b; border-bottom: 1.6px solid #959e8b; transform: rotate(-45deg); transition: transform .15s; flex-shrink: 0; }
.aui-tool-call[open] > summary::after { transform: rotate(45deg); }
.aui-tool-call > summary:has(.chevron)::after { display: none; }
.aui-tool-name { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--ink); }
.aui-tool-summary { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.aui-tool-call[data-status="running"] .aui-tool-name::before,
.aui-tool-call[data-status="pending"] .aui-tool-name::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.2s ease-in-out infinite;
}
.aui-tool-call[data-status="error"], .aui-tool-call[data-error="true"] { border-color: #ecd3cf; background: var(--red-soft); }
.activity-body, .aui-tool-call > :not(summary) { padding-left: 12px; padding-right: 12px; }
.activity-body { display: grid; gap: 6px; padding: 4px 12px 11px 33px; font-size: 11px; line-height: 1.6; }
.aui-tool-call > :last-child { margin-bottom: 10px; }
.aui-tool-key { font-size: 9px; letter-spacing: .8px; color: var(--muted); }
.aui-tool-value, .aui-tool-arguments, .aui-tool-result {
  font-family: var(--mono); font-size: 10.5px; line-height: 1.65; background: var(--aui-user); border-radius: 6px; max-height: 240px; overflow: auto;
}
.aui-tool-pending { font-size: 11px; font-family: var(--mono); }

/* ---------- Pills: cost, status, duration ---------- */
.pill, .cost-pill, .status-pill, .duration-pill {
  display: inline-flex; align-items: center; gap: 5px; border: 1px solid #e1e5da; background: #fcfdf9; color: #758366;
  border-radius: 5px; padding: 3px 7px; font-family: var(--mono); font-size: 9.5px; line-height: 1.4; white-space: nowrap; font-weight: 450; flex-shrink: 0;
}
.cost-pill { color: var(--amber); border-color: #ede2cc; background: var(--amber-soft); }
.duration-pill { color: var(--sub); border-color: #e6e7e0; background: #fafaf8; }
.cost-pill.tokens, .pill.neutral { color: var(--sub); border-color: #e6e7e0; background: #fafaf8; }
.pill.amber { color: var(--amber); border-color: #ede2cc; background: var(--amber-soft); }
.pill svg, .cost-pill svg, .status-pill svg, .duration-pill svg { width: 11px; height: 11px; }
.status-pill { font-family: var(--font); font-size: 10px; }
.status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pill[data-status="running"], .status-pill.running { color: var(--green); background: var(--green-soft); border-color: #d6e2cf; }
.status-pill[data-status="running"]::before, .status-pill.running::before { animation: pulse 1.2s ease-in-out infinite; }
.status-pill[data-status="done"], .status-pill.done { color: var(--green-dark); }
.status-pill[data-status="error"], .status-pill.error, .status-pill[data-status="failed"], .status-pill.failed { color: var(--red); background: var(--red-soft); border-color: #ecd3cf; }
.status-pill[data-status="steering"], .status-pill.steering { color: var(--amber); background: var(--amber-soft); border-color: #ede2cc; }
.turn-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.tool-activity .duration-pill, .tool-activity .cost-pill, .aui-tool-call > summary .duration-pill, .aui-tool-call > summary .cost-pill { margin-left: auto; }
.tool-activity .duration-pill + .chevron, .aui-tool-call .cost-pill + .chevron { margin-left: 0; }
.running-message { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--sub); margin-bottom: 24px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.2s ease-in-out infinite; display: inline-block; }
@keyframes pulse { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }

/* ---------- Composer (pinned) ---------- */
.composer-wrap { flex-shrink: 0; width: 100%; max-width: 820px; margin: 0 auto; padding: 0 30px 16px; }
.context-note { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--muted); margin-bottom: 9px; }
.composer { border: 1px solid #dfe2d8; border-radius: 12px; background: #fff; padding: 12px 12px 10px 14px; box-shadow: 0 1px 2px #2628240a; transition: border-color .15s, box-shadow .15s; }
.composer:focus-within { border-color: #aebba5; box-shadow: 0 0 0 3px #47604414; }
.composer textarea { display: block; width: 100%; border: 0; outline: none; resize: none; background: none; font-size: 13px; line-height: 1.6; min-height: 44px; max-height: 170px; padding: 0; }
.composer textarea::placeholder { color: #a0a595; }
.composer-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.model-label { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); }
.model-label svg { width: 13px; height: 13px; color: var(--green); }
.send-button { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--green); color: #fff; flex-shrink: 0; }
.send-button:hover { background: var(--green-dark); }
.send-button:disabled { background: #cfd5c8; opacity: 1; }
.send-button svg { width: 16px; height: 16px; stroke-width: 2; }
.composer-hint { margin-top: 8px; font-size: 9.5px; color: #a0a595; text-align: center; }
.composer-hint kbd { font: 9px var(--mono); border: 1px solid var(--line); border-radius: 4px; padding: 1px 4px; background: var(--soft); color: var(--sub); }
.attachment-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--soft); border-radius: 6px; padding: 4px 6px 4px 8px; font-size: 11px; margin-bottom: 8px; }
.attachment-chip svg { width: 13px; height: 13px; }

/* model selector */
.model-select {
  appearance: none; -webkit-appearance: none;
  font-family: var(--mono); font-size: 10px; color: var(--sub);
  border: 1px solid #e4e7de; border-radius: 6px; background: #fafbf8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23858780' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 6px center / 12px;
  padding: 6px 24px 6px 9px; max-width: 200px; cursor: pointer;
}
.model-select:hover { background-color: var(--soft); border-color: #d6dacd; }
.model-select:disabled { opacity: .5; cursor: default; }

/* live steering bar */
.steer-bar {
  display: flex; align-items: center; gap: 9px; margin-bottom: 9px; padding: 7px 8px 7px 12px;
  border: 1px solid #ede2cc; border-radius: 10px; background: var(--amber-soft); color: var(--amber); font-size: 11px;
}
.steer-bar .pulse { background: var(--amber); }
.steer-bar input, .steer-bar textarea {
  flex: 1; min-width: 0; border: 1px solid #e8dcc3; background: #fff; border-radius: 6px; padding: 6px 9px; font-size: 12px; color: var(--ink); outline: none;
}
.steer-bar input:focus, .steer-bar textarea:focus { border-color: var(--amber); }
.steer-bar button { padding: 6px 10px; border-radius: 6px; font-size: 11px; font-weight: 550; color: var(--amber); }
.steer-bar button:hover { background: #f1e8d4; }
.steer-bar button.primary { background: var(--amber); color: #fff; }
.steer-bar button.primary:hover { background: #7f6230; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: #26282440; padding: 20px; }
.modal { width: 100%; max-width: 420px; background: #fff; border-radius: 14px; padding: 24px; box-shadow: 0 24px 60px #26282430; }
.modal h2 { font: 400 26px/1.2 var(--serif); margin-bottom: 8px; }
.modal p { font-size: 12px; line-height: 1.7; color: var(--sub); margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 11px; font-weight: 550; color: var(--sub); }
.field input, .field select, .field textarea { border: 1px solid #dfe2d8; border-radius: 8px; padding: 9px 11px; font-size: 13px; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #aebba5; box-shadow: 0 0 0 3px #47604414; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.modal-actions button { padding: 8px 14px; border-radius: 8px; font-size: 12px; border: 1px solid var(--line); }
.modal-actions button.primary { background: var(--green); border-color: var(--green); color: #fff; }
.modal-actions button.primary:hover { background: var(--green-dark); }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 60; background: var(--ink); color: #fff; font-size: 12px; padding: 9px 14px; border-radius: 8px; box-shadow: 0 8px 24px #2628242e; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .app { grid-template-columns: 200px minmax(0, 1fr); }
  .chat-header { padding: 0 20px; }
  .thread { padding: 22px 20px; }
  .thread-heading { padding: 18px 20px 0; }
  .aui-thread-viewport { padding: 22px 20px; }
  .composer-wrap { padding: 0 16px 14px; }
}
@media (max-width: 680px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; position: fixed; z-index: 20; top: 0; bottom: 0; left: 0; width: 240px; box-shadow: 12px 0 30px #0001; }
  .app.nav-open .sidebar { display: flex; }
  .chat-header { height: 57px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.error-banner { margin: 10px 6px 0; padding: 8px 10px; border: 1px solid #ecd3cf; border-radius: 8px; background: var(--red-soft); color: var(--red); font-size: 11px; line-height: 1.4; }
.chat-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; flex: 1; }
.chat-title h2 { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Hosted identity belongs to Clerk; provider connections belong to the active org. */
.auth-page { min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:24px; }
.org-toolbar { position:fixed; inset:0 0 auto 0; height:54px; padding:0 24px; display:flex; align-items:center; gap:20px; background:#f7f8f4; border-bottom:1px solid #e2e5db; z-index:30; }
.org-toolbar > span { flex:1; color:#596450; font-size:13px; }
.hosted .app { margin-top:54px; height:calc(100vh - 54px); }
.hosted .workspace-note, .hosted .profile { display:none; }
.provider-dialog { width:min(560px,90vw); padding:28px; border:1px solid #cdd2c5; border-radius:14px; color:#293124; }
.provider-dialog::backdrop { background:rgba(0,0,0,.35); }
.provider-dialog label { display:block; margin:16px 0; }
.provider-dialog label[hidden], .provider-dialog p[hidden], .provider-dialog form[hidden] { display:none; }
.provider-dialog input, .provider-dialog select { display:block; width:100%; margin-top:7px; padding:8px; box-sizing:border-box; }
.provider-dialog button, .org-toolbar button { padding:8px 12px; cursor:pointer; }
.provider-dialog [role=status] { min-height:1.5em; }
