:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --panel: #fff;
  --ink: #20232d;
  --muted: #6c7280;
  --line: #e7e9ee;
  --accent: #6652cc;
  --soft: #f0edfb;
  --green: #267c59;
  --danger: #b34242;
  font:
    14px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.15s;
}
button:hover {
  background: #f4f3f8;
  border-color: #c7bfeb;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.primary:hover {
  background: #5441b4;
}
.primary span {
  float: right;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 3px solid #aa9ae8;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.eyebrow {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 650;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
  line-height: 1.35;
  font-weight: 650;
  margin-bottom: 10px;
}
h2 {
  font-size: 17px;
  font-weight: 650;
  margin-bottom: 6px;
}
h3 {
  font-size: 15px;
  margin-bottom: 6px;
}
p {
  margin-bottom: 16px;
}
input,
select {
  width: 100%;
  border: 1px solid #d9dce5;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}
input[readonly] {
  background: #f5f6f8;
  color: var(--muted);
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 16px 0;
}
label input,
label select {
  margin-top: 6px;
  font-weight: 400;
  font-size: 14px;
}
.error {
  color: var(--danger);
  font-size: 13px;
  white-space: pre-wrap;
  min-height: 0;
}
.error:empty {
  display: none;
}
.app {
  display: flex;
  min-height: 100dvh;
}
.sidebar {
  width: 224px;
  flex: none;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 26px 16px 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 650;
}
.brand:hover {
  text-decoration: none;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 35px;
  height: 38px;
  background: #2f2749;
  color: #fff;
  border-radius: 12px 12px 12px 3px;
  font:
    italic 31px Georgia,
    serif;
  line-height: 1;
}
.team-label {
  margin: 28px 10px 23px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.team-dot,
.tiny-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8a7bbf;
  display: inline-block;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #5b6070;
  margin-bottom: 4px;
  font-size: 13px;
}
.sidebar nav a:hover {
  background: #f8f7fb;
  text-decoration: none;
}
.sidebar nav a[aria-current="page"] {
  background: var(--soft);
  color: #5740b6;
  font-weight: 600;
}
.sidebar i {
  width: 19px;
  font-style: normal;
  font-size: 19px;
  line-height: 1;
  text-align: center;
  font-weight: 400;
}
.nav-label {
  color: #969ba7;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 24px 12px 9px;
}
.soon {
  margin-left: auto;
  font-size: 9px;
  color: #9296a0;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 4px;
}
.sidebar-foot {
  margin-top: auto;
  font-size: 10px;
  padding: 28px 10px 2px;
  color: #8a8f9a;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-foot span:last-child {
  margin-left: auto;
}
.main {
  margin-left: 224px;
  width: calc(100% - 224px);
  min-width: 0;
}
.topbar {
  height: 72px;
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #ffffffde;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb span {
  padding: 0 13px;
  color: #c8cad1;
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--ink);
}
.top-account {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.role-tag,
.badge {
  font-size: 11px;
  border-radius: 5px;
  padding: 3px 8px;
  background: #f1f2f6;
  color: #687080;
  white-space: nowrap;
}
.badge.green {
  background: #eaf5ee;
  color: var(--green);
}
.badge.purple {
  background: var(--soft);
  color: var(--accent);
}
.badge.amber {
  background: #fbf2e5;
  color: #946725;
}
.account-button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 4px;
  font-size: 12px;
  min-width: 0;
  max-width: 220px;
}
.account-button > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avatar {
  display: inline-grid;
  place-items: center;
  background: #eeeaf7;
  color: #69559b;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
}
.avatar.large {
  width: 50px;
  height: 50px;
  font-size: 18px;
}
#content {
  padding: 34px 36px 40px;
  max-width: 1500px;
  margin: 0 auto;
  outline: none;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.page-head p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.date {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.hero {
  padding: 28px 30px;
  background: #efedf6;
  border: 1px solid #e8e4f2;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}
.hero h2 {
  font-size: 21px;
  margin: 6px 0 8px;
}
.hero p {
  color: #746b88;
  font-size: 13px;
  margin: 0;
}
.hero a {
  background: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 19px 22px;
}
.stat .stat-label {
  color: var(--muted);
  font-size: 12px;
}
.stat strong {
  display: block;
  font-size: 28px;
  line-height: 1.3;
  margin: 8px 0 4px;
  letter-spacing: -1px;
  font-weight: 600;
}
.stat small {
  color: #9499a5;
  font-size: 11px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 0 14px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading span,
.section-heading a {
  font-size: 12px;
  color: var(--muted);
}
.workspace-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.workspace-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  color: inherit;
  min-width: 0;
  display: block;
}
.workspace-card:hover {
  text-decoration: none;
  border-color: #c9c0e6;
  background: #fefeff;
}
.card-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--accent);
  border-radius: 9px;
  font-size: 20px;
  margin-bottom: 20px;
}
.card-icon.green {
  background: #ecf4f1;
  color: #4b7a68;
}
.card-icon.blue {
  background: #eef1f7;
  color: #71819a;
}
.workspace-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 20px;
  line-height: 1.75;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
}
th {
  color: #8b909d;
  font-size: 11px;
  font-weight: 500;
  background: #fcfcfd;
  white-space: nowrap;
}
th,
td {
  padding: 15px 20px;
  border-bottom: 1px solid #f0f1f4;
}
tr:last-child td {
  border: 0;
}
td.title {
  min-width: 200px;
  max-width: 560px;
}
td.title a {
  color: var(--ink);
  font-weight: 500;
}
td small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-top: 3px;
}
.row-person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.empty {
  padding: 44px 26px;
  text-align: center;
  color: var(--muted);
}
.empty-symbol {
  margin: 0 auto 20px;
  font-size: 30px;
  color: #9c91bc;
}
.empty h2 {
  color: var(--ink);
  margin-bottom: 10px;
}
.empty p {
  font-size: 13px;
  max-width: 490px;
  margin: 0 auto 20px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.toolbar input {
  max-width: 300px;
  font-size: 12px;
}
.toolbar span {
  font-size: 12px;
  color: var(--muted);
}
.member-id {
  font:
    11px ui-monospace,
    monospace;
  overflow-wrap: anywhere;
}
.permission-note {
  padding: 12px 14px;
  border: 1px solid #e7e2f5;
  border-radius: 8px;
  background: #f8f6fc;
  font-size: 12px;
  color: #76648f;
  margin: 16px 0;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 22px;
}
.note-panel {
  padding: 22px;
  height: fit-content;
}
.role-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.role-row:last-child {
  border: 0;
  padding-bottom: 0;
}
.role-row p {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0 0;
}
.audit-list {
  padding: 4px 22px;
}
.audit-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.audit-item:last-child {
  border: 0;
}
.audit-item small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.account-panel {
  padding: 28px;
  max-width: 760px;
}
.profile {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 30px;
}
.profile h2 {
  margin: 0;
}
.profile p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.definition {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr);
  gap: 18px 20px;
  font-size: 13px;
  margin-bottom: 30px;
}
.definition dt {
  color: var(--muted);
}
.definition dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.frame-page .page-head {
  margin-bottom: 16px;
}
.frame-holder {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.frame-holder iframe {
  display: block;
  width: 100%;
  height: calc(100dvh - 230px);
  min-height: 550px;
  border: 0;
}
.auth {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  background:
    radial-gradient(ellipse at 45% 0, #ede9f7 0, transparent 65%), var(--bg);
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 1px;
  margin-bottom: 30px;
}
.auth-brand small {
  font-size: 10px;
  color: #81748f;
  margin-left: 8px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 34px;
  border-radius: 15px;
  box-shadow: 0 18px 50px #2d234908;
}
.auth-card h1 {
  font-size: 25px;
  margin-top: 12px;
}
.auth-card > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.auth-card .primary {
  width: 100%;
  padding: 11px 15px;
  margin: 8px 0 18px;
}
.auth-card .small {
  font-size: 11px;
  margin: 0;
}
.auth-foot {
  font-size: 11px;
  color: #9692a0;
  margin-top: 24px;
}
.loading {
  padding: 70px;
  text-align: center;
  color: var(--muted);
}
#notice {
  padding: 10px 36px;
  background: #fff2df;
  color: #875520;
  font-size: 13px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  width: min(480px, calc(100% - 28px));
  max-height: 90dvh;
  color: var(--ink);
  box-shadow: 0 24px 80px #241d3a26;
}
dialog::backdrop {
  background: #20223255;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.dialog-head h2 {
  font-size: 20px;
  margin-top: 5px;
}
.dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 10px;
}
.icon-button {
  font-size: 20px;
  line-height: 1;
  border: 0;
  background: transparent;
  padding: 8px;
}
#menu {
  display: none;
}
.skip {
  position: fixed;
  left: 10px;
  top: -50px;
  z-index: 100;
  background: #fff;
  padding: 8px;
}
.skip:focus {
  top: 10px;
}
.stage-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}
.stage-list span {
  padding: 8px 14px;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfbfd;
}
@media (max-width: 1100px) {
  .sidebar {
    width: 195px;
  }
  .main {
    margin-left: 195px;
    width: calc(100% - 195px);
  }
  #content {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .workspace-grid {
    gap: 12px;
  }
  .workspace-card {
    padding: 18px;
  }
  .date {
    display: none;
  }
}
@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 20;
    box-shadow: 10px 0 40px #20203018;
    width: 224px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main {
    margin-left: 0;
    width: 100%;
  }
  .topbar {
    height: 62px;
    padding: 0 16px;
    gap: 8px;
  }
  #menu {
    display: block;
  }
  .breadcrumb {
    flex: 1;
  }
  .breadcrumb > span,
  .breadcrumb {
    font-size: 11px;
  }
  .top-account {
    gap: 6px;
  }
  .top-account .role-tag {
    display: none;
  }
  .account-button > span:last-child {
    display: none;
  }
  #content {
    padding: 24px 16px;
  }
  .page-head {
    gap: 12px;
    margin-bottom: 22px;
  }
  h1 {
    font-size: 24px;
  }
  .page-head p {
    font-size: 12px;
  }
  .hero {
    padding: 22px;
    display: block;
  }
  .hero h2 {
    font-size: 19px;
  }
  .hero a {
    display: inline-block;
    margin-top: 18px;
  }
  .stats {
    gap: 8px;
    margin-bottom: 24px;
  }
  .stat {
    padding: 14px 12px;
  }
  .stat strong {
    font-size: 24px;
  }
  .stat small {
    font-size: 10px;
  }
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .workspace-card {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 0 14px;
    padding: 20px;
  }
  .workspace-card .card-icon {
    grid-row: 1/4;
    margin: 0;
  }
  .workspace-card p {
    margin: 6px 0 15px;
  }
  .workspace-card .card-bottom {
    grid-column: 2;
  }
  .section-heading span {
    display: none;
  }
  .definition {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .definition dd {
    margin-bottom: 15px;
  }
  .frame-holder iframe {
    min-height: 600px;
    height: calc(100dvh - 205px);
  }
  .auth-card {
    padding: 26px;
  }
  .auth {
    padding: 20px;
  }
  th,
  td {
    padding: 14px;
  }
  #notice {
    padding: 10px 16px;
  }
  .toolbar {
    padding: 15px;
  }
  .toolbar span {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.logout-note {
  margin-top: 14px;
}

.sidebar i svg {
  display: block;
  width: 18px;
  height: 18px;
}
.card-icon svg {
  width: 20px;
  height: 20px;
}

#nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 19;
  border: 0;
  border-radius: 0;
  background: #20223255;
  width: 100%;
  height: 100%;
}
@media (max-width: 760px) {
  .sidebar {
    visibility: hidden;
  }
  .sidebar.open {
    visibility: visible;
  }
  .frame-holder iframe {
    min-height: 300px;
  }
}

