:root {
  --bg: #f2f5f7;
  --panel: #ffffff;
  --ink: #17202a;
  --muted: #697584;
  --line: #d9e2e8;
  --primary: #176b87;
  --primary-deep: #0f4d65;
  --primary-weak: #e6f3f7;
  --accent: #b8832e;
  --accent-weak: #fff2dc;
  --green: #27ae60;
  --yellow: #f2c94c;
  --red: #eb5757;
  --blue: #2d9cdb;
  --shadow: 0 18px 46px rgba(23, 32, 42, 0.1);
  --shadow-soft: 0 10px 24px rgba(23, 32, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #f8fafb 0%, var(--bg) 230px),
    var(--bg);
  color: var(--ink);
  font-family: "Aptos", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

.login-screen {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: block;
  padding: 22px clamp(18px, 4vw, 56px) 42px;
  background:
    radial-gradient(circle at 78% 18%, rgba(237, 199, 128, 0.26), transparent 27%),
    radial-gradient(circle at 9% 16%, rgba(74, 143, 166, 0.24), transparent 34%),
    linear-gradient(135deg, #081721 0%, #102b38 43%, #edf4f2 43.2%, #f8f7f2 100%);
  color: #f7fbfb;
}

.login-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 110px),
    linear-gradient(24deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 94px);
  mask-image: linear-gradient(90deg, #000, transparent 82%);
  pointer-events: none;
}

.login-screen::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  bottom: -170px;
  border: 1px solid rgba(16, 43, 56, 0.12);
  border-radius: 50%;
  box-shadow: inset 0 0 0 80px rgba(23, 107, 135, 0.05);
  pointer-events: none;
}

.landing-grain {
  position: absolute;
  inset: 0;
  opacity: 0.17;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.25) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(6, 19, 26, 0.16) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}

.login-screen[hidden],
.app-shell[hidden] {
  display: none;
}

.login-card {
  width: min(430px, 100%);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(8, 23, 33, 0.22);
  padding: 22px;
  display: grid;
  gap: 18px;
  color: var(--ink);
  position: relative;
  z-index: 1;
}

.login-brand {
  color: #f7fbfb;
}

.login-brand span {
  color: rgba(247, 251, 251, 0.68);
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-card-head {
  display: grid;
  gap: 5px;
}

.login-card-head span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-card-head strong {
  font-size: 24px;
  letter-spacing: 0;
}

.form-error {
  margin: 0;
  color: #aa2c2c;
  background: #ffe8e8;
  border: 1px solid #ffd0d0;
  border-radius: 8px;
  padding: 9px 11px;
}

.demo-accounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  color: #61707b;
  background: #f6faf9;
  border: 1px solid #dbe7e4;
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
}

.demo-accounts strong {
  grid-column: 1 / -1;
  color: var(--ink);
}

.landing-nav {
  position: relative;
  z-index: 1;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.landing-nav .brand-mark {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.landing-nav-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(247, 251, 251, 0.76);
  font-size: 13px;
}

.landing-nav-meta span {
  border: 1px solid rgba(247, 251, 251, 0.18);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(247, 251, 251, 0.06);
}

.landing-main {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(22px, 4vw, 44px);
  max-width: 1280px;
  margin: 0 auto;
}

.landing-hero {
  min-height: min(680px, calc(100vh - 96px));
  display: grid;
  align-items: center;
  gap: 36px;
  padding: clamp(34px, 7vw, 78px) 0 18px;
}

.landing-copy {
  max-width: 690px;
  animation: landingRise 0.7s ease both;
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #edc780;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.landing-kicker::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
}

.landing-copy h1 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(54px, 11vw, 132px);
  line-height: 0.88;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.landing-copy p {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(247, 251, 251, 0.78);
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.65;
}

.landing-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.landing-primary {
  min-width: 132px;
  justify-content: center;
  text-decoration: none;
}

.landing-proof {
  color: rgba(247, 251, 251, 0.64);
  font-size: 13px;
}

.landing-showcase {
  width: min(760px, 100%);
  justify-self: end;
  margin-top: -160px;
  background: rgba(10, 29, 39, 0.78);
  border: 1px solid rgba(247, 251, 251, 0.16);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(5, 18, 26, 0.36);
  overflow: hidden;
  transform: perspective(1100px) rotateX(3deg) rotateY(-8deg);
  animation: showcaseIn 0.9s 0.12s ease both;
}

.showcase-toolbar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(247, 251, 251, 0.1);
  color: rgba(247, 251, 251, 0.7);
  font-size: 12px;
}

