
* {
  box-sizing: border-box;
}

.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;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html.is-busy body::before {
  content: "";
  position: fixed;
  z-index: 10001;
  top: 0;
  left: 0;
  width: 42%;
  height: 4px;
  background: var(--teal);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
  animation: global-loading-bar 1.05s ease-in-out infinite;
}

.launch-loading {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: #e1f5fd;
  color: #143c59;
  font-size: 20px;
  font-weight: 600;
}

html.launch-pending .launch-loading { display: grid; }

.global-busy-indicator {
  position: fixed;
  z-index: 10000;
  top: 14px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 8px 14px;
  transform: translateX(-50%);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #e5ddd3;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
}

.global-busy-spinner,
.button-feedback-spinner {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 2px solid rgba(137, 90, 60, 0.25);
  border-top-color: var(--teal-dark);
  border-radius: 50%;
  animation: loading-spinner 0.72s linear infinite;
}

@keyframes global-loading-bar {
  0% { transform: translateX(-105%); }
  55% { transform: translateX(95%); }
  100% { transform: translateX(245%); }
}

@keyframes loading-spinner {
  to { transform: rotate(360deg); }
}

html[lang="zh-Hant"] body {
  font-family: "PingFang TC", "Noto Sans TC", "Noto Sans CJK TC", "Microsoft JhengHei UI", "Microsoft JhengHei", "Heiti TC", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button.has-interaction-feedback {
  position: relative;
}

button > .button-feedback-spinner {
  position: absolute;
  top: 50%;
  right: 9px;
  width: 13px;
  height: 13px;
  margin-top: -7px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.72);
  pointer-events: none;
}

.nav-parent > .button-feedback-spinner {
  right: 38px;
}

.nav-item.navigation-loading {
  color: #895a3c;
  background: #ffffff;
  border-color: #d9d0c6;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  html.is-busy body::before,
  .global-busy-spinner,
  .button-feedback-spinner {
    animation-duration: 1.8s;
  }
}

.launch-view {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(26px, 4vw, 56px);
  background:
    radial-gradient(circle at 52% 44%, rgba(255, 255, 255, 0.27), transparent 21%),
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.76), transparent 27%),
    radial-gradient(circle at 85% 82%, rgba(85, 180, 225, 0.24), transparent 30%),
    linear-gradient(145deg, #dff6ff 0%, #bfeaff 46%, #9fd9f4 100%);
  color: #123b59;
}

.launch-view::before,
.launch-view::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

.launch-view::before {
  z-index: 0;
  width: 420px;
  height: 420px;
  right: -150px;
  top: -170px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.09);
}

.launch-view::after {
  z-index: 0;
  width: 280px;
  height: 280px;
  left: -110px;
  bottom: -140px;
  background: rgba(255, 255, 255, 0.16);
}

.launch-concept-backdrop {
  position: absolute;
  inset: 96px 0 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.launch-concept-backdrop::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .42;
  background-image: radial-gradient(rgba(36, 112, 153, .32) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 76% 68% at 50% 50%, #000 8%, transparent 76%);
}

.launch-data-network {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, 1120px);
  min-height: 780px;
  translate: -50% -50%;
  opacity: .82;
}

.launch-network-points {
  filter: drop-shadow(0 0 7px rgba(255, 255, 255, .94));
}

.launch-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.launch-header > p {
  margin: 0;
  color: rgba(18, 59, 89, 0.72);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.launch-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.launch-brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 10px 26px rgba(21, 92, 133, 0.12);
  color: #17618d;
  font-weight: 800;
}

.launch-brand strong,
.launch-brand span {
  display: block;
}

.launch-brand .launch-brand-mark {
  display: grid;
  padding: 0;
  overflow: hidden;
}

.launch-brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.launch-brand strong {
  font-size: 24px;
  letter-spacing: -0.02em;
}

.launch-brand span {
  margin-top: 3px;
  color: rgba(18, 59, 89, 0.68);
  font-size: 13px;
  font-weight: 700;
}

.launch-stage {
  position: relative;
  z-index: 1;
  width: min(1080px, 92vw);
  height: min(720px, calc(100svh - 128px));
  min-height: 560px;
  margin: 8px auto 0;
}