.password-panel {
  margin-top: 24px;
  max-width: 500px;
}

/* Operations uses the workspace panels, typography and form controls. */
.ops-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 24px; }
.ops-summary > div { padding: 20px; }
.ops-summary span { display: block; color: var(--muted); font-size: 13px; }
.ops-summary strong { display: block; font-size: 28px; margin-top: 10px; }
.ops-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.ops-tabs a { flex-shrink: 0; padding: 12px 16px; color: var(--muted); border-bottom: 2px solid transparent; }
.ops-tabs a[aria-current] { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.ops-scope { margin-bottom: 20px; }
#ops-refresh { flex-shrink: 0; white-space: nowrap; }
.ops-section { margin-bottom: 20px; overflow: hidden; }
.ops-section > .section-heading { padding: 20px 24px; margin: 0; border-bottom: 1px solid var(--line); }
.ops-section .definition { margin: 24px; }
.ops-section table { min-width: 540px; }
.ops-section td { vertical-align: top; }
.ops-section td small { display: block; color: var(--muted); font-size: 11px; margin-top: 6px; }
.ops-section td strong { font-size: 13px; }
.ops-actions { display: flex; flex-wrap: wrap; gap: 8px; min-width: 180px; }
.ops-reason { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; max-width: 440px; }
.ops-empty { padding: 40px 24px; text-align: center; }
.ops-empty strong { font-size: 14px; }
.ops-empty p { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.ops-dialog { width: min(540px,calc(100vw - 32px)); max-height: 88vh; overflow-y: auto; padding: 28px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--panel); }
.ops-dialog::backdrop { background: rgb(20 18 34 / 35%); }
.ops-dialog > p { font-size: 13px; line-height: 1.7; color: var(--muted); }
.ops-dialog form { display: grid; gap: 16px; margin-top: 20px; }
.ops-dialog textarea { width: 100%; font: inherit; resize: vertical; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: var(--panel); color: var(--ink); }
.ops-dialog select, .ops-dialog input { width: 100%; }
.ops-dialog label { display: grid; gap: 8px; font-size: 13px; }
.ops-dialog #offer-fields { display: grid; gap: 16px; }
.ops-dialog .check-label { display: flex; align-items: center; }
.ops-dialog .check-label input { width: auto; }
.ops-dialog fieldset { border: 1px solid var(--line); padding: 12px; border-radius: 8px; }
.ops-dialog video { width: 100%; max-height: 360px; background: #17151d; border-radius: 8px; }
.ops-detail { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 250px; overflow-y: auto; font-size: 12px; }
@media(max-width: 760px) { .ops-summary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; } .ops-summary > div { padding: 16px; } .ops-section > .section-heading { padding: 16px; } .ops-tabs a { padding: 10px 12px; } .ops-dialog { padding: 20px; } }