.showcase-toolbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #edc780;
}

.showcase-toolbar span:nth-child(2) {
  background: #75b8c9;
}

.showcase-toolbar span:nth-child(3) {
  background: #53c682;
}

.showcase-toolbar strong {
  margin-left: auto;
  font-weight: 700;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 12px;
  padding: 14px;
}

.showcase-panel {
  min-height: 132px;
  border-radius: 8px;
  padding: 14px;
  background: rgba(247, 251, 251, 0.08);
  border: 1px solid rgba(247, 251, 251, 0.1);
}

.showcase-panel.span-2 {
  grid-column: span 2;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(247, 251, 251, 0.72);
  font-size: 13px;
  margin-bottom: 12px;
}

.panel-head strong {
  color: #edc780;
}

.okr-preview {
  display: grid;
  gap: 9px;
}

.okr-preview div {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: rgba(247, 251, 251, 0.78);
  font-size: 12px;
}

.okr-preview b {
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: rgba(237, 199, 128, 0.18);
  color: #edc780;
}

.okr-preview span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.okr-preview em {
  color: #8bd6e6;
  font-style: normal;
  font-weight: 800;
}

.metric-preview {
  display: grid;
  align-content: center;
  gap: 6px;
}

.metric-preview span,
.metric-preview small {
  color: rgba(247, 251, 251, 0.62);
}

.metric-preview strong {
  color: #ffffff;
  font-size: 44px;
  line-height: 1;
}

.metric-preview.amber strong {
  color: #edc780;
}

.bars-preview {
  height: 110px;
  display: flex;
  align-items: end;
  gap: 12px;
  padding-top: 10px;
}

.bars-preview i {
  flex: 1;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, #edc780, #176b87);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
}

.landing-login-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 24px;
  align-items: end;
}

.landing-feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.landing-feature-strip div {
  min-height: 112px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 43, 56, 0.1);
  color: var(--ink);
  box-shadow: 0 18px 45px rgba(16, 43, 56, 0.08);
}

.landing-feature-strip strong {
  font-size: 18px;
}

.landing-feature-strip span {
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

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

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  min-height: 100vh;
  background:
    radial-gradient(circle at 76% 0%, rgba(237, 199, 128, 0.18), transparent 28%),
    radial-gradient(circle at 22% 10%, rgba(23, 107, 135, 0.16), transparent 32%),
    linear-gradient(135deg, #0d1c26 0%, #102b38 30%, #edf3f1 30.2%, #f6f5ef 100%);
  color: var(--ink);
}

.sidebar {
  position: sticky;
  top: 0;
  background:
    linear-gradient(180deg, rgba(20, 38, 51, 0.98) 0%, rgba(12, 24, 33, 0.98) 100%);
  color: #eef6f8;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100vh;
  border-right: 1px solid rgba(247, 251, 251, 0.12);
  box-shadow: 24px 0 70px rgba(8, 23, 33, 0.32);
  overflow: hidden;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 86px),
    radial-gradient(circle at 18% 0%, rgba(237, 199, 128, 0.14), transparent 34%);
  opacity: 0.68;
  pointer-events: none;
}

.sidebar > * {
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #e8f7fa, #bfe3ec);
  color: #10212b;
  font-weight: 800;
  border-radius: 8px;
}

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

.brand span {
  color: #a8bdc5;
  font-size: 12px;
  margin-top: 4px;
}

.role-switch {
  display: grid;
  gap: 8px;
  color: #c7d8de;
  font-size: 13px;
}

