:root {
  color-scheme: light;
  --r360-brand-600: #0877e1;
  --r360-brand-500: #0b9ee8;
  --r360-brand-100: #e8f4ff;
  --r360-ink-950: #071533;
  --r360-ink-700: #34435e;
  --r360-muted-500: #68758d;
  --r360-surface: #fff;
  --r360-canvas: #f4f8fc;
  --r360-line: #d9e5f0;
  --r360-success: #159b62;
  --r360-warning: #d88a10;
  --r360-danger: #c43d4b;
  --r360-info: #3379d6;
  --r360-radius-sm: 8px;
  --r360-radius: 12px;
  --r360-radius-lg: 16px;
  --r360-shadow: 0 18px 48px rgba(20, 61, 100, 0.12);
  --r360-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.r360-app {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--r360-canvas);
  color: var(--r360-ink-700);
  font-family: var(--r360-font);
}

.r360-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.r360-sidebar {
  position: sticky;
  top: 0;
  box-sizing: border-box;
  height: 100vh;
  padding: 24px 18px;
  overflow-y: auto;
  border-right: 1px solid var(--r360-line);
  background: var(--r360-surface);
}

.r360-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 6px 28px;
  color: var(--r360-brand-600);
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.r360-brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--r360-brand-500), var(--r360-brand-600));
  color: #fff;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(8, 119, 225, 0.22);
}

.r360-brand-logo {
  display: block;
  width: min(184px, 100%);
  height: auto;
  filter: drop-shadow(0 7px 14px rgba(8, 119, 225, 0.14));
}

.r360-nav-label {
  margin: 24px 10px 8px;
  color: var(--r360-muted-500);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.r360-nav {
  display: grid;
  gap: 6px;
}

.r360-nav a {
  display: flex;
  min-height: 44px;
  box-sizing: border-box;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--r360-ink-700);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.r360-nav a[aria-current="page"] {
  background: var(--r360-brand-100);
  color: var(--r360-brand-600);
}

.r360-sidebar-note {
  margin-top: 28px;
  padding: 14px;
  border: 1px solid var(--r360-line);
  border-radius: var(--r360-radius);
  background: #f9fcff;
  font-size: 12px;
  line-height: 1.55;
}

.r360-workspace {
  min-width: 0;
}

.r360-topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  min-height: 64px;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px clamp(20px, 3vw, 44px);
  border-bottom: 1px solid var(--r360-line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.r360-breadcrumb {
  margin: 0;
  color: var(--r360-muted-500);
  font-size: 13px;
  font-weight: 700;
}

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

.r360-status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--r360-line);
  border-radius: 999px;
  background: #fff;
  color: var(--r360-ink-700);
  font-size: 12px;
  font-weight: 750;
}

.r360-status-dot::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--r360-muted-500);
  content: "";
}

.r360-status-dot[data-status="ready"]::before {
  background: var(--r360-success);
}

.r360-language-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  min-height: 36px;
  box-sizing: border-box;
  padding: 3px;
  border: 1px solid var(--r360-line);
  border-radius: 999px;
  background: #fff;
  white-space: nowrap;
}

.r360-language-switcher button {
  min-width: 38px;
  min-height: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--r360-muted-500);
  font: 800 12px/1 var(--r360-font);
  cursor: pointer;
}

.r360-language-switcher button.is-active {
  background: var(--r360-brand-600);
  color: #fff;
}

.r360-main {
  width: min(100%, 1440px);
  box-sizing: border-box;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 52px);
}

.r360-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.r360-eyebrow {
  margin: 0 0 8px;
  color: var(--r360-brand-600);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.r360-page-heading h1 {
  margin: 0;
  color: var(--r360-ink-950);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.r360-page-heading p:last-child {
  max-width: 780px;
  margin: 12px 0 0;
  color: var(--r360-muted-500);
  font-size: 15px;
  line-height: 1.65;
}

.r360-mobile-menu.r360-button {
  display: none;
  flex: 0 0 auto;
  white-space: nowrap;
}

.r360-mobile-nav-backdrop {
  display: none;
}

@media (max-width: 880px) {
  .r360-shell {
    grid-template-columns: 1fr;
  }

  .r360-sidebar {
    position: fixed;
    z-index: 30;
    width: min(300px, calc(100vw - 48px));
    transform: translateX(-105%);
    box-shadow: var(--r360-shadow);
    transition: transform 180ms ease;
  }

  .r360-sidebar[data-open="true"] {
    transform: translateX(0);
  }

  .r360-mobile-nav-backdrop[data-open="true"] {
    position: fixed;
    z-index: 20;
    inset: 0;
    display: block;
    background: rgba(7, 21, 51, 0.42);
    cursor: pointer;
  }

  .r360-mobile-menu.r360-button {
    display: inline-flex;
  }

  .r360-main {
    padding: 28px 20px 48px;
  }
}

@media (max-width: 560px) {
  .r360-topbar {
    min-height: 58px;
    padding: 8px 16px;
  }

  .r360-breadcrumb {
    display: none;
  }

  .r360-status-dot span {
    display: none;
  }

  .r360-page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .r360-page-heading h1 {
    font-size: 30px;
  }
}
