/* Branding for the compiled Plane frontend. Keep this stylesheet after the vendor CSS. */
:root, :root[data-theme], :root[data-theme="dark"] {
  color-scheme: light;
  --brand-100: #fff7f0;
  --brand-200: #ffeddc;
  --brand-300: #ffdbbd;
  --brand-400: #ffc49a;
  --brand-500: #ffa66a;
  --brand-600: #fb8539;
  --brand-700: #f57525;
  --brand-900: #d44817;
  --brand-1000: #af3314;
  --brand-1100: #8c2812;
  --brand-1200: #69200f;
  --brand-default: #f57525;
  --bg-canvas: #f7f7f7;
  --bg-surface-1: #fff;
  --bg-surface-2: #fff;
  --bg-layer-1: #fafafa;
  --bg-layer-1-hover: #fff7f0;
  --bg-layer-1-active: #ffebdb;
  --bg-layer-1-selected: #ffebdb;
  --bg-layer-2: #fff;
  --bg-layer-2-hover: #fff7f0;
  --bg-layer-2-active: #ffebdb;
  --bg-layer-2-selected: #ffebdb;
  --bg-layer-3: #f3f3f3;
  --bg-layer-transparent-selected: #ffebdb;
  --bg-accent-primary: #f57525;
  --bg-accent-primary-hover: #e45c1d;
  --bg-accent-primary-active: #d44817;
  --bg-accent-subtle: #fff1e5;
  --border-accent-strong: #f57525;
  --border-accent-subtle: #ffc49a;
  --txt-accent-primary: #dc4b17;
  --txt-accent-secondary: #ad3614;
  --txt-primary: #28282d;
  --txt-secondary: #50515a;
  --border-subtle: #eceae8;
}
html, body { background: #f7f7f7; }
/* Some controls use Tailwind's generated color utilities rather than theme tokens. */
.bg-blue-500, .bg-blue-600 { background-color: #f57525 !important; }
.text-blue-500, .text-blue-600 { color: #e8581e !important; }
.border-blue-500, .border-blue-600 { border-color: #f57525 !important; }
.bg-accent-primary:is(button, a), button.bg-accent-primary, [aria-current="page"], [aria-selected="true"], [data-state="active"] { box-shadow: 0 3px 12px #f5752533; }
.bg-accent-primary:is(button, a), button.bg-accent-primary { background-color: #f57525 !important; }
.bg-layer-1-selected, .bg-layer-2-selected, [aria-current="page"], [aria-selected="true"] { background-color: #fff1e5 !important; }
:is(button, a, input):focus-visible { outline: 2px solid #f57525; outline-offset: 2px; box-shadow: 0 0 0 4px #f5752533; }
/* The sidebar marks the current route with !bg-layer-transparent-active. */
#main-sidebar [class~="!bg-layer-transparent-active"] {
  min-height: 44px;
  border-radius: 16px;
  background: linear-gradient(105deg, #e93020, #f57525) !important;
  color: #fff !important;
  box-shadow: 0 5px 14px #ef602344;
}
#main-sidebar [class~="!bg-layer-transparent-active"] :is(svg, p, span) { color: #fff !important; }
/* Same left-menu look everywhere (main sidebar and profile/workspace/project settings), matching god-mode. */
#main-sidebar [class~="hover:bg-layer-transparent-hover"]:hover,
[class*="rounded-lg px-2 py-1.5 text-left text-body-sm-medium"][class~="hover:bg-layer-transparent-hover"]:hover {
  background: linear-gradient(105deg, #e9302026, #f5752538) !important;
}
[class*="rounded-lg px-2 py-1.5 text-left text-body-sm-medium"][class~="bg-layer-transparent-selected"] {
  border-radius: 12px;
  background: linear-gradient(105deg, #e93020, #f57525) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px #ef60233d !important;
}
[class*="rounded-lg px-2 py-1.5 text-left text-body-sm-medium"][class~="bg-layer-transparent-selected"] :is(svg, span) { color: #fff !important; }
.bonafide-logo { display: inline-block; width: min(220px, 100%); height: auto; object-fit: contain; }
.bonafide-header-logo { display: block; width: 152px; height: auto; max-height: 42px; object-fit: contain; object-position: left center; }
.bonafide-app-brandbar { position: relative; z-index: 28; display: flex; flex: none; align-items: center; width: 100%; height: 66px; padding: 4px 16px; background: #fff; box-shadow: 0 3px 13px #d4492429; }
.bonafide-app-brandbar a { display: inline-flex; align-items: center; height: 100%; max-width: 100%; }
.bonafide-app-brandbar-logo { display: block; width: min(265px, 70vw); max-height: 58px; object-fit: contain; object-position: left center; }
.bonafide-workspace-menu { width: min(360px, calc(100vw - 32px)) !important; padding: 6px 8px 8px; border-radius: 12px; }
.bonafide-workspace-menu-top { top: 106px !important; left: 16px !important; }
.bonafide-workspace-menu-sidebar { top: 110px !important; left: 56px !important; }
/* Match the dropdown even when a browser/server still serves the older JS bundle. */
div.fixed:has(.bonafide-workspace-item):not(.bonafide-workspace-menu-sidebar) { top: 106px !important; left: 16px !important; z-index: 50 !important; width: min(360px, calc(100vw - 32px)) !important; padding: 6px 8px 8px; }
div.fixed:has(.bonafide-workspace-item) > div:first-child > :first-child { position: relative !important; display: block; flex: none; width: 100%; height: auto !important; min-height: 42px; padding: 11px 12px !important; overflow: hidden; background: #fff; color: #52545b !important; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.bonafide-workspace-menu > div:first-child { max-height: min(384px, calc(100vh - 240px)); overflow-x: hidden; overflow-y: auto; }
.bonafide-workspace-email { position: relative; z-index: 2; display: block; flex: none; width: 100%; min-height: 42px; padding: 11px 12px; overflow: hidden; border-bottom: 1px solid #f1eeeb; background: #fff; color: #52545b !important; font-size: 13px; font-weight: 500; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.bonafide-workspace-item { width: calc(100% - 8px); margin: 4px; padding: 10px 12px; border-radius: 12px; }
.bonafide-workspace-item:hover { background: #fff1e5; }
.bonafide-workspace-current, .bonafide-workspace-current:hover { background: linear-gradient(105deg, #e93020, #f57525) !important; box-shadow: 0 4px 12px #ef60233d; }
.bonafide-workspace-current > div:first-child, .bonafide-workspace-current > div:first-child :is(div, span, p, svg) { color: #fff !important; }
.bonafide-workspace-current > div:first-child .text-tertiary { color: #fff3e9 !important; }
.bonafide-workspace-current > div:last-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bonafide-workspace-current > div:last-child > a { display: inline-flex; min-width: 0; min-height: 34px; align-items: center; justify-content: center; padding: 6px; white-space: nowrap; }
.bonafide-workspace-current a, .bonafide-workspace-current a :is(span, svg) { color: #41434b !important; }
.bonafide-create-workspace-logo { display: block; width: min(230px, 65vw); height: auto; max-height: 48px; object-fit: contain; }
.bonafide-loading-screen { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; background: linear-gradient(118deg, #d80823 0%, #e44920 51%, #ef8027 100%); }
.bonafide-loading-symbol { display: block; width: min(176px, 40vw); height: auto; animation: bonafide-loader-spin 1.2s linear infinite; }
.bonafide-loading-wordmark { display: block; width: min(288px, 70vw); height: auto; }
@keyframes bonafide-loader-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bonafide-loading-symbol { animation: none; } }
html.bonafide-splash-active::before { content: ''; position: fixed; inset: 0; z-index: 2147483646; background: linear-gradient(118deg, #d80823 0%, #e44920 51%, #ef8027 100%); animation: bonafide-splash-in .25s ease-out both; }
html.bonafide-splash-active::after { content: ''; position: fixed; top: calc(50% - 46px); left: 50%; width: min(176px, 40vw); aspect-ratio: 1; z-index: 2147483647; background: url('/bonafide-isotipo-blanco.webp') center / contain no-repeat; animation: bonafide-spin 1.2s linear infinite; }
html.bonafide-splash-active body::before { content: ''; position: fixed; top: calc(50% + 57px); left: 50%; width: min(288px, 70vw); aspect-ratio: 700 / 181; z-index: 2147483647; transform: translateX(-50%); background: url('/bonafide-logo-texto-blanco.webp') center / contain no-repeat; }
@keyframes bonafide-splash-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes bonafide-spin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { html.bonafide-splash-active::before, html.bonafide-splash-active::after { animation: none; } html.bonafide-splash-active::after { transform: translate(-50%, -50%); } }