.role-switch select {
  width: 100%;
  border: 1px solid #314653;
  background: #223440;
  color: #ffffff;
  padding: 10px 12px;
  border-radius: 8px;
}

.account-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(216, 243, 248, 0.16);
  border-radius: 8px;
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.account-panel span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #d8f3f8;
  color: #17232d;
  border-radius: 50%;
  font-weight: 800;
}

.account-panel strong,
.account-panel small {
  display: block;
}

.account-panel small {
  color: #a8bdc5;
  margin-top: 3px;
}

.nav-menu {
  display: grid;
  gap: 10px;
  overflow-y: auto;
  padding-right: 2px;
}

.nav-section {
  border: 1px solid rgba(168, 189, 197, 0.13);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.nav-section.active-group {
  border-color: rgba(237, 199, 128, 0.34);
  background:
    linear-gradient(135deg, rgba(237, 199, 128, 0.1), rgba(216, 243, 248, 0.045));
}

.nav-section-toggle {
  width: 100%;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: #e9f3f6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  text-align: left;
}

.nav-section-toggle:hover {
  background: rgba(216, 243, 248, 0.08);
}

.nav-section-main {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-weight: 700;
}

.nav-section-main span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-section-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(216, 243, 248, 0.12);
  color: #edc780;
  font-size: 13px;
}

.nav-section-count {
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(216, 243, 248, 0.12);
  color: #c8d8dd;
  font-size: 12px;
}

.nav-section-caret {
  color: #a8bdc5;
  transition: transform 0.16s ease;
}

.nav-section.collapsed .nav-section-caret {
  transform: rotate(-90deg);
}

.nav-children {
  display: grid;
  gap: 3px;
  padding: 0 8px 8px 12px;
}

.nav-section.collapsed .nav-children {
  display: none;
}

.nav-item {
  border: 0;
  background: transparent;
  color: #c8d8dd;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 9px 10px 9px 14px;
  border-radius: 8px;
  text-align: left;
  position: relative;
}

.nav-item::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5d7480;
  position: absolute;
  left: 4px;
}

.nav-item:hover,
.nav-item.active {
  background: linear-gradient(90deg, #d8f3f8, #fff2dc);
  color: #10212b;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.nav-item.active::before {
  background: #b8832e;
}

.nav-icon {
  width: 24px;
  text-align: center;
  flex: 0 0 24px;
  font-size: 13px;
}

.main {
  min-width: 0;
  position: relative;
  padding: 22px 28px 36px;
  background:
    linear-gradient(115deg, rgba(16, 43, 56, 0.05) 0 1px, transparent 1px 96px),
    radial-gradient(circle at 88% 6%, rgba(237, 199, 128, 0.2), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(246, 245, 239, 0.92));
  overflow: hidden;
}

.main::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -150px;
  top: 120px;
  border-radius: 50%;
  border: 1px solid rgba(16, 43, 56, 0.09);
  box-shadow: inset 0 0 0 70px rgba(23, 107, 135, 0.04);
  pointer-events: none;
}

.main > * {
  position: relative;
  z-index: 1;
}

.topbar,
.hero-strip,
.card,
.modal-panel {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar {
  min-height: 84px;
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  box-shadow: 0 18px 54px rgba(16, 43, 56, 0.12);
}

.breadcrumb {
  color: #7d6a42;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: 30px;
  text-shadow: 0 1px 0 #ffffff;
  letter-spacing: 0;
}

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

.icon-button {
  border: 1px solid rgba(16, 43, 56, 0.12);
  background: linear-gradient(180deg, #ffffff, #f5f8f8);
  color: var(--ink);
  min-width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 10px 22px rgba(16, 43, 56, 0.08);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 8px;
  background: #fbfdfe;
}

.user-chip span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-weak);
  color: var(--primary);
  font-weight: 800;
}

.user-chip small {
  color: var(--muted);
  display: block;
}