.launch-orb {
  --orb-size: 160px;
  --orb-visual-width: 56%;
  position: absolute;
  width: var(--orb-size);
  height: var(--orb-size);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 22px 48px rgba(24, 103, 148, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.76);
  color: #164d70;
  text-align: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: launch-float var(--float-duration, 5s) ease-in-out var(--float-delay, 0s) infinite;
  transition: box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.launch-orb-visual {
  display: block;
  width: var(--orb-visual-width);
  height: auto;
  max-height: calc(var(--orb-size) * .52);
  object-fit: contain;
  opacity: .92;
  filter: saturate(.92) drop-shadow(0 9px 13px rgba(19, 82, 120, .16));
  transition: transform 180ms ease, opacity 180ms ease;
}

.launch-orb span,
.launch-orb strong {
  font-weight: 800;
}

.launch-orb:hover,
.launch-orb:focus-visible {
  z-index: 4;
  outline: none;
  color: #0b527e;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 28px 62px rgba(18, 96, 143, 0.25), 0 0 0 6px rgba(255, 255, 255, 0.28);
}

.launch-orb:hover .launch-orb-visual,
.launch-orb:focus-visible .launch-orb-visual {
  transform: scale(1.04);
  opacity: 1;
}

.launch-orb.is-selected {
  animation: none;
  transform: translateY(0) scale(0.96);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 42px rgba(18, 96, 143, 0.24), 0 0 0 7px rgba(255, 255, 255, 0.32);
}

.launch-orb-main {
  --orb-size: 320px;
  --orb-visual-width: 72%;
  left: 50%;
  top: 41%;
  transform: translate(-50%, -50%);
  color: #103f60;
}

.launch-orb-main.is-selected {
  transform: translate(-50%, -50%) scale(0.96);
}

.launch-orb-main strong {
  font-size: 32px;
  letter-spacing: 0.02em;
}

.launch-orb-kicker {
  color: #3889b6;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.launch-orb-slogan {
  width: min(210px, calc(var(--orb-size) - 40px));
  color: rgba(20, 76, 108, .7);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .01em;
  white-space: nowrap;
}

.launch-orb-settings {
  --orb-size: 145px;
  --orb-visual-width: 82%;
  left: 5%;
  top: 8%;
}

.launch-orb-files {
  --orb-size: 220px;
  --orb-visual-width: 82%;
  right: 5%;
  top: 4%;
  font-size: 20px;
}

.launch-orb-ai {
  --orb-size: 210px;
  --orb-visual-width: 72%;
  left: 7%;
  bottom: 4%;
  font-size: 20px;
}

.launch-orb-meeting {
  --orb-size: 195px;
  --orb-visual-width: 82%;
  right: 9%;
  bottom: 4%;
  font-size: 18px;
}

@keyframes launch-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -17px; }
}

@media (prefers-reduced-motion: reduce) {
  .launch-orb,
  .launch-view::before,
  .launch-view::after {
    animation: none;
  }
}

@media (max-width: 720px) {
  .launch-view {
    padding: 24px 18px 30px;
    overflow-y: auto;
  }

  .launch-header {
    align-items: flex-start;
  }

  .launch-header > p {
    display: none;
  }

  .launch-brand strong {
    font-size: 21px;
  }

  .launch-stage {
    width: min(100%, 440px);
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: 24px 16px;
    margin-top: 44px;
    padding-bottom: 20px;
  }

  .launch-concept-backdrop {
    inset: 86px 0 0;
    opacity: .72;
  }

  .launch-concept-backdrop::before {
    opacity: .25;
    background-size: 20px 20px;
  }

  .launch-data-network {
    width: 850px;
    min-height: 640px;
    opacity: .55;
  }

  .launch-orb,
  .launch-orb-main,
  .launch-orb-settings,
  .launch-orb-files,
  .launch-orb-ai,
  .launch-orb-meeting {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
  }

  .launch-orb-main {
    --orb-size: min(74vw, 285px);
    grid-column: 1 / -1;
  }

  .launch-orb-main.is-selected,
  .launch-orb.is-selected {
    transform: scale(0.96);
  }

  .launch-orb-settings { --orb-size: 132px; }
  .launch-orb-files { --orb-size: 176px; }
  .launch-orb-ai { --orb-size: 172px; }
  .launch-orb-meeting { --orb-size: 160px; }
}

