/* Version: 1.2.4 */
/* Updated: 2026-11-16 */

:root {
  color-scheme: light;
  --color-page: #f4f4f2;
  --color-surface: rgb(255 255 255 / 74%);
  --color-surface-border: rgb(20 20 20 / 8%);
  --color-text: #171717;
  --color-text-muted: #77736f;
  --color-accent: #f47721;
  --color-accent-strong: #e96512;
  --color-focus: #f47721;
  --color-accent-soft: rgb(244 119 33 / 12%);
  --color-accent-wash: rgb(244 119 33 / 9%);
  --color-accent-border: rgb(244 119 33 / 22%);
  --color-accent-hover-border: rgb(244 119 33 / 45%);
  --color-neutral-hover: rgb(127 127 127 / 8%);
  --shadow-floating: 0 12px 40px rgb(0 0 0 / 14%);
  --gradient-brand: linear-gradient(120deg, #f47721 0%, #ff9a42 48%, #171717 100%);
  --shadow-surface: 0 24px 80px rgb(30 24 18 / 8%);
  --motion-standard: 220ms cubic-bezier(.2, .75, .25, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --color-page: #101010;
  --color-surface: rgb(30 30 30 / 72%);
  --color-surface-border: rgb(255 255 255 / 9%);
  --color-text: #f6f5f3;
  --color-text-muted: #96918b;
  --color-accent: #ff8735;
  --color-accent-strong: #ff9a50;
  --color-focus: #ff8735;
  --color-accent-soft: rgb(255 135 53 / 14%);
  --color-accent-wash: rgb(255 135 53 / 10%);
  --color-accent-border: rgb(255 135 53 / 25%);
  --color-accent-hover-border: rgb(255 135 53 / 48%);
  --color-neutral-hover: rgb(255 255 255 / 8%);
  --shadow-floating: 0 12px 40px rgb(0 0 0 / 32%);
  --gradient-brand: linear-gradient(120deg, #ff8735 0%, #f47721 46%, #f4eee8 100%);
  --shadow-surface: 0 24px 90px rgb(0 0 0 / 28%);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--color-page);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--color-text);
  background:
    radial-gradient(ellipse at 50% 43%, rgb(244 119 33 / 9%), transparent 43%),
    var(--color-page);
  transition: background-color var(--motion-standard), color var(--motion-standard);
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(ellipse at 50% 43%, rgb(244 119 33 / 13%), transparent 42%),
    var(--color-page);
}

button,
a {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 4px;
}

.page-shell {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  padding:
    max(24px, env(safe-area-inset-top))
    max(32px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(32px, env(safe-area-inset-left));
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100%, 1440px);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--color-text);
  font-size: 19px;
  font-weight: 720;
  letter-spacing: -.055em;
  text-decoration: none;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--gradient-brand);
  box-shadow: 0 0 22px rgb(244 119 33 / 34%);
  transform: rotate(45deg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.login-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-surface-border);
  border-radius: 999px;
  color: var(--color-text);
  text-decoration: none;
  transition:
    background-color var(--motion-standard),
    border-color var(--motion-standard),
    transform var(--motion-standard);
}

.theme-toggle {
  width: 42px;
  padding: 0;
  background: var(--color-surface);
  cursor: pointer;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.theme-toggle:hover,
.login-link:hover {
  border-color: rgb(244 119 33 / 42%);
  transform: translateY(-1px);
}

.theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.login-link {
  padding: 0 19px;
  background: var(--color-surface);
  font-size: 14px;
  font-weight: 620;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.page-main {
  display: grid;
  flex: 1;
  place-items: center;
  padding: 72px 0;
}

.status-panel {
  position: relative;
  width: min(100%, 620px);
  padding: clamp(34px, 7vw, 64px);
  overflow: hidden;
  border: 1px solid var(--color-surface-border);
  border-radius: 30px;
  background: var(--color-surface);
  box-shadow: var(--shadow-surface);
  text-align: center;
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  animation: panel-enter 650ms cubic-bezier(.2, .75, .25, 1) both;
}

.status-panel::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 112px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--gradient-brand);
  content: "";
  transform: translateX(-50%);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 23px;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.status-indicator::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgb(244 119 33 / 12%);
  content: "";
}

.status-title {
  margin: 0;
  font-size: clamp(30px, 6vw, 48px);
  font-weight: 680;
  letter-spacing: -.065em;
  line-height: 1.08;
}

.status-title span {
  background: var(--gradient-brand);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-footer {
  width: min(100%, 1440px);
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: 12px;
  text-align: center;
}

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 600px) {
  .page-shell {
    padding-right: max(18px, env(safe-area-inset-right));
    padding-left: max(18px, env(safe-area-inset-left));
  }

  .brand {
    font-size: 18px;
  }

  .login-link {
    min-height: 40px;
    padding: 0 15px;
  }

  .theme-toggle {
    width: 40px;
    min-height: 40px;
  }

  .page-main {
    padding: 48px 0;
  }

  .status-panel {
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


.workspace-header-actions[hidden] { display: none; }
body[data-app-state="workspace"] .page-back,
body[data-app-state="workspace"] .public-header-actions { display: none; }
body[data-app-state="workspace"] .workspace-header-actions { display: flex; }

/* Public profile header */
body[data-page-type="public-profile"] .page-back,
body[data-page-type="public-profile"] .public-header-actions {
  display: none;
}

body[data-page-type="public-profile"] .site-header {
  justify-content: center;
}

body[data-page-type="public-profile"] .header-identity {
  justify-content: center;
  width: 100%;
}

body[data-page-type="public-profile"] .brand {
  justify-content: center;
  text-align: center;
}

body[data-page-type="public-profile"] .brand::after {
  content: "↗";
  display: inline-block;
  margin-left: 2px;
  color: var(--color-text-secondary);
  font-size: .9em;
  font-weight: 500;
  transition: transform 180ms ease, color 180ms ease;
}

body[data-page-type="public-profile"] .brand:hover::after {
  color: var(--color-accent);
  transform: translate(2px, -2px);
}