.hero-strip {
  margin: 18px 0;
  border-radius: 8px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 520px);
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(237, 199, 128, 0.12), transparent 36%),
    linear-gradient(135deg, rgba(8, 23, 33, 0.96), rgba(16, 43, 56, 0.92));
  border-color: rgba(247, 251, 251, 0.16);
  color: #f7fbfb;
  box-shadow: 0 28px 80px rgba(8, 23, 33, 0.22);
}

.hero-strip p {
  color: #edc780;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-strip strong {
  display: block;
  max-width: 520px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-strip svg {
  width: 100%;
  height: 118px;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.22));
}

.view {
  display: grid;
  gap: 18px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 16px 42px rgba(16, 43, 56, 0.09);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.card:hover {
  transform: translateY(-1px);
  border-color: rgba(237, 199, 128, 0.42);
  box-shadow: 0 22px 58px rgba(16, 43, 56, 0.13);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.card-head h2,
.card-head h3 {
  margin: 0;
}

.muted {
  color: var(--muted);
}

.metric {
  display: grid;
  gap: 8px;
}

.metric strong {
  font-size: 34px;
  color: #102b38;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  border: 1px solid var(--primary-deep);
  background: linear-gradient(180deg, #21809f, var(--primary));
  color: #fff;
  border-radius: 8px;
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  box-shadow: 0 10px 22px rgba(23, 107, 135, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(23, 107, 135, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn.secondary {
  background: linear-gradient(180deg, #fffaf0, #ffffff);
  color: #7b581f;
  border-color: rgba(184, 131, 46, 0.34);
  text-shadow: none;
}

.btn.ghost {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 251, 0.88));
  color: var(--ink);
  border-color: rgba(16, 43, 56, 0.12);
  text-shadow: none;
}

.btn.danger {
  background: linear-gradient(180deg, #f16b6b, var(--red));
  border-color: var(--red);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(16, 43, 56, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 840px;
}

th,
td {
  border-bottom: 1px solid rgba(16, 43, 56, 0.08);
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

th {
  color: #52606b;
  font-weight: 700;
  background: rgba(237, 244, 247, 0.88);
  letter-spacing: 0.02em;
}

tbody tr {
  transition: background 0.14s ease;
}

tbody tr:hover {
  background: rgba(230, 243, 247, 0.44);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(16, 43, 56, 0.1);
  background: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.green {
  background: var(--green);
}

.dot.yellow {
  background: var(--yellow);
}

.dot.red {
  background: var(--red);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e6f3f7, #f8fbfc);
  color: var(--primary);
  font-size: 12px;
  white-space: nowrap;
}

.pill.accent {
  background: var(--accent-weak);
  color: #7b581f;
}

.pill.warn {
  background: linear-gradient(180deg, #fff5d7, #fffaf0);
  color: #8a6500;
}

.pill.bad {
  background: linear-gradient(180deg, #ffe8e8, #fff5f5);
  color: #aa2c2c;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

label.field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(16, 43, 56, 0.13);
  border-radius: 8px;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(23, 32, 42, 0.04);
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field select[multiple] {
  min-height: 148px;
}

.sheet-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(23, 107, 135, 0.08), rgba(184, 131, 46, 0.08)),
    #ffffff;
}

.sheet-hero h2 {
  margin-bottom: 8px;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px;
  background: #e9eff3;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: inset 0 1px 2px rgba(23, 32, 42, 0.06);
}

.tab-button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  min-height: 38px;
  padding: 8px 14px;
  font-weight: 700;
}

.tab-button.active {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
  box-shadow: 0 8px 18px rgba(23, 32, 42, 0.08);
}

.tab-panel {
  display: grid;
  gap: 16px;
}

.sheet-table {
  min-width: 1220px;
  border: 1px solid var(--line);
}

.sheet-table th {
  background: #edf4f7;
  color: #284252;
}

.sheet-table td {
  vertical-align: top;
}

.sheet-input {
  width: 100%;
  min-width: 92px;
  border: 1px solid #ccd8de;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fbfdfe);
  color: var(--ink);
  padding: 8px 9px;
  box-shadow: inset 0 1px 2px rgba(23, 32, 42, 0.05);
}

.sheet-input:disabled {
  color: #697584;
  background: #f3f6f8;
}

.sheet-input.compact {
  min-height: 74px;
  resize: vertical;
}

.sheet-input.number {
  min-width: 70px;
}

.okr-sheet {
  display: grid;
  gap: 14px;
}

.okr-objective {
  border: 1px solid #d7e1e7;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.okr-o-row {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto auto minmax(180px, 260px) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(23, 107, 135, 0.1), rgba(184, 131, 46, 0.05)),
    #f8fbfc;
  border-bottom: 1px solid var(--line);
}

.okr-index {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--primary), var(--primary-deep));
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(23, 107, 135, 0.22);
}

.okr-o-main {
  display: grid;
  gap: 6px;
}

.okr-kr-list {
  display: grid;
  gap: 0;
}

.okr-kr-row {
  display: grid;
  grid-template-columns: auto minmax(280px, 1.5fr) minmax(110px, 0.5fr) minmax(100px, 0.4fr) minmax(100px, 0.4fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr) minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 14px;
  border-bottom: 1px solid #edf2f5;
}

.okr-kr-row:last-child {
  border-bottom: 0;
}

.okr-kr-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(23, 35, 45, 0.44);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 10;
}

.modal[hidden] {
  display: none;
}

.modal-panel {
  width: min(860px, 100%);
  max-height: 88vh;
  overflow: auto;
  border-radius: 8px;
  padding: 18px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-head h2 {
  margin: 0;
}

.progress-bar {
  height: 10px;
  border-radius: 999px;
  background: #e8eff1;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: var(--primary);
}

.chart-bars {
  display: grid;
  gap: 11px;
}

.bar-row {
  display: grid;
  grid-template-columns: 86px 1fr 52px;
  align-items: center;
  gap: 10px;
}

.donut {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 32%, var(--blue) 32% 61%, var(--yellow) 61% 82%, var(--red) 82% 100%);
  margin: 8px auto;
  position: relative;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 32px;
  background: #fff;
  border-radius: 50%;
}

.log-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.log-list li {
  border-left: 3px solid var(--primary);
  padding: 8px 10px;
  background: #f8fbfc;
}

@keyframes landingRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes showcaseIn {
  from {
    opacity: 0;
    transform: perspective(1100px) rotateX(8deg) rotateY(-12deg) translateY(24px);
  }

  to {
    opacity: 1;
    transform: perspective(1100px) rotateX(3deg) rotateY(-8deg) translateY(0);
  }
}

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

@media (max-width: 980px) {
  .login-screen {
    background:
      radial-gradient(circle at 50% 0%, rgba(237, 199, 128, 0.18), transparent 34%),
      linear-gradient(180deg, #081721 0%, #102b38 52%, #f8f7f2 52.2%, #f8f7f2 100%);
  }

  .landing-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-hero {
    min-height: auto;
    padding-top: 46px;
  }

  .landing-copy h1 {
    font-size: clamp(48px, 18vw, 86px);
  }

  .landing-showcase {
    margin-top: 0;
    justify-self: stretch;
    transform: none;
  }

  .showcase-grid,
  .landing-login-row,
  .landing-feature-strip {
    grid-template-columns: 1fr;
  }

  .showcase-panel.span-2 {
    grid-column: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .hero-strip,
  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .sheet-hero {
    flex-direction: column;
  }

  .okr-o-row,
  .okr-kr-row {
    grid-template-columns: 1fr;
  }

  .main {
    padding: 16px;
  }
}

@media (max-width: 640px) {
  .login-screen {
    padding: 16px;
  }

  .landing-nav-meta {
    display: none;
  }

  .landing-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .showcase-grid {
    padding: 10px;
  }

  .okr-preview div {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .okr-preview em {
    grid-column: 2;
  }

  .demo-accounts {
    grid-template-columns: 1fr;
  }
}
