:root {
  --text: rgba(0, 0, 0, .9);
  --muted: rgba(0, 0, 0, .6);
  --placeholder: rgba(0, 0, 0, .3);
  --background: #fafafa;
  --surface: #ffffff;
  --subtle: #f5f5f7;
  --border: #e8e8e8;
  --accent: #1a1a1a;
  --mint: #32e6b9;
  --success: #008b6b;
  --danger: #bd343a;
  --danger-bg: #fff3f3;
  --danger-border: #f3d4d6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color-scheme: only light;
}
.workbuddy-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.wb-header {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 76px; padding: 18px 40px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.wb-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wb-brand img { flex-shrink: 0; }
.wb-brand strong { font-size: 21px; font-weight: 600; }
.wb-brand-divider { height: 20px; width: 1px; background: var(--border); margin: 0 10px; flex-shrink: 0; }
.wb-product { color: var(--muted); font-size: 13px; }
.wb-header-nav { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.wb-guide-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.wb-guide-link svg { width: 16px; height: 16px; }
.wb-guide-link:hover, .wb-guide-link[aria-current="page"] { color: var(--text); }
.wb-main {
  flex: 1; display: grid; place-items: center; width: 100%;
  padding: 48px 24px 56px;
}
.wb-auth { width: 440px; max-width: 100%; min-width: 0; }
.wb-auth-heading { display: flex; align-items: center; gap: 16px; padding-bottom: 28px; }
.wb-auth-heading > div { min-width: 0; }
.wb-service-icon {
  width: 52px; height: 52px; flex: 0 0 52px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #e7faf3; color: #00775c; border: 1px solid #cef0e3;
}
.wb-service-icon svg { width: 26px; height: 26px; }
.wb-environment {
  display: inline-block; font-size: 11px; color: #008260; font-weight: 500;
  background: #e7faf3; border-radius: 3px; padding: 3px 7px; margin-bottom: 8px;
}
.wb-auth h1 { font-size: 24px; line-height: 32px; font-weight: 600; }
.wb-auth-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); padding-top: 24px; }
.wb-auth-title h2 { font-size: 16px; }
.login-form { gap: 10px; margin-top: 15px; }
.login-form > label { font-size: 14px; line-height: 22px; font-weight: 500; }
input[type="text"], input[type="password"] {
  min-height: 44px; border-radius: 8px; font-size: 14px; line-height: 22px;
  background: var(--subtle); border-color: transparent;
}
input::placeholder { color: var(--placeholder); opacity: 1; }
input[type="text"]:focus, input[type="password"]:focus { border-color: var(--accent); outline-color: var(--accent); }
.password-field .icon-button { top: 5px; }
.challenge-field { background: var(--subtle); border-radius: 8px; min-height: 49px; }
.challenge-field code { font-size: 12px; }
.verification-heading { margin-top: 14px; }
.verification-heading label { font-size: 14px; line-height: 22px; font-weight: 500; }
.nonce-row { gap: 10px; }
.nonce-row .button { min-height: 44px; border-radius: 8px; font-weight: 500; }
.nonce-row svg { width: 16px; height: 16px; }
.button.primary { border-radius: 8px; min-height: 44px; background: #000000; border-color: #000000; font-weight: 500; }
.button.primary:hover { background: #1a1a1a; border-color: #1a1a1a; filter: none; }
.form-actions { gap: 12px; }
.form-actions .primary { min-height: 56px; font-size: 16px; padding-left: 16px; padding-right: 16px; }
.field-status { min-height: 18px; }
.wb-auth-footer { display: flex; align-items: center; justify-content: flex-end; gap: 14px; font-size: 11px; color: var(--muted); margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.wb-auth-footer a { display: flex; align-items: center; gap: 6px; }
.wb-auth-footer svg { width: 14px; height: 14px; }
.wb-auth-footer a:hover { color: var(--text); }
.wb-footer { padding: 20px 40px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--border); background: var(--surface); }
.wb-footer-dot { padding: 0 8px; color: #c1c5ca; }
.wb-entry { width: 440px; max-width: 100%; min-width: 0; }
.wb-entry-heading { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 18px; text-align: center; }
.wb-heading h1 { font-size: 26px; font-weight: 600; line-height: 1.4; }
.wb-heading p { color: var(--muted); font-size: 13px; margin-top: 6px; }
.wb-entry-categories { color: var(--muted); font-size: 12px; text-align: center; line-height: 1.8; }
.wb-workspace-summary { display: grid; grid-template-columns: 90px minmax(0, 1fr); margin: 28px 0 0; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; line-height: 1.8; }
.wb-workspace-summary dt, .wb-workspace-summary dd { margin: 0; padding: 8px 0; overflow-wrap: anywhere; }
.wb-workspace-summary dt { display: flex; align-items: center; color: var(--muted); }
.wb-workspace-summary dd { min-width: 0; }
.wb-context-select { position: relative; width: 100%; min-width: 0; }
.wb-select-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; height: 44px; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--subtle); color: var(--text); font-size: 13px; text-align: left;
}
.wb-select-trigger:hover { border-color: #c8c8c8; }
.wb-select-trigger[aria-expanded="true"] { border-color: var(--accent); }
.wb-select-trigger svg { width: 16px; height: 16px; color: var(--muted); }
.wb-select-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.wb-select-menu {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 10;
  padding: 4px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}
.wb-select-option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 36px; padding: 7px 8px; border-radius: 4px; background: var(--subtle);
  color: var(--text); font-size: 13px; cursor: pointer;
}
.wb-select-option:hover { background: #ededf0; }
.wb-select-option svg { width: 16px; height: 16px; color: var(--success); }
.wb-launch { width: 100%; justify-content: space-between; padding-left: 16px; padding-right: 16px; margin-top: 24px; }
.wb-launch.button.primary { min-height: 56px; font-size: 16px; }
.error-message { margin-top: 18px; }
.error-message svg { width: 16px; height: 16px; margin-top: 2px; }
.wb-guide { width: 800px; max-width: 100%; min-width: 0; line-height: 1.8; }
.wb-guide-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 28px; }
.wb-guide-heading > div { min-width: 0; }
.wb-guide-heading h1 { font-size: 26px; font-weight: 600; }
.wb-guide-heading p { color: var(--muted); font-size: 12px; margin-top: 8px; overflow-wrap: anywhere; }
.wb-guide-heading .button { font-size: 12px; flex-shrink: 0; }
.wb-guide-tools { max-width: 100%; }
.wb-guide-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wb-guide-tools .wb-copy-status { min-height: 20px; margin-top: 6px; font-size: 11px; text-align: right; }
.wb-guide-section { padding: 28px 0; border-top: 1px solid var(--border); }
.wb-guide-section h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.wb-guide-section h2 svg { width: 18px; height: 18px; }
.wb-guide-section p { font-size: 13px; color: var(--muted); margin-top: 10px; overflow-wrap: anywhere; }
.wb-guide-section code { font-size: 12px; overflow-wrap: anywhere; color: #30363c; }
.wb-guide-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.wb-guide-section-heading > span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; flex-shrink: 0; }
.wb-guide-section-heading > span svg { width: 14px; height: 14px; }
.wb-api-scroll { margin-top: 20px; }
.wb-api-table { table-layout: fixed; min-width: 640px; line-height: 1.7; }
.wb-api-table th:first-child { width: 64px; }
.wb-api-table th:nth-child(2) { width: 42%; }
.wb-api-table th, .wb-api-table td { padding: 12px 10px; }
.wb-api-table td:first-child { white-space: nowrap; }
.wb-api-table td:last-child { color: var(--muted); }
.wb-api-code { margin: 14px 0; padding: 14px 16px; background: var(--subtle); border-left: 2px solid #b4d9ca; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.7; }
.wb-api-example-title { margin-top: 20px; font-size: 13px; font-weight: 600; }
.wb-guide-note { display: flex; align-items: flex-start; gap: 8px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.wb-guide-note svg { width: 14px; height: 14px; margin-top: 3px; }
@media (max-width: 640px) {
  .wb-header { padding: 16px 20px; min-height: 68px; gap: 12px; }
  .wb-brand strong { font-size: 19px; }
  .wb-brand-divider, .wb-product { display: none; }
  .wb-header-nav { gap: 0; }
  .wb-guide-link { font-size: 11px; gap: 4px; }
  .wb-main { padding: 36px 20px 40px; }
  .wb-auth h1 { font-size: 21px; }
  .wb-footer { padding: 18px 20px; flex-wrap: wrap; font-size: 10px; }
  .wb-guide-heading { flex-direction: column; align-items: flex-start; gap: 18px; }
  .wb-guide-heading h1 { font-size: 23px; }
  .wb-guide-tools .wb-copy-status { text-align: left; }
}
@media (max-width: 360px) {
  .wb-main { padding-left: 16px; padding-right: 16px; }
  .wb-auth-heading, .wb-entry-heading { gap: 12px; }
  .wb-auth h1 { font-size: 19px; }
  .nonce-row { grid-template-columns: minmax(0, 1fr); }
  .wb-heading h1 { font-size: 22px; }
}