.login-view {
  position: fixed;
  inset: 0;
  z-index: 100;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(24, 61, 84, 0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.login-actions {
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 5;
}

.login-panel {
  position: relative;
  width: min(440px, 100%);
  padding: 38px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 8px;
}

.login-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #edf8fd;
  color: #285b78;
  font-size: 25px;
  line-height: 1;
}

.login-close:hover,
.login-close:focus-visible {
  outline: none;
  background: #d8effa;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: white;
  border-radius: 8px;
  font-weight: 700;
}

.brand-mark.small {
  width: 40px;
  height: 40px;
  font-size: 14px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.login-panel h1 {
  margin: 14px 0 10px;
  font-size: 34px;
  line-height: 1.12;
}

.login-copy {
  color: var(--muted);
  line-height: 1.65;
}

.login-form,
.title-field,
.search-box {
  display: grid;
  gap: 8px;
}

.login-form {
  margin-top: 28px;
  gap: 16px;
}

label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

textarea {
  width: 100%;
  min-height: 126px;
  padding: 12px 14px;
  resize: vertical;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  color: var(--ink);
  line-height: 1.6;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 700;
}

.primary-button {
  background: var(--teal);
  color: white;
}

.primary-button:hover {
  background: var(--teal-dark);
}

.secondary-button,
.ghost-button {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}

.danger-button {
  background: #fff1ef;
  color: var(--red);
  border-color: #f0c2bd;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.error-text {
  min-height: 20px;
  margin: 0;
  color: var(--red);
  font-size: 13px;
}

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

.app-shell.sidebar-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.app-shell.sidebar-collapsed .sidebar {
  display: none;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 100vh;
  padding: 24px;
  background: #eee9e3;
  color: #332e29;
  border-right: 1px solid #d9d0c6;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand span,
.nas-panel span {
  display: block;
  color: #796b5f;
  font-size: 13px;
  margin-top: 3px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  min-height: 44px;
  padding: 0 14px;
  color: #70655c;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  text-align: left;
  font-weight: 700;
}

.nav-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-item:hover,
.nav-item.active {
  color: #352f29;
  background: #ffffff;
  border-color: #d9d0c6;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.08);
}

.nav-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-parent::after {
  content: "+";
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.nav-parent[aria-expanded="true"]::after { content: "−"; }

.nav-submenu {
  display: grid;
  gap: 6px;
  margin-left: 10px;
  padding: 2px 0 2px 12px;
  border-left: 2px solid #d9d0c6;
}

.nav-submenu[hidden] { display: none; }

.nav-subitem {
  min-height: 40px;
  padding-left: 12px;
  font-size: 14px;
}

.nas-panel {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: auto;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #e5ddd3;
  border-radius: 8px;
}

.status-dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.16);
}

.workspace {
  min-width: 0;
  padding: 28px;
}

.topbar,
.search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.topbar h2,
.search-row h3 {
  margin: 0;
  font-size: 30px;
}

.topbar-leading {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.view-header-visual {
  flex: 0 0 auto;
  width: clamp(78px, 8vw, 112px);
  height: 88px;
  margin-left: 10px;
  object-fit: contain;
  opacity: .92;
  filter: saturate(.92) drop-shadow(0 9px 16px rgba(19, 82, 120, .14));
}

.view-header-visual[hidden] {
  display: none;
}

.sidebar-toggle {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  color: #4b433c;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
}

.sidebar-toggle:hover {
  background: #f6f2ed;
}

.user-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.embedded-page-section {
  min-width: 0;
}

.embedded-workspace-active .topbar-title,
.embedded-workspace-active .embedded-page-toolbar > div:first-child {
  display: none;
}

.embedded-workspace-active .workspace > .topbar,
.embedded-workspace-active .embedded-page-toolbar {
  justify-content: space-between;
}

.embedded-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.embedded-page-toolbar h3 {
  margin: 2px 0 0;
  font-size: 22px;
}

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

.embedded-page-open-window {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.embedded-page-frame-shell {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.embedded-page-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 174px);
  min-height: 680px;
  border: 0;
  background: #fff;
}

.embedded-page-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #faf8f5;
  font-weight: 700;
}

.embedded-page-loading[hidden] {
  display: none;
}

.lang-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, 44px);
  height: 34px;
  padding: 3px;
  background: #faf8f5;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang-option {
  min-width: 0;
  height: 26px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.lang-option.active {
  color: white;
  background: var(--navy);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hero-band,
.placeholder-band,
.recorder-panel,
.activity-panel,
.meeting-detail,
.nas-upload-panel,
.nas-asset-list-panel,
.nas-asset-detail {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.network-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(520px, 1.18fr);
  gap: 18px;
  align-items: start;
}

.network-import-panel,
.network-jobs-panel {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.network-import-panel .section-heading p:last-child {
  color: var(--muted);
  line-height: 1.65;
}

.network-import-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.network-rights-check {
  align-items: flex-start;
}

.network-rights-check input {
  margin-top: 2px;
}

.network-pipeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.network-pipeline div {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  min-height: 62px;
  padding: 12px;
  background: #faf8f5;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.network-pipeline span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.network-pipeline strong {
  font-size: 13px;
  line-height: 1.4;
}

.network-policy {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.network-jobs-head,
.network-asset-heading,
.network-asset-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.network-jobs-head {
  align-items: flex-start;
  margin-bottom: 18px;
}

.network-jobs-head h3 {
  margin: 0;
  font-size: 24px;
}

.network-asset-list {
  display: grid;
  gap: 12px;
}

.network-asset-row {
  padding: 17px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
}

.network-asset-heading {
  align-items: flex-start;
}

.network-asset-heading div {
  min-width: 0;
}

.network-asset-heading strong,
.network-asset-heading span {
  display: block;
  overflow-wrap: anywhere;
}

.network-asset-heading div > span,
.network-asset-row > p,
.network-asset-meta {
  color: var(--muted);
  font-size: 13px;
}

.network-asset-heading div > span {
  margin-top: 5px;
}

.network-asset-row > p {
  margin: 14px 0;
  line-height: 1.55;
}

.network-asset-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.network-asset-meta a {
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: none;
}

.badge.downloading {
  background: #f5eee6;
  color: var(--teal-dark);
}
