* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #111111;
  --primary-active: #242424;
  --ink: #111111;
  --body: #374151;
  --muted: #6b7280;
  --muted-soft: #898989;
  --hairline: #e5e7eb;
  --hairline-soft: #f3f4f6;
  --canvas: #ffffff;
  --surface-soft: #f8f9fa;
  --surface-card: #f5f5f5;
  --surface-dark: #101010;
  --surface-dark-elevated: #1a1a1a;
  --on-primary: #ffffff;
  --on-dark: #ffffff;
  --on-dark-soft: #a1a1aa;
  --accent: #3b82f6;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.05), 0 12px 30px rgba(17, 17, 17, 0.06);
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

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

button {
  border: 0;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  position: sticky;
  top: 0;
  z-index: 99;
  min-height: 64px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(14px);
}

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

.hftc-logo,
.logo {
  width: 40px;
  height: 40px;
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  object-fit: cover;
  background: var(--canvas);
}

.header .title,
.title {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.user-info {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 96px;
  flex: 1;
}

.welcome,
.page-title {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.welcome h1,
.page-title h1 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.welcome p,
.page-title p,
.subtitle,
.tip {
  color: var(--muted);
  font-size: 16px;
}

.login-card,
.publish-card,
.admin-card,
.calc-card,
.monthly-detail,
.comments-section {
  width: 100%;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

body.login-page {
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(180deg, var(--canvas), var(--surface-soft));
}

body.login-page #app {
  min-height: auto;
  display: block;
}

.login-card {
  max-width: 420px;
  padding: 40px;
}

.login-card .title {
  margin-bottom: 8px;
  text-align: center;
  font-size: 36px;
}

.subtitle {
  margin-bottom: 32px;
  text-align: center;
  font-size: 14px;
}

.login-card .footer {
  margin: 28px 0 0;
  padding: 0;
  background: transparent;
  color: var(--muted-soft);
  font-size: 12px;
}

.input-box,
.form-item,
.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 12px;
}

.form-item label,
.form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.input-box input,
.form-input,
.form-select,
.comment-input {
  width: 100%;
  min-height: 40px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input-box input:focus,
.form-input:focus,
.form-select:focus,
.comment-input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.input-box input::placeholder,
.form-input::placeholder,
.comment-input::placeholder {
  color: var(--muted-soft);
}

.login-btn,
.card-btn,
.back-btn,
.back-list-btn,
.subscribe-btn,
.submit-btn,
.btn,
.modal-btn,
.logout-btn {
  min-height: 40px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.login-btn,
.card-btn,
.btn-primary,
.submit-btn,
.confirm-btn {
  color: var(--on-primary);
  background: var(--primary);
}

.login-btn:hover,
.card-btn:hover,
.btn-primary:hover,
.submit-btn:hover,
.confirm-btn:hover {
  background: var(--primary-active);
}

.back-btn,
.back-list-btn,
.btn-default,
.cancel-btn,
.logout-btn,
.subscribe-btn {
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--hairline);
}

.subscribe-btn.subscribed,
.btn-success {
  color: var(--ink);
  background: var(--surface-card);
  border: 1px solid var(--hairline);
}

.btn-danger {
  color: #ffffff;
  background: var(--error);
}

.btn-group,
.modal-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}

.card-grid,
.formula-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card,
.formula-card,
.timeline-item {
  background: var(--surface-card);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 32px;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover,
.formula-card:hover,
.timeline-item:hover {
  transform: translateY(-2px);
  border-color: var(--hairline);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card h3,
.formula-card h3,
.calc-header h2,
.monthly-detail h2,
.comments-title,
.modal-title {
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.card p,
.formula-card .desc,
.timeline-desc,
.comment-text,
.monthly-detail-content {
  color: var(--body);
  font-size: 14px;
}

.card p,
.formula-card .desc {
  margin: 12px 0 20px;
}

.card-admin {
  background: var(--canvas);
  border-color: var(--hairline);
}

.type,
.timeline-tag,
.monthly-detail-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: var(--surface-card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.type.phy {
  background: #dbeafe;
}

.type.chem {
  background: #d1fae5;
}

.timeline-container {
  position: relative;
}

.timeline-line {
  display: none;
}

.monthly-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.monthly-detail,
.comments-section,
.publish-card,
.admin-card,
.calc-card {
  padding: 32px;
  margin-bottom: 32px;
}

.monthly-detail h2 {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}

.detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 28px;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
}

.share-container,
.share-buttons,
.comment-header,
.comment-input-container,
.comment-item,
.notification-options,
.notification-option {
  display: flex;
  gap: 12px;
  align-items: center;
}

.share-text,
.comment-time,
.empty-comments,
.empty-tip {
  color: var(--muted);
  font-size: 14px;
}

.share-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  background: var(--canvas);
  color: var(--ink);
  cursor: pointer;
}

.user-avatar,
.comment-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--surface-card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.comment-input-container {
  align-items: flex-start;
  margin-bottom: 28px;
}

.comment-input-wrapper,
.comment-content {
  flex: 1;
}

.comment-input {
  min-height: 92px;
  resize: vertical;
}

.comment-submit {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment-item {
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
}

.comment-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.comment-username {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.monthly-detail-content {
  font-size: 16px;
  line-height: 1.8;
}

.monthly-detail-content img {
  max-width: 100%;
  margin: 16px 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}

.monthly-detail-content h3,
.monthly-detail-content h4 {
  margin: 24px 0 12px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.monthly-detail-content p {
  margin-bottom: 14px;
}

.monthly-detail-content ul {
  margin: 10px 0 16px 22px;
}

.empty-tip {
  padding: 48px;
  text-align: center;
  background: var(--surface-card);
  border-radius: var(--radius-lg);
}

.calc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.back-formula {
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.result-box {
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

.file-upload {
  position: relative;
  overflow: hidden;
}

.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.table {
  width: 100%;
  margin-top: 28px;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.table th,
.table td {
  padding: 14px;
  border-bottom: 1px solid var(--hairline);
}

.table th {
  color: var(--ink);
  font-weight: 600;
}

.table tr:hover {
  background: var(--surface-soft);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 17, 17, 0.45);
}

.modal-container {
  width: min(500px, 100%);
  padding: 32px;
  background: var(--canvas);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.modal-title {
  margin-bottom: 24px;
  text-align: center;
}

#editor {
  min-height: 380px;
  overflow: hidden;
  border: 1px solid var(--hairline) !important;
  border-radius: var(--radius-lg) !important;
}

.w-e-toolbar {
  background: var(--surface-soft) !important;
  border-bottom: 1px solid var(--hairline) !important;
  border: none !important;
}

.w-e-toolbar .w-e-btn {
  color: var(--ink) !important;
  border-radius: 6px !important;
}

.w-e-toolbar .w-e-btn:hover {
  background: var(--surface-card) !important;
}

.w-e-text-container {
  background: var(--canvas) !important;
  border: 0 !important;
}

.w-e-text {
  color: var(--ink) !important;
}

.footer {
  margin-top: auto;
  padding: 48px 24px;
  background: var(--surface-dark);
  color: var(--on-dark-soft);
  text-align: center;
  font-size: 14px;
}

/* Home page layout inspired by the supplied corporate long-page reference. */
.home-page {
  background: #f4f7fb;
}

.home-page #app {
  background:
    linear-gradient(90deg, rgba(6, 55, 104, 0.04), transparent 32%),
    linear-gradient(180deg, #ffffff 0, #f4f7fb 58%, #ffffff 100%);
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 99;
  height: 56px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  gap: 32px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(10, 49, 89, 0.08);
  backdrop-filter: blur(14px);
}

.home-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.home-brand strong {
  display: block;
  color: #092947;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-brand span {
  display: block;
  color: #6f8191;
  font-size: 11px;
  text-transform: uppercase;
}

.home-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex: 1;
}

.home-nav a {
  color: #1f3448;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.home-user {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 240px;
  color: #6f8191;
  font-size: 13px;
}

.home-main {
  width: min(1380px, 100%);
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(8, 39, 72, 0.09);
}

.home-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #061625;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 18, 34, 0.88) 0%, rgba(3, 18, 34, 0.58) 42%, rgba(3, 18, 34, 0.16) 100%),
    radial-gradient(circle at 76% 35%, rgba(130, 196, 230, 0.5), transparent 22%),
    linear-gradient(125deg, #071727 0%, #0f355a 42%, #c6d8e7 100%);
}

.hero-media::before {
  content: "";
  position: absolute;
  right: 9%;
  top: 14%;
  width: 430px;
  height: 360px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 38px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 90px rgba(255, 255, 255, 0.08);
  transform: perspective(900px) rotateY(-14deg);
}

.hero-media::after {
  content: "";
  position: absolute;
  right: 13%;
  bottom: 12%;
  width: 330px;
  height: 190px;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.9) 0 8px, transparent 9px),
    radial-gradient(circle at 50% 40%, rgba(31, 89, 139, 0.48) 0 48px, transparent 49px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(210, 226, 239, 0.42));
  clip-path: polygon(9% 72%, 34% 28%, 61% 18%, 88% 62%, 78% 86%, 18% 90%);
  opacity: 0.9;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(600px, calc(100% - 48px));
  padding: 150px 0 80px 92px;
  color: #ffffff;
}

.hero-kicker,
.section-heading span,
.product-feature span {
  display: block;
  color: #2c63b5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-content p:not(.hero-kicker) {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
}

.home-primary,
.home-secondary {
  min-height: 42px;
  padding: 0 24px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.home-primary {
  color: #ffffff;
  background: #0b4f93;
}

.home-secondary {
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.48);
}

.home-secondary.light {
  color: #0b4f93;
  background: #ffffff;
  border: 0;
}

.hero-index {
  margin-top: 58px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.hero-index strong {
  font-size: 26px;
}

.hero-index span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.about-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  padding: 70px 88px 76px;
  background: #f5f8fb;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-self: start;
}

.stat-card {
  min-height: 150px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e6edf3;
}

.stat-card span,
.stat-card small {
  color: #607586;
  font-size: 13px;
}

.stat-card strong {
  color: #07508f;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.about-copy {
  max-width: 520px;
}

.section-label {
  color: rgba(9, 41, 71, 0.1);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.about-copy h2,
.section-heading h2 {
  margin-top: -12px;
  color: #132b40;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.about-copy p {
  margin: 22px 0 26px;
  color: #5f7180;
  font-size: 15px;
  line-height: 1.9;
}

.text-arrow {
  color: #123e66;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.capability-band {
  padding: 80px 88px 88px;
  background:
    linear-gradient(rgba(5, 59, 111, 0.92), rgba(5, 59, 111, 0.92)),
    linear-gradient(120deg, #0b2d4d, #1f7eb9);
}

.section-heading {
  margin-bottom: 36px;
  text-align: center;
}

.section-heading.invert h2 {
  color: #ffffff;
}

.section-heading.invert span {
  color: rgba(255, 255, 255, 0.36);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.capability-card {
  min-height: 330px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  overflow: hidden;
  position: relative;
  background: #0b2741;
}

.capability-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(2, 18, 32, 0.82) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 22px);
  opacity: 0.62;
}

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

.capability-card span {
  margin-bottom: auto;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.capability-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.capability-card p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 1.7;
}

.card-a {
  background: linear-gradient(145deg, #284b66, #081a2e);
}

.card-b {
  background: linear-gradient(145deg, #4c6373, #0a2e4a);
}

.card-c {
  background: linear-gradient(145deg, #1a75a8, #092542);
}

.card-d {
  background: linear-gradient(145deg, #75899b, #103c62);
}

.product-band,
.resource-band,
.news-band {
  padding: 76px 88px;
  background: #ffffff;
}

.product-feature {
  min-height: 250px;
  padding: 44px 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 40px;
  align-items: center;
  background:
    radial-gradient(circle at 84% 36%, rgba(108, 187, 228, 0.42), transparent 26%),
    linear-gradient(120deg, #063f78, #0a68aa);
  color: #ffffff;
  cursor: pointer;
}

.product-feature h3 {
  margin: 12px 0 14px;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.product-feature p {
  max-width: 540px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.product-feature span {
  color: rgba(255, 255, 255, 0.7);
}

.product-visual {
  min-height: 185px;
  position: relative;
}

.product-visual i {
  position: absolute;
  display: block;
  width: 230px;
  height: 86px;
  background: linear-gradient(135deg, #dfe9ec, #526a61);
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  transform: skewY(-16deg) rotate(-6deg);
}

.product-visual i:nth-child(1) {
  right: 48px;
  top: 16px;
}

.product-visual i:nth-child(2) {
  right: 86px;
  top: 62px;
  background: linear-gradient(135deg, #2e544d, #0f2c43);
}

.product-visual i:nth-child(3) {
  right: 124px;
  top: 108px;
  background: linear-gradient(135deg, #0f355a, #061b2e);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.product-grid article {
  min-height: 150px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #f5f8fb;
  border: 1px solid #e6edf3;
}

.product-grid strong,
.resource-tile strong,
.news-card h3 {
  color: #122f49;
  font-size: 17px;
  font-weight: 700;
}

.product-grid span,
.resource-tile span,
.news-card p {
  margin-top: 8px;
  color: #748696;
  font-size: 13px;
}

.resource-band {
  background: #f5f8fb;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #dfe8f0;
  border: 1px solid #dfe8f0;
}

.resource-tile {
  min-height: 120px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: #ffffff;
  cursor: pointer;
}

.resource-tile.active {
  background: #0b4f93;
}

.resource-tile.active strong,
.resource-tile.active span {
  color: #ffffff;
}

.news-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 18px;
}

.news-card {
  min-height: 260px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #ffffff;
  border: 1px solid #e6edf3;
}

.news-card.lead {
  padding: 0;
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  overflow: hidden;
}

.news-card.lead > div:last-child {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.news-image {
  min-height: 260px;
  background:
    linear-gradient(180deg, rgba(5, 36, 66, 0.12), rgba(5, 36, 66, 0.48)),
    radial-gradient(circle at 50% 32%, #e5edf2 0 18%, #88a8bc 19% 42%, #244d72 43% 100%);
}

.news-card time {
  display: block;
  margin-bottom: 18px;
  color: #0b4f93;
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
}

.news-card h3 {
  line-height: 1.5;
}

.news-card p {
  line-height: 1.8;
}

@media (max-width: 1024px) {
  .card-grid,
  .formula-grid,
  .monthly-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .home-header {
    height: auto;
    padding: 14px 24px;
    flex-wrap: wrap;
  }

  .home-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .home-user {
    min-width: auto;
    margin-left: auto;
  }

  .hero-content {
    padding-left: 48px;
  }

  .about-band,
  .product-feature,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .capability-grid,
  .product-grid,
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header {
    min-height: auto;
    padding: 14px 18px;
    flex-wrap: wrap;
  }

  .user-info {
    width: 100%;
    justify-content: space-between;
  }

  .container {
    padding: 48px 18px 72px;
  }

  .login-card,
  .monthly-detail,
  .comments-section,
  .publish-card,
  .admin-card,
  .calc-card {
    padding: 24px;
  }

  .card-grid,
  .formula-grid,
  .monthly-timeline,
  .form-row {
    grid-template-columns: 1fr;
  }

  .comment-input-container,
  .detail-toolbar,
  .calc-header {
    flex-direction: column;
    align-items: stretch;
  }

  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .home-header {
    padding: 12px 18px;
    gap: 14px;
  }

  .home-brand {
    min-width: 0;
  }

  .home-user {
    width: 100%;
    justify-content: space-between;
  }

  .home-hero {
    min-height: 560px;
  }

  .hero-media::before,
  .hero-media::after {
    opacity: 0.32;
    right: -120px;
  }

  .hero-content {
    width: 100%;
    padding: 96px 24px 56px;
  }

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

  .about-band,
  .capability-band,
  .product-band,
  .resource-band,
  .news-band {
    padding: 54px 22px;
  }

  .stat-grid,
  .capability-grid,
  .product-grid,
  .resource-grid,
  .news-card.lead {
    grid-template-columns: 1fr;
  }

  .section-label {
    font-size: 42px;
  }

  .product-feature {
    padding: 32px 24px;
  }

  .product-visual {
    min-height: 150px;
  }

  .product-visual i {
    right: auto;
    left: 20px;
    width: 190px;
  }
}

/* ====== 极光整页背景 ====== */
#aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
#aurora-bg canvas {
  display: block;
}

/* Sci-fi home redesign */
.sci-home {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 18%, rgba(65, 220, 255, 0.2), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(155, 92, 255, 0.18), transparent 26%),
    radial-gradient(circle at 72% 86%, rgba(34, 255, 164, 0.13), transparent 26%),
    linear-gradient(135deg, #030714 0%, #06131f 38%, #10111f 100%);
  color: #eef8ff;
  overflow-x: hidden;
}

.sci-home::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(rgba(95, 220, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 220, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
}

.sci-home #app {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  background: transparent;
}

.sci-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  background:
    linear-gradient(180deg, rgba(8, 20, 34, 0.9), rgba(5, 10, 22, 0.76)),
    rgba(255, 255, 255, 0.03);
  border-right: 1px solid rgba(117, 223, 255, 0.18);
  z-index:9
}

.sci-brand,
.sci-user-card,
.sci-panel,
.sci-feed,
.sci-lab-card,
.sci-metrics article,
.sci-hero {
  position: relative;
  border: 1px solid rgba(132, 224, 255, 0.18);
  background: linear-gradient(145deg, rgba(13, 31, 49, 0.76), rgba(11, 17, 32, 0.62));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.sci-brand::after,
.sci-user-card::after,
.sci-panel::after,
.sci-feed::after,
.sci-lab-card::after,
.sci-metrics article::after,
.sci-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-120%);
}

.sci-brand {
  min-height: 86px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 22px;
}

.sci-logo {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    object-fit: cover;
    background: #ffffff;
    box-shadow: 0 0 28px rgba(69, 216, 255, 0.38);
    padding: 8px;
}

.sci-brand strong {
  display: block;
  color: #ffffff;
  font-size: 17px;
  letter-spacing: 0.08em;
}

.sci-brand span,
.sci-user-card span,
.sci-user-card small,
.sci-kicker,
.sci-topbar span,
.sci-status span,
.sci-metrics span,
.sci-metrics small,
.panel-head span,
.sci-section-title span {
  color: #7fdcff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sci-nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow-y: auto;
  flex: 1 1 0;
  min-height: 0;
  padding-right: 4px;
}

.sci-nav button {
  height: 60px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #b9d8e8;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(132, 224, 255, 0.1);
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
}

.sci-nav button.active,
.sci-nav button:hover {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(28, 170, 255, 0.28), rgba(108, 71, 255, 0.16));
  border-color: rgba(113, 222, 255, 0.38);
}

.sci-nav i {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-style: normal;
  font-size: 25px;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.65;
}

.sci-nav span{
  font-size: 18px;
  font-weight: bold;
}
.sci-nav button.active i,
.sci-nav button:hover i {
  opacity: 1;
}

.sci-nav::-webkit-scrollbar {
  width: 4px;
}

.sci-nav::-webkit-scrollbar-thumb {
  background: rgba(127, 220, 255, 0.2);
  border-radius: 4px;
}

[data-theme="light"] .sci-nav::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.2);
}

.sci-user-card {
  margin-top: auto;
  padding: 10px 14px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sci-user-meta {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.sci-user-card strong {
  display: block;
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sci-user-card small {
  display: block;
  color: #a9becb;
  letter-spacing: 0;
  text-transform: none;
}

.sci-user-card button.sci-logout-btn {
  width: 40px;
  height: 50px;
  padding: 0;
  margin-top: 0;
  flex-shrink: 0;
  color: rgba(248, 180, 160, 0.7);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: 10px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
}
.sci-user-card button.sci-logout-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.45);
}
[data-theme="light"] .sci-user-card button.sci-logout-btn {
  color: rgba(220, 80, 60, 0.65);
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.15);
}
[data-theme="light"] .sci-user-card button.sci-logout-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

/* 快捷入口 2x2 图标网格 */
.sci-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.qa-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  background: rgba(127, 220, 255, 0.06);
  border: 1px solid rgba(127, 220, 255, 0.1);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  color: inherit;
}
.qa-btn:hover {
  background: rgba(127, 220, 255, 0.14);
  border-color: rgba(127, 220, 255, 0.3);
  transform: translateY(-1px);
}
.qa-btn.active {
  background: rgba(127, 220, 255, 0.16);
  border-color: #7fdcff;
}
.qa-icon {
  font-size: 20px;
  line-height: 1;
}
.qa-label {
  font-size: 13px;
  opacity: 0.65;
  white-space: nowrap;
}
[data-theme="light"] .qa-btn {
  background: rgba(59, 130, 246, 0.06);
  border-color: rgba(59, 130, 246, 0.1);
}
[data-theme="light"] .qa-btn:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
}
[data-theme="light"] .qa-btn.active {
  background: rgba(59, 130, 246, 0.14);
  border-color: #3b82f6;
}

.sci-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(127, 220, 255, 0.3);
  flex-shrink: 0;
}

.sci-avatar-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(127, 220, 255, 0.15);
  border: 2px solid rgba(127, 220, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  color: #7fdcff;
  flex-shrink: 0;
}

[data-theme="light"] .sci-avatar {
  border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .sci-avatar-placeholder {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #3b82f6;
}

.sci-shell {
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: 28px;
}

.sci-hero {
  min-height: 560px;
  padding: 28px;
  border-radius: 34px;
}

.sci-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 44%, rgba(116, 244, 255, 0.28), transparent 22%),
    radial-gradient(circle at 58% 78%, rgba(120, 255, 191, 0.14), transparent 20%),
    linear-gradient(115deg, rgba(13, 27, 46, 0.12), rgba(10, 23, 39, 0.92));
}

.sci-topbar,
.sci-hero-grid,
.sci-metrics,
.sci-panel-grid,
.sci-bottom-grid {
  position: relative;
  z-index: 1;
}

.sci-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.sci-topbar strong {
  display: block;
  margin-top: 7px;
  color: #ffffff;
  font-size: 18px;
}

.sci-status {
  height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  background: rgba(110, 255, 204, 0.1);
  border: 1px solid rgba(110, 255, 204, 0.25);
}

.sci-status b {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #78ffbf;
  box-shadow: 0 0 18px #78ffbf;
}

.sci-hero-grid {
  min-height: 450px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  align-items: center;
  gap: 48px;
}

.sci-copy {
  max-width: 760px;
}

.sci-copy h1 {
  margin: 18px 0 22px;
  color: #ffffff;
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.sci-lead {
  max-width: 640px;
  color: #b9d8e8;
  font-size: 17px;
  line-height: 1.9;
}

.sci-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.sci-primary,
.sci-ghost,
.sci-wide-button {
  height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.sci-primary {
  color: #04111d;
  background: linear-gradient(90deg, #77f4ff, #78ffbf);
  box-shadow: 0 0 34px rgba(113, 243, 255, 0.25);
}

.sci-ghost {
  color: #dff8ff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(126, 222, 255, 0.32);
}

.sci-primary i,
.sci-ghost i {
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 8px 0 0 currentColor;
}

.sci-core {
  position: relative;
  width: min(460px, 100%);
  aspect-ratio: 1;
  margin-left: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(122, 246, 255, 0.22), transparent 36%),
    conic-gradient(from 180deg, transparent, rgba(122, 246, 255, 0.38), transparent, rgba(121, 255, 191, 0.3), transparent);
  box-shadow: 0 0 50px rgba(86, 220, 255, 0.14);
}

.orbit,
.core-ring,
.core-dot {
  position: absolute;
  border-radius: 50%;
}

.orbit {
  border: 1px solid rgba(134, 229, 255, 0.28);
}

.orbit-one {
  inset: 9%;
}

.orbit-two {
  inset: 22%;
  transform: rotateX(68deg) rotateZ(-18deg);
}

.orbit-three {
  inset: 34%;
  transform: rotateY(72deg) rotateZ(18deg);
  border-color: rgba(125, 255, 198, 0.3);
}

.core-ring {
  inset: 38%;
  border: 8px solid rgba(119, 244, 255, 0.28);
  box-shadow: inset 0 0 28px rgba(119, 244, 255, 0.28), 0 0 34px rgba(119, 244, 255, 0.28);
}

.core-dot {
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, #ffffff, #71f3ff 46%, #143550 100%);
  box-shadow: 0 0 46px rgba(113, 243, 255, 0.75);
}

.core-label {
  position: absolute;
  bottom: 24%;
  color: rgba(238, 248, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.32em;
}

.sci-metrics {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sci-metrics article {
  min-height: 150px;
  padding: 22px;
  border-radius: 24px;
}

.sci-metrics strong {
  display: block;
  margin: 16px 0 8px;
  color: #ffffff;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.sci-metrics small {
  color: #a9becb;
  letter-spacing: 0;
  text-transform: none;
}

.sci-panel-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 18px;
}

.sci-panel {
  min-height: 270px;
  padding: 24px;
  border-radius: 28px;
  cursor: pointer;
}

.sci-panel.large {
  grid-row: span 2;
  min-height: 558px;
}

.sci-panel.admin {
  background: linear-gradient(145deg, rgba(50, 28, 70, 0.66), rgba(16, 19, 34, 0.74));
  border-color: rgba(218, 127, 255, 0.24);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.panel-head b {
  color: rgba(255, 255, 255, 0.26);
  font-size: 42px;
  line-height: 1;
}

.sci-panel h2,
.sci-section-title h2 {
  margin-top: 30px;
  color: #ffffff;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.sci-panel p {
  max-width: 460px;
  margin-top: 14px;
  color: #b4c8d5;
  line-height: 1.8;
}

.panel-visual {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  height: 230px;
  border-radius: 24px;
  background:
    linear-gradient(rgba(122, 246, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 246, 255, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, rgba(13, 67, 96, 0.72), rgba(8, 18, 31, 0.78));
  background-size: 28px 28px, 28px 28px, auto;
  border: 1px solid rgba(122, 246, 255, 0.18);
  overflow: hidden;
}

.monthly-visual i {
  position: absolute;
  display: block;
  width: 34%;
  height: 58%;
  bottom: 24px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(121, 244, 255, 0.08));
  border: 1px solid rgba(121, 244, 255, 0.24);
  transform: skewY(-8deg);
}

.monthly-visual i:nth-child(1) {
  left: 8%;
}

.monthly-visual i:nth-child(2) {
  left: 33%;
  height: 72%;
  background: linear-gradient(180deg, rgba(120, 255, 191, 0.22), rgba(121, 244, 255, 0.08));
}

.monthly-visual i:nth-child(3) {
  left: 58%;
}

.formula-lines {
  margin-top: 32px;
  display: grid;
  gap: 10px;
}

.formula-lines span {
  padding: 12px 14px;
  color: #eafcff;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(132, 224, 255, 0.14);
  border-radius: 14px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
}

.sci-bottom-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
}

.sci-feed,
.sci-lab-card {
  padding: 24px;
  border-radius: 28px;
}

.sci-section-title h2 {
  margin-top: 8px;
  font-size: 26px;
}

.sci-feed article {
  margin-top: 18px;
  padding: 18px 0 0;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 18px;
  border-top: 1px solid rgba(132, 224, 255, 0.12);
}

.sci-feed time {
  color: #78ffbf;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
}

.sci-feed h3 {
  color: #ffffff;
  font-size: 16px;
}

.sci-feed p {
  margin-top: 6px;
  color: #9fb5c3;
  font-size: 13px;
  line-height: 1.7;
}

.telemetry {
  margin-top: 28px;
  display: grid;
  gap: 20px;
}

.telemetry div {
  display: grid;
  gap: 9px;
}

.telemetry span {
  color: #b9d8e8;
  font-size: 13px;
  font-weight: 700;
}

.telemetry div::after {
  content: "";
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(132, 224, 255, 0.12);
}

.telemetry b {
  height: 8px;
  margin-bottom: -17px;
  position: relative;
  z-index: 1;
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, #71f3ff, #78ffbf);
  box-shadow: 0 0 20px rgba(113, 243, 255, 0.35);
}

.sci-wide-button {
  width: 100%;
  margin-top: 30px;
  color: #06131f;
  background: linear-gradient(90deg, #71f3ff, #78ffbf);
}

@media (max-width: 1160px) {
  .sci-home #app {
    grid-template-columns: 1fr;
  }

  .sci-sidebar {
    position: relative;
    height: auto;
  }

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

  .sci-user-card {
    margin-top: 0;
  }

  .sci-hero-grid,
  .sci-panel-grid,
  .sci-bottom-grid {
    grid-template-columns: 1fr;
  }

  .sci-panel.large {
    min-height: 470px;
  }

  .sci-core {
    margin: 0 auto;
    max-width: 390px;
  }
}

@media (max-width: 780px) {
  .sci-shell,
  .sci-sidebar {
    padding: 16px;
  }

  .sci-nav,
  .sci-metrics {
    grid-template-columns: 1fr;
  }

  .sci-hero {
    padding: 20px;
    border-radius: 24px;
  }

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

  .sci-copy h1 {
    font-size: 40px;
  }

  .sci-hero-grid {
    min-height: auto;
    padding-top: 42px;
  }

  .sci-core {
    width: 280px;
  }

  .sci-panel,
  .sci-feed,
  .sci-lab-card,
  .sci-metrics article {
    border-radius: 22px;
  }

  .sci-panel.large {
    min-height: 440px;
  }

  .sci-feed article {
    grid-template-columns: 1fr;
  }
}

.sci-home .sci-page-title {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.sci-home .sci-page-title h1 {
  color: #ffffff;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 850;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.sci-home .sci-page-title p {
  margin-top: 10px;
  color: #7fdcff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sci-home .sci-content-card {
  position: relative;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(132, 224, 255, 0.18);
  background: linear-gradient(145deg, rgba(13, 31, 49, 0.76), rgba(11, 17, 32, 0.62));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 22px;
}

.sci-home .sci-content-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-120%);
}

.sci-home .sci-content-card h2 {
  color: #ffffff;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(132, 224, 255, 0.12);
}

.sci-home .sci-form-item {
  margin-bottom: 20px;
}

.sci-home .sci-form-item label {
  display: block;
  margin-bottom: 8px;
  color: #7fdcff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sci-home .sci-input,
.sci-home .sci-select,
.sci-home .sci-textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  color: #eef8ff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(132, 224, 255, 0.18);
  border-radius: 14px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.sci-home .sci-input:focus,
.sci-home .sci-select:focus,
.sci-home .sci-textarea:focus {
  border-color: rgba(113, 222, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(113, 243, 255, 0.12);
}

.sci-home .sci-input::placeholder,
.sci-home .sci-textarea::placeholder {
  color: rgba(185, 216, 232, 0.4);
}

.sci-home .sci-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237fdcff' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.sci-home .sci-select option {
  background: #0a1a2e;
  color: #eef8ff;
}

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

.sci-home .sci-btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.sci-home .sci-formula-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.sci-home .sci-formula-card {
  position: relative;
  min-height: 200px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(132, 224, 255, 0.18);
  background: linear-gradient(145deg, rgba(13, 31, 49, 0.76), rgba(11, 17, 32, 0.62));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.sci-home .sci-formula-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-120%);
}

.sci-home .sci-formula-card:hover {
  transform: translateY(-3px);
  border-color: rgba(113, 222, 255, 0.38);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sci-home .sci-formula-card h3 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sci-home .sci-formula-card .desc {
  margin-top: 12px;
  color: #9fb5c3;
  font-size: 13px;
  line-height: 1.7;
}

.sci-home .sci-tag {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sci-home .sci-tag.physics {
  background: rgba(113, 243, 255, 0.12);
  color: #71f3ff;
  border: 1px solid rgba(113, 243, 255, 0.24);
}

.sci-home .sci-tag.materials {
  background: rgba(180, 130, 255, 0.12);
  color: #c4a0ff;
  border: 1px solid rgba(180, 130, 255, 0.24);
}

.sci-home .sci-tag.material_mechanics {
  background: rgba(120, 255, 191, 0.12);
  color: #78ffbf;
  border: 1px solid rgba(120, 255, 191, 0.24);
}

.sci-home .sci-tag.theoretical_mechanics {
  background: rgba(255, 180, 100, 0.12);
  color: #ffb464;
  border: 1px solid rgba(255, 180, 100, 0.24);
}

.sci-home .sci-tag.chemistry {
  background: rgba(120, 255, 191, 0.12);
  color: #78ffbf;
  border: 1px solid rgba(120, 255, 191, 0.24);
}

.sci-home .sci-result-box {
  margin-top: 24px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(113, 243, 255, 0.06);
  border: 1px solid rgba(113, 243, 255, 0.2);
  color: #71f3ff;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
}

.sci-home .sci-calc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.sci-home .sci-calc-header h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.sci-home .sci-back-link {
  color: #7fdcff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: color 0.18s ease;
}

.sci-home .sci-back-link:hover {
  color: #71f3ff;
}

.sci-home .sci-table {
  width: 100%;
  margin-top: 24px;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.sci-home .sci-table th,
.sci-home .sci-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(132, 224, 255, 0.1);
}

.sci-home .sci-table th {
  color: #7fdcff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sci-home .sci-table td {
  color: #eef8ff;
}

.sci-home .sci-table tr:hover {
  background: rgba(113, 243, 255, 0.04);
}

.sci-home .sci-table .sci-btn-danger {
  height: 32px;
  padding: 0 14px;
  color: #ffffff;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease;
}

.sci-home .sci-table .sci-btn-danger:hover {
  background: rgba(239, 68, 68, 0.35);
}

.sci-home .sci-form-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.sci-home .sci-form-row .sci-form-item {
  flex: 1;
  min-width: 140px;
  margin-bottom: 0;
}
.sci-home .sci-form-row .sci-primary {
  flex-shrink: 0;
  border: none;
}
.sci-home .sci-form-row .sci-file-upload {
  flex-shrink: 0;
}

.sci-home .sci-tip {
  margin-top: 12px;
  color: #9fb5c3;
  font-size: 13px;
}

.sci-home .sci-file-upload {
  position: relative;
  overflow: hidden;
  height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: #04111d;
  background: linear-gradient(90deg, #78ffbf, #71f3ff);
}

.sci-home .sci-file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.sci-home .sci-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.sci-home .sci-timeline-item {
  position: relative;
  min-height: 180px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(132, 224, 255, 0.18);
  background: linear-gradient(145deg, rgba(13, 31, 49, 0.76), rgba(11, 17, 32, 0.62));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.sci-home .sci-timeline-item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-120%);
}

.sci-home .sci-timeline-item:hover {
  transform: translateY(-3px);
  border-color: rgba(113, 222, 255, 0.38);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sci-home .sci-timeline-item h2 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 12px;
}

.sci-home .sci-timeline-tag {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(113, 243, 255, 0.12);
  color: #71f3ff;
  border: 1px solid rgba(113, 243, 255, 0.24);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sci-home .sci-timeline-desc {
  color: #9fb5c3;
  font-size: 13px;
  line-height: 1.7;
}

.sci-home .sci-detail-tag {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(113, 243, 255, 0.12);
  color: #71f3ff;
  border: 1px solid rgba(113, 243, 255, 0.24);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sci-home .sci-detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 28px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(132, 224, 255, 0.1);
}

.sci-home .sci-share-text {
  color: #9fb5c3;
  font-size: 13px;
}

.sci-home .sci-share-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sci-home .sci-share-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(132, 224, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #7fdcff;
  cursor: pointer;
  font-size: 14px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.sci-home .sci-share-btn:hover {
  border-color: rgba(113, 222, 255, 0.4);
  background: rgba(113, 243, 255, 0.08);
}

.sci-home .sci-detail-content {
  color: #b9d8e8;
  font-size: 16px;
  line-height: 1.9;
}

.sci-home .sci-detail-content h3,
.sci-home .sci-detail-content h4 {
  margin: 24px 0 12px;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sci-home .sci-detail-content p {
  margin-bottom: 14px;
  color: #b9d8e8;
}

.sci-home .sci-detail-content ul {
  margin: 10px 0 16px 22px;
  color: #b9d8e8;
}

.sci-home .sci-detail-content img {
  max-width: 100%;
  margin: 16px 0;
  border: 1px solid rgba(132, 224, 255, 0.18);
  border-radius: 18px;
}

.sci-home .sci-comments-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.sci-home .sci-comment-input-container {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.sci-home .sci-comment-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(113, 243, 255, 0.12);
  border: 1px solid rgba(113, 243, 255, 0.24);
  color: #71f3ff;
  font-size: 14px;
  font-weight: 700;
}

.sci-home .sci-comment-avatar-img {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(113, 243, 255, 0.24);
}

.sci-home .sci-comment-avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

.sci-home .sci-comment-input-wrapper {
  flex: 1;
}

.sci-home .sci-comment-input {
  width: 100%;
  min-height: 80px;
  padding: 14px 16px;
  color: #eef8ff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(132, 224, 255, 0.18);
  border-radius: 14px;
  outline: none;
  resize: vertical;
  font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.sci-home .sci-comment-input:focus {
  border-color: rgba(113, 222, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(113, 243, 255, 0.12);
}

.sci-home .sci-comment-input::placeholder {
  color: rgba(185, 216, 232, 0.4);
}

.sci-home .sci-comment-submit {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.sci-home .sci-comments-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sci-home .sci-comment-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(132, 224, 255, 0.1);
}

.sci-home .sci-comment-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sci-home .sci-comment-content {
  flex: 1;
}

.sci-home .sci-comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.sci-home .sci-comment-username {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.sci-home .sci-comment-time {
  color: #7fdcff;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
}

.sci-home .sci-comment-text {
  color: #b9d8e8;
  font-size: 14px;
  line-height: 1.7;
}

.sci-home .sci-empty-tip {
  padding: 48px;
  text-align: center;
  color: #9fb5c3;
  font-size: 14px;
  border-radius: 24px;
  border: 1px solid rgba(132, 224, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.sci-home .sci-empty-comments {
  color: #9fb5c3;
  font-size: 14px;
  text-align: center;
  padding: 24px 0;
}

.sci-home .sci-modal-overlay:not(.open) {
  pointer-events: none;
  opacity: 0;
}
.sci-home .sci-modal-overlay.open {
  z-index: 999999;
  background: rgba(3, 7, 20, 0.75);
  backdrop-filter: blur(8px);
  opacity: 1;
  pointer-events: auto;
}

.sci-home .sci-modal-container {
  width: min(500px, 100%);
  padding: 32px;
  border-radius: 28px;
  border: 1px solid rgba(132, 224, 255, 0.24);
  background: linear-gradient(145deg, rgba(13, 31, 49, 0.96), rgba(8, 14, 28, 0.98));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sci-home .sci-modal-title {
  margin-bottom: 24px;
  text-align: center;
  color: #ffffff;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sci-home .sci-modal-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 24px;
}

.sci-home .sci-modal-btn {
  min-height: 42px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.sci-home .sci-modal-btn.cancel-btn {
  color: #b9d8e8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(132, 224, 255, 0.18);
}

.sci-home .sci-modal-btn.confirm-btn {
  color: #04111d;
  background: linear-gradient(90deg, #71f3ff, #78ffbf);
  border: none;
}

.sci-home .sci-subscribe-btn {
  height: 38px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: #7fdcff;
  background: rgba(113, 243, 255, 0.08);
  border: 1px solid rgba(113, 243, 255, 0.24);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.sci-home .sci-subscribe-btn:hover {
  background: rgba(113, 243, 255, 0.14);
  border-color: rgba(113, 243, 255, 0.38);
}

.sci-home .sci-subscribe-btn.subscribed {
  color: #78ffbf;
  background: rgba(120, 255, 191, 0.08);
  border-color: rgba(120, 255, 191, 0.24);
}

.sci-home .sci-notification-options {
  display: flex;
  gap: 18px;
  align-items: center;
}

.sci-home .sci-notification-option {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b9d8e8;
  font-size: 14px;
  cursor: pointer;
}

.sci-home .sci-notification-option input[type="checkbox"] {
  accent-color: #71f3ff;
}

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

.sci-home #editor {
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(132, 224, 255, 0.18) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.03) !important;
}

.sci-home .w-e-toolbar {
  background: rgba(255, 255, 255, 0.04) !important;
  border-bottom: 1px solid rgba(132, 224, 255, 0.12) !important;
}

.sci-home .w-e-toolbar .w-e-btn {
  color: #b9d8e8 !important;
  border-radius: 6px !important;
}

.sci-home .w-e-toolbar .w-e-btn:hover {
  background: rgba(113, 243, 255, 0.08) !important;
  color: #ffffff !important;
}

.sci-home .w-e-text-container {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 0 !important;
}

.sci-home .w-e-text {
  color: #eef8ff !important;
}

@media (max-width: 1160px) {
  .sci-home .sci-formula-grid,
  .sci-home .sci-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sci-home .sci-form-row .sci-form-item {
    min-width: 100%;
  }
}

@media (max-width: 780px) {
  .sci-home .sci-formula-grid,
  .sci-home .sci-timeline {
    grid-template-columns: 1fr;
  }
  .sci-home .sci-form-row .sci-form-item {
    min-width: 100%;
  }

  .sci-home .sci-content-card {
    padding: 20px;
    border-radius: 22px;
  }

  .sci-home .sci-calc-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .sci-home .sci-detail-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .sci-home .sci-comment-input-container {
    flex-direction: column;
  }

  .sci-home .sci-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

.sci-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 18%, rgba(65, 220, 255, 0.2), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(155, 92, 255, 0.18), transparent 26%),
    radial-gradient(circle at 72% 86%, rgba(34, 255, 164, 0.13), transparent 26%),
    linear-gradient(135deg, #030714 0%, #06131f 38%, #10111f 100%);
  color: #eef8ff;
  overflow: hidden;
}

.sci-login::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(95, 220, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 220, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
}

.sci-login #app {
  min-height: auto;
  display: block;
  width: 100%;
  max-width: 440px;
}

.sci-login-card {
  position: relative;
  padding: 48px 40px;
  border-radius: 28px;
  border: 1px solid rgba(132, 224, 255, 0.18);
  background: linear-gradient(145deg, rgba(13, 31, 49, 0.76), rgba(11, 17, 32, 0.62));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  text-align: center;
}

.sci-login-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-120%);
}

.sci-login-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    background: #ffffff;
    box-shadow: 0 0 36px rgba(69, 216, 255, 0.38);
    margin: 0 auto 20px;
    display: block;
    padding: 10px;
}

.sci-login-title {
  color: #ffffff;
  font-size: 28px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.sci-login-subtitle {
  margin: 8px 0 32px;
  color: #7fdcff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sci-login .sci-form-item {
  margin-bottom: 20px;
  text-align: left;
}

.sci-login .sci-form-item label {
  display: block;
  margin-bottom: 8px;
  color: #7fdcff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sci-login .sci-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  color: #eef8ff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(132, 224, 255, 0.18);
  border-radius: 14px;
  outline: none;
  font-size: 15px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.sci-login .sci-input:focus {
  border-color: rgba(113, 222, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(113, 243, 255, 0.12);
}

.sci-login .sci-input::placeholder {
  color: rgba(185, 216, 232, 0.4);
}

.sci-login-btn {
  width: 100%;
  height: 50px;
  margin-top: 8px;
  color: #04111d;
  background: linear-gradient(90deg, #77f4ff, #78ffbf);
  border: none;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 0 34px rgba(113, 243, 255, 0.25);
  transition: box-shadow 0.18s ease;
}

.sci-login-btn:hover {
  box-shadow: 0 0 48px rgba(113, 243, 255, 0.4);
}

.sci-login-footer {
  margin-top: 28px;
  color: rgba(185, 216, 232, 0.4);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.sci-login-core {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(122, 246, 255, 0.22), transparent 36%),
    conic-gradient(from 180deg, transparent, rgba(122, 246, 255, 0.38), transparent, rgba(121, 255, 191, 0.3), transparent);
  box-shadow: 0 0 50px rgba(86, 220, 255, 0.14);
}

.sci-login-core-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff, #71f3ff 46%, #143550 100%);
  box-shadow: 0 0 46px rgba(113, 243, 255, 0.75);
}

@media (max-width: 780px) {
  .sci-login-card {
    padding: 36px 24px;
    border-radius: 22px;
  }

  .sci-login-title {
    font-size: 24px;
  }

  .sci-login-core {
    width: 90px;
    height: 90px;
  }

  .sci-login-core-dot {
    width: 28px;
    height: 28px;
  }
}

.sci-contribute-hero {
  position: relative;
  padding: 36px 32px;
  border-radius: 28px;
  border: 1px solid rgba(120, 255, 191, 0.2);
  background: linear-gradient(135deg, rgba(10, 40, 30, 0.7), rgba(8, 20, 34, 0.6));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  margin-bottom: 28px;
  overflow: hidden;
}

.sci-contribute-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 50%, rgba(120, 255, 191, 0.15), transparent 30%),
    radial-gradient(circle at 85% 30%, rgba(113, 243, 255, 0.1), transparent 25%);
}

.sci-contribute-hero h2 {
  position: relative;
  color: #78ffbf;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.sci-contribute-hero p {
  position: relative;
  color: #b9d8e8;
  font-size: 14px;
  line-height: 1.8;
}

.sci-contribute-hero .sci-writing-tips {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.sci-writing-tip {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(120, 255, 191, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

.sci-writing-tip h4 {
  color: #78ffbf;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.sci-writing-tip p {
  color: #9fb5c3;
  font-size: 12px;
  line-height: 1.6;
}

.sci-contribute-form {
  border-radius: 28px;
  border: 1px solid rgba(120, 255, 191, 0.18);
  background: linear-gradient(145deg, rgba(13, 31, 49, 0.76), rgba(11, 17, 32, 0.62));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 28px;
  overflow: hidden;
  position: relative;
}

.sci-contribute-form::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(120, 255, 191, 0.06), transparent);
  transform: translateX(-120%);
}

.sci-contribute-form h2 {
  color: #78ffbf;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(120, 255, 191, 0.15);
}

.sci-contribute-form .sci-form-item label {
  color: #78ffbf;
}

.sci-contribute-form .sci-input,
.sci-contribute-form .sci-select,
.sci-contribute-form .sci-textarea {
  border-color: rgba(120, 255, 191, 0.18);
}

.sci-contribute-form .sci-input:focus,
.sci-contribute-form .sci-select:focus,
.sci-contribute-form .sci-textarea:focus {
  border-color: rgba(120, 255, 191, 0.5);
  box-shadow: 0 0 0 3px rgba(120, 255, 191, 0.12);
}

.sci-contribute-form .sci-primary {
  background: linear-gradient(90deg, #78ffbf, #71f3ff);
}

.sci-contribute-form #editor {
  border-color: rgba(120, 255, 191, 0.18) !important;
}

.sci-contribute-form .w-e-toolbar .w-e-btn:hover {
  background: rgba(120, 255, 191, 0.08) !important;
}

.sci-my-item {
  position: relative;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(120, 255, 191, 0.18);
  background: linear-gradient(145deg, rgba(13, 31, 49, 0.76), rgba(11, 17, 32, 0.62));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  margin-bottom: 18px;
  overflow: hidden;
}

.sci-my-item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(120, 255, 191, 0.06), transparent);
  transform: translateX(-120%);
}

.sci-my-item h3 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.sci-my-item .sci-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.sci-my-item .sci-tag-green {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(120, 255, 191, 0.12);
  color: #78ffbf;
  border: 1px solid rgba(120, 255, 191, 0.24);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sci-my-item .sci-review-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(120, 255, 191, 0.1);
}

.sci-my-item .sci-review-label {
  color: #78ffbf;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.sci-my-item .sci-review-text {
  color: #b9d8e8;
  font-size: 14px;
}

.sci-my-item .sci-review-meta {
  color: #9fb5c3;
  font-size: 12px;
  margin-top: 8px;
}

@media (max-width: 780px) {
  .sci-contribute-hero .sci-writing-tips {
    grid-template-columns: 1fr;
  }

  .sci-contribute-hero {
    padding: 24px 20px;
  }

  .sci-contribute-form {
    padding: 20px;
  }
}

[data-theme="light"] .sci-home .sci-page-title h1,
[data-theme="light"] .sci-home .sci-content-card h2,
[data-theme="light"] .sci-home .sci-formula-card h3,
[data-theme="light"] .sci-home .sci-calc-header h2,
[data-theme="light"] .sci-home .sci-comments-title,
[data-theme="light"] .sci-home .sci-comment-username,
[data-theme="light"] .sci-home .sci-modal-title,
[data-theme="light"] .sci-home .sci-timeline-item h2,
[data-theme="light"] .sci-home .sci-contribute-form h2,
[data-theme="light"] .sci-home .sci-my-item h3,
[data-theme="light"] .sci-home .sci-contribute-hero h2 {
  color: #0f172a;
}

[data-theme="light"] .sci-home .sci-page-title p {
  color: #3b82f6;
}

[data-theme="light"] .sci-home .sci-content-card,
[data-theme="light"] .sci-home .sci-formula-card,
[data-theme="light"] .sci-home .sci-result-box,
[data-theme="light"] .sci-home .sci-timeline-item,
[data-theme="light"] .sci-home .sci-detail-toolbar,
[data-theme="light"] .sci-home .sci-comment-input,
[data-theme="light"] .sci-home .sci-comment-avatar,
[data-theme="light"] .sci-home .sci-modal-container,
[data-theme="light"] .sci-home .sci-empty-tip,
[data-theme="light"] .sci-home .sci-contribute-form,
[data-theme="light"] .sci-home .sci-contribute-hero,
[data-theme="light"] .sci-home .sci-my-item {
  border-color: rgba(59, 130, 246, 0.12);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.88));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .sci-home .sci-content-card h2 {
  border-bottom-color: rgba(59, 130, 246, 0.1);
}

[data-theme="light"] .sci-home .sci-form-item label {
  color: #3b82f6;
}

[data-theme="light"] .sci-home .sci-input,
[data-theme="light"] .sci-home .sci-textarea {
  color: #1e293b;
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .sci-home .sci-select {
  color: #1e293b;
  background-color: rgba(255, 255, 255, 0.8);
  border-color: rgba(59, 130, 246, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

[data-theme="light"] .sci-home .sci-input:focus,
[data-theme="light"] .sci-home .sci-select:focus,
[data-theme="light"] .sci-home .sci-textarea:focus {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

[data-theme="light"] .sci-home .sci-input::placeholder,
[data-theme="light"] .sci-home .sci-textarea::placeholder {
  color: rgba(100, 116, 139, 0.5);
}

[data-theme="light"] .sci-home .sci-select option {
  background: #ffffff;
  color: #1e293b;
}

[data-theme="light"] .sci-home .sci-primary {
  color: #ffffff;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .sci-home .sci-ghost {
  color: #475569;
  background: rgba(59, 130, 246, 0.04);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .sci-home .sci-ghost:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.25);
}

[data-theme="light"] .sci-home .sci-formula-card:hover {
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .sci-home .sci-formula-card .desc {
  color: #64748b;
}

[data-theme="light"] .sci-home .sci-tag.physics {
  background: rgba(59, 130, 246, 0.08);
  color: #2563eb;
  border-color: rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .sci-home .sci-tag.materials {
  background: rgba(139, 92, 246, 0.08);
  color: #7c3aed;
  border-color: rgba(139, 92, 246, 0.2);
}

[data-theme="light"] .sci-home .sci-tag.material_mechanics {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.2);
}

[data-theme="light"] .sci-home .sci-tag.theoretical_mechanics {
  background: rgba(245, 158, 11, 0.08);
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.2);
}

[data-theme="light"] .sci-home .sci-tag.chemistry {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.2);
}

[data-theme="light"] .sci-home .sci-result-box {
  background: rgba(59, 130, 246, 0.06);
  border-color: rgba(59, 130, 246, 0.15);
  color: #2563eb;
}

[data-theme="light"] .sci-home .sci-back-link {
  color: #3b82f6;
}

[data-theme="light"] .sci-home .sci-back-link:hover {
  color: #1d4ed8;
}

[data-theme="light"] .sci-home .sci-table th {
  color: #3b82f6;
  border-bottom-color: rgba(59, 130, 246, 0.1);
}

[data-theme="light"] .sci-home .sci-table td {
  color: #1e293b;
  border-bottom-color: rgba(59, 130, 246, 0.06);
}

[data-theme="light"] .sci-home .sci-table tr:hover {
  background: rgba(59, 130, 246, 0.03);
}

[data-theme="light"] .sci-home .sci-table .sci-btn-danger {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
  color: #dc2626;
}

[data-theme="light"] .sci-home .sci-tip {
  color: #64748b;
}

[data-theme="light"] .sci-home .sci-file-upload {
  color: #ffffff;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
}

[data-theme="light"] .sci-home .sci-timeline-item:hover {
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .sci-home .sci-timeline-tag {
  background: rgba(59, 130, 246, 0.08);
  color: #2563eb;
  border-color: rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .sci-home .sci-timeline-desc {
  color: #64748b;
}

[data-theme="light"] .sci-home .sci-detail-tag {
  background: rgba(59, 130, 246, 0.08);
  color: #2563eb;
  border-color: rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .sci-home .sci-detail-toolbar {
  background: rgba(59, 130, 246, 0.03);
  border-color: rgba(59, 130, 246, 0.08);
}

[data-theme="light"] .sci-home .sci-share-text {
  color: #64748b;
}

[data-theme="light"] .sci-home .sci-share-btn {
  border-color: rgba(59, 130, 246, 0.12);
  background: rgba(59, 130, 246, 0.04);
  color: #3b82f6;
}

[data-theme="light"] .sci-home .sci-share-btn:hover {
  border-color: rgba(59, 130, 246, 0.25);
  background: rgba(59, 130, 246, 0.08);
}

[data-theme="light"] .sci-home .sci-detail-content {
  color: #334155;
}

[data-theme="light"] .sci-home .sci-detail-content h3,
[data-theme="light"] .sci-home .sci-detail-content h4 {
  color: #0f172a;
}

[data-theme="light"] .sci-home .sci-detail-content p {
  color: #334155;
}

[data-theme="light"] .sci-home .sci-detail-content ul {
  color: #334155;
}

[data-theme="light"] .sci-home .sci-detail-content img {
  border-color: rgba(59, 130, 246, 0.12);
}

[data-theme="light"] .sci-home .sci-comment-avatar {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

[data-theme="light"] .sci-home .sci-comment-avatar-img {
  border-color: rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .sci-home .sci-comment-input {
  color: #1e293b;
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .sci-home .sci-comment-input:focus {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

[data-theme="light"] .sci-home .sci-comment-time {
  color: #3b82f6;
}

[data-theme="light"] .sci-home .sci-comment-text {
  color: #334155;
}

[data-theme="light"] .sci-home .sci-comment-item {
  border-bottom-color: rgba(59, 130, 246, 0.06);
}

[data-theme="light"] .sci-home .sci-empty-tip {
  color: #64748b;
  border-color: rgba(59, 130, 246, 0.1);
  background: rgba(59, 130, 246, 0.02);
}

[data-theme="light"] .sci-home .sci-empty-comments {
  color: #64748b;
}

[data-theme="light"] .sci-home .sci-modal-overlay.open {
  background: rgba(241, 245, 249, 0.75);
}

[data-theme="light"] .sci-home .sci-modal-container {
  border-color: rgba(59, 130, 246, 0.15);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .sci-home .sci-modal-btn.cancel-btn {
  color: #475569;
  background: rgba(59, 130, 246, 0.04);
  border-color: rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .sci-home .sci-modal-btn.confirm-btn {
  color: #ffffff;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
}

[data-theme="light"] .sci-home .sci-subscribe-btn {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.06);
  border-color: rgba(59, 130, 246, 0.18);
}

[data-theme="light"] .sci-home .sci-subscribe-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .sci-home .sci-subscribe-btn.subscribed {
  color: #059669;
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.18);
}

[data-theme="light"] .sci-home .sci-notification-option {
  color: #334155;
}

[data-theme="light"] .sci-home #editor {
  border-color: rgba(59, 130, 246, 0.15) !important;
  background: rgba(255, 255, 255, 0.8) !important;
}

[data-theme="light"] .sci-home .w-e-toolbar {
  background: rgba(59, 130, 246, 0.03) !important;
  border-bottom-color: rgba(59, 130, 246, 0.08) !important;
}

[data-theme="light"] .sci-home .w-e-toolbar .w-e-btn {
  color: #475569 !important;
}

[data-theme="light"] .sci-home .w-e-toolbar .w-e-btn:hover {
  background: rgba(59, 130, 246, 0.06) !important;
  color: #1e293b !important;
}

[data-theme="light"] .sci-home .w-e-text {
  color: #1e293b !important;
}

[data-theme="light"] .sci-home .sci-form-row .sci-form-item label {
  color: #3b82f6;
}

[data-theme="light"] .sci-home .sci-contribute-form .sci-form-item label {
  color: #059669;
}

[data-theme="light"] .sci-home .sci-contribute-form .sci-input,
[data-theme="light"] .sci-home .sci-contribute-form .sci-select {
  border-color: rgba(16, 185, 129, 0.15);
}

[data-theme="light"] .sci-home .sci-contribute-form .sci-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
}

[data-theme="light"] .sci-home .sci-contribute-form .sci-input:focus,
[data-theme="light"] .sci-home .sci-contribute-form .sci-select:focus {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.08);
}

[data-theme="light"] .sci-home .sci-contribute-form .sci-primary {
  background: linear-gradient(90deg, #10b981, #059669);
}

[data-theme="light"] .sci-home .sci-contribute-form #editor {
  border-color: rgba(16, 185, 129, 0.15) !important;
}

[data-theme="light"] .sci-home .sci-my-item .sci-tag-green {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.2);
}

[data-theme="light"] .sci-home .sci-my-item .sci-review-box {
  background: rgba(16, 185, 129, 0.03);
  border-color: rgba(16, 185, 129, 0.08);
}

[data-theme="light"] .sci-home .sci-my-item .sci-review-label {
  color: #059669;
}

[data-theme="light"] .sci-home .sci-my-item .sci-review-text {
  color: #334155;
}

[data-theme="light"] .sci-home .sci-my-item .sci-review-meta {
  color: #64748b;
}

[data-theme="light"] .sci-home .sci-writing-tip {
  border-color: rgba(16, 185, 129, 0.1);
  background: rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .sci-home .sci-writing-tip h4 {
  color: #059669;
}

[data-theme="light"] .sci-home .sci-writing-tip p {
  color: #64748b;
}

[data-theme="light"] .sci-sidebar {
  background: linear-gradient(180deg, rgba(240, 248, 255, 0.95), rgba(230, 240, 250, 0.9));
  border-right-color: rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .sci-brand,
[data-theme="light"] .sci-user-card {
  border-color: rgba(59, 130, 246, 0.12);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(245, 248, 255, 0.8));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .sci-brand strong {
  color: #1e293b;
}

[data-theme="light"] .sci-brand span,
[data-theme="light"] .sci-user-card span,
[data-theme="light"] .sci-user-card small {
  color: #3b82f6;
}

[data-theme="light"] .sci-user-card strong {
  color: #1e293b;
}

[data-theme="light"] .sci-user-card small {
  color: #64748b;
}

[data-theme="light"] .sci-user-card button {
  color: #ffffff;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

[data-theme="light"] .sci-nav button {
  color: #475569;
  background: rgba(59, 130, 246, 0.04);
  border-color: rgba(59, 130, 246, 0.08);
}

[data-theme="light"] .sci-nav button.active,
[data-theme="light"] .sci-nav button:hover {
  color: #1e40af;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.12), rgba(99, 102, 241, 0.08));
  border-color: rgba(59, 130, 246, 0.25);
}

[data-theme="light"] .sci-nav i {
  background: #3b82f6;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

[data-theme="light"] .sci-logo {
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.2);
}

.sci-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    padding: 4px 28px;
    text-align: center;
    background: rgba(5, 10, 22, 0.2);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(132, 224, 255, 0.1);
    font-size: 11px;
    border-radius: 10px;
}

[data-theme="light"] .sci-footer {
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(12px);
  border-top-color: rgba(0, 0, 0, 0.08);
  color: rgba(60, 60, 60, 0.7);
}

.sci-home .sci-shell {
  padding-bottom: 60px;
}

.sci-theme-toggle {
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 100;
  width: auto;
  height: 40px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(132, 224, 255, 0.18);
  background: rgba(13, 31, 49, 0.7);
  backdrop-filter: blur(12px);
  cursor: pointer;
  color: #b9d8e8;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.sci-theme-toggle:hover {
  border-color: rgba(113, 222, 255, 0.4);
  background: rgba(13, 31, 49, 0.85);
}

[data-theme="light"] .sci-theme-toggle {
  border-color: rgba(59, 130, 246, 0.2);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  color: #475569;
}

[data-theme="light"] .sci-theme-toggle:hover {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .sci-home {
  color: #1e293b;
  background:
    radial-gradient(circle at 18% 18%, rgba(59, 130, 246, 0.1), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(99, 102, 241, 0.08), transparent 26%),
    radial-gradient(circle at 72% 86%, rgba(16, 185, 129, 0.06), transparent 26%),
    linear-gradient(135deg, #eef2ff 0%, #f0f9ff 38%, #ecfdf5 100%);
}

[data-theme="light"] .sci-home::before {
  opacity: 0.5;
  background:
    linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
}

[data-theme="light"] .sci-login {
  background:
    radial-gradient(circle at 18% 18%, rgba(59, 130, 246, 0.1), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(99, 102, 241, 0.08), transparent 26%),
    radial-gradient(circle at 72% 86%, rgba(16, 185, 129, 0.06), transparent 26%),
    linear-gradient(135deg, #eef2ff 0%, #f0f9ff 38%, #ecfdf5 100%);
}

[data-theme="light"] .sci-login::before {
  opacity: 0.5;
  background:
    linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
}

[data-theme="light"] .sci-login-card {
  border-color: rgba(59, 130, 246, 0.12);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.88));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .sci-login-title {
  color: #0f172a;
}

[data-theme="light"] .sci-login-subtitle {
  color: #3b82f6;
}

[data-theme="light"] .sci-login .sci-form-item label {
  color: #3b82f6;
}

[data-theme="light"] .sci-login .sci-input {
  color: #1e293b;
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .sci-login .sci-input:focus {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

[data-theme="light"] .sci-login .sci-input::placeholder {
  color: rgba(100, 116, 139, 0.5);
}

[data-theme="light"] .sci-login-btn {
  color: #ffffff;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .sci-login-btn:hover {
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .sci-login-core {
  background:
    radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent 36%),
    conic-gradient(from 180deg, transparent, rgba(59, 130, 246, 0.2), transparent, rgba(99, 102, 241, 0.15), transparent);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.08);
}

[data-theme="light"] .sci-login-core-dot {
  background: radial-gradient(circle, #ffffff, #3b82f6 46%, #dbeafe 100%);
  box-shadow: 0 0 36px rgba(59, 130, 246, 0.4);
}

[data-theme="light"] .sci-login-logo {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .sci-login .sci-footer {
  background: transparent;
  color: rgba(100, 116, 139, 0.5);
  border-top-color: rgba(59, 130, 246, 0.08);
}

[data-theme="light"] .sci-hero {
  border-color: rgba(59, 130, 246, 0.12);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.88));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .sci-hero::before {
  background:
    radial-gradient(circle at 78% 44%, rgba(59, 130, 246, 0.08), transparent 22%),
    radial-gradient(circle at 58% 78%, rgba(16, 185, 129, 0.06), transparent 20%),
    linear-gradient(115deg, rgba(238, 242, 255, 0.5), rgba(240, 249, 255, 0.8));
}

[data-theme="light"] .sci-topbar strong {
  color: #0f172a;
}

[data-theme="light"] .sci-status {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.2);
}

[data-theme="light"] .sci-status b {
  background: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

[data-theme="light"] .sci-status span {
  color: #059669;
}

[data-theme="light"] .sci-copy h1 {
  color: #0f172a;
}

[data-theme="light"] .sci-lead {
  color: #475569;
}

[data-theme="light"] .sci-core {
  background:
    radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent 36%),
    conic-gradient(from 180deg, transparent, rgba(59, 130, 246, 0.2), transparent, rgba(99, 102, 241, 0.15), transparent);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.08);
}

[data-theme="light"] .orbit {
  border-color: rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .orbit-three {
  border-color: rgba(16, 185, 129, 0.2);
}

[data-theme="light"] .core-ring {
  border-color: rgba(59, 130, 246, 0.15);
  box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.1), 0 0 28px rgba(59, 130, 246, 0.1);
}

[data-theme="light"] .core-dot {
  background: radial-gradient(circle, #ffffff, #3b82f6 46%, #dbeafe 100%);
  box-shadow: 0 0 36px rgba(59, 130, 246, 0.4);
}

[data-theme="light"] .core-label {
  color: rgba(30, 41, 59, 0.5);
}

[data-theme="light"] .sci-metrics article {
  border-color: rgba(59, 130, 246, 0.1);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.85));
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .sci-metrics strong {
  color: #1e40af;
}

[data-theme="light"] .sci-metrics small {
  color: #64748b;
}

[data-theme="light"] .sci-panel {
  border-color: rgba(59, 130, 246, 0.1);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.85));
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .sci-panel.admin {
  background: linear-gradient(145deg, rgba(245, 243, 255, 0.9), rgba(248, 250, 252, 0.85));
  border-color: rgba(139, 92, 246, 0.15);
}

[data-theme="light"] .panel-head b {
  color: rgba(30, 41, 59, 0.12);
}

[data-theme="light"] .sci-panel h2,
[data-theme="light"] .sci-section-title h2 {
  color: #0f172a;
}

[data-theme="light"] .sci-panel p {
  color: #475569;
}

[data-theme="light"] .panel-visual {
  background:
    linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, rgba(238, 242, 255, 0.8), rgba(240, 249, 255, 0.7));
  background-size: 28px 28px, 28px 28px, auto;
  border-color: rgba(59, 130, 246, 0.1);
}

[data-theme="light"] .monthly-visual i {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.05));
  border-color: rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .monthly-visual i:nth-child(2) {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12), rgba(59, 130, 246, 0.05));
}

[data-theme="light"] .formula-lines span {
  color: #1e293b;
  background: rgba(59, 130, 246, 0.03);
  border-color: rgba(59, 130, 246, 0.1);
}

[data-theme="light"] .sci-feed,
[data-theme="light"] .sci-lab-card {
  border-color: rgba(59, 130, 246, 0.1);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.85));
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .sci-feed article {
  border-top-color: rgba(59, 130, 246, 0.06);
}

[data-theme="light"] .sci-feed time {
  color: #059669;
}

[data-theme="light"] .sci-feed h3 {
  color: #0f172a;
}

[data-theme="light"] .sci-feed p {
  color: #64748b;
}

[data-theme="light"] .telemetry span {
  color: #475569;
}

[data-theme="light"] .telemetry div::after {
  background: rgba(59, 130, 246, 0.06);
  border-color: rgba(59, 130, 246, 0.08);
}

[data-theme="light"] .telemetry b {
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .sci-wide-button {
  color: #ffffff;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
}

[data-theme="light"] .sci-kicker {
  color: #3b82f6;
}

[data-theme="light"] .sci-section-title span,
[data-theme="light"] .sci-metrics span,
[data-theme="light"] .panel-head span,
[data-theme="light"] .sci-topbar span {
  color: #3b82f6;
}

[data-theme="light"] .sci-metrics small {
  color: #64748b;
}

.sci-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  border: 1px solid rgba(127,220,255,0.2);
  background: transparent;
  color: inherit;
}
.sci-action-btn:hover {
  background: rgba(127,220,255,0.08);
  border-color: rgba(127,220,255,0.35);
}
.sci-action-btn.danger {
  border-color: rgba(231,76,60,0.3);
  color: #e74c3c;
}
.sci-action-btn.danger:hover {
  background: rgba(231,76,60,0.1);
  border-color: rgba(231,76,60,0.5);
}
.sci-action-btn.accent {
  border-color: rgba(127,220,255,0.3);
  background: rgba(127,220,255,0.08);
  color: #7fdcff;
}
.sci-action-btn.accent:hover {
  background: rgba(127,220,255,0.18);
  border-color: rgba(127,220,255,0.5);
}
.sci-action-btn.accent.active {
  background: rgba(127,220,255,0.2);
  border-color: #7fdcff;
}
.sci-action-btn.success {
  border-color: rgba(120,255,191,0.3);
  background: rgba(120,255,191,0.08);
  color: #78ffbf;
}
.sci-action-btn.success:hover {
  background: rgba(120,255,191,0.18);
  border-color: rgba(120,255,191,0.5);
}
.sci-action-btn.success.active {
  background: rgba(120,255,191,0.2);
  border-color: #78ffbf;
}
.sci-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
[data-theme="light"] .sci-action-btn:hover {
  background: rgba(59,130,246,0.06);
  border-color: rgba(59,130,246,0.35);
}
[data-theme="light"] .sci-action-btn.danger {
  border-color: rgba(231,76,60,0.25);
  color: #e74c3c;
}
[data-theme="light"] .sci-action-btn.danger:hover {
  background: rgba(231,76,60,0.06);
  border-color: rgba(231,76,60,0.4);
}
[data-theme="light"] .sci-action-btn.accent {
  border-color: rgba(59,130,246,0.3);
  background: rgba(59,130,246,0.06);
  color: #3b82f6;
}
[data-theme="light"] .sci-action-btn.accent:hover {
  background: rgba(59,130,246,0.12);
  border-color: rgba(59,130,246,0.5);
}
[data-theme="light"] .sci-action-btn.accent.active {
  background: rgba(59,130,246,0.15);
  border-color: #3b82f6;
}
[data-theme="light"] .sci-action-btn.success {
  border-color: rgba(5,150,105,0.3);
  background: rgba(5,150,105,0.06);
  color: #059669;
}
[data-theme="light"] .sci-action-btn.success:hover {
  background: rgba(5,150,105,0.12);
  border-color: rgba(5,150,105,0.5);
}
[data-theme="light"] .sci-action-btn.success.active {
  background: rgba(5,150,105,0.15);
  border-color: #059669;
}

.sci-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.sci-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.sci-modal-card {
  width: 480px;
  max-width: 92vw;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--sci-card-bg, #0d1b2a);
  border: 1px solid var(--sci-border, rgba(127,220,255,0.15));
  border-radius: 20px;
  padding: 0;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.sci-modal-overlay.open .sci-modal-card {
  transform: translateY(0) scale(1);
}
.sci-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--sci-border, rgba(127,220,255,0.1));
}
.sci-modal-header h3 {
  margin: 0;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sci-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--sci-border, rgba(127,220,255,0.2));
  background: transparent;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.sci-modal-close:hover {
  background: rgba(128,128,128,0.15);
}
.sci-modal-body {
  padding: 24px 28px;
}
.sci-modal-footer {
  display: flex;
  gap: 12px;
  padding: 16px 28px 24px;
  justify-content: flex-end;
}
.sci-modal-footer button {
  padding: 10px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.sci-modal-footer .btn-cancel {
  background: transparent;
  border: 1px solid var(--sci-border, rgba(127,220,255,0.25));
  color: inherit;
}
.sci-modal-footer .btn-cancel:hover {
  background: rgba(128,128,128,0.1);
}
.sci-modal-footer .btn-save {
  background: linear-gradient(90deg, #7fdcff, #78ffbf);
  border: none;
  color: #0d1b2a;
}
.sci-modal-footer .btn-save:hover {
  opacity: 0.9;
}
.sci-modal-footer .btn-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.sci-modal-footer .btn-danger {
  background: linear-gradient(90deg, #e74c3c, #c0392b);
  border: none;
  color: white;
}
.sci-modal-footer .btn-danger:hover {
  opacity: 0.9;
}
.sci-modal-user-info {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(127,220,255,0.06);
  border: 1px solid rgba(127,220,255,0.1);
  margin-bottom: 20px;
}
.sci-modal-user-info img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(127,220,255,0.3);
}
.sci-modal-user-info .avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(127,220,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #7fdcff;
  flex-shrink: 0;
}
.sci-modal-user-info .info-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sci-modal-user-info .info-text strong {
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sci-modal-user-info .info-text span {
  font-size: 13px;
  opacity: 0.6;
}
.sci-modal-field {
  margin-bottom: 18px;
}
.sci-modal-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.8;
  letter-spacing: 0.05em;
}
.sci-modal-field input[type="text"],
.sci-modal-field input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(127,220,255,0.2);
  border-radius: 10px;
  background: rgba(0,0,0,0.2);
  color: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.sci-modal-field input:focus {
  border-color: rgba(127,220,255,0.5);
  box-shadow: 0 0 0 3px rgba(127,220,255,0.1);
}
.sci-modal-field input::placeholder {
  color: rgba(185,216,232,0.4);
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}
.toggle-row span {
  font-size: 14px;
}
[data-theme="light"] .sci-modal-user-info {
  background: rgba(59,130,246,0.06);
  border-color: rgba(59,130,246,0.1);
}
[data-theme="light"] .sci-modal-user-info .avatar-placeholder {
  background: rgba(59,130,246,0.1);
  color: #3b82f6;
}
[data-theme="light"] .sci-modal-user-info .info-text strong {
  color: #0f172a;
}
[data-theme="light"] .sci-modal-user-info .info-text span {
  color: #64748b;
}
[data-theme="light"] .sci-modal-field label {
  color: #334155;
  opacity: 1;
}
[data-theme="light"] .sci-modal-field input[type="text"],
[data-theme="light"] .sci-modal-field input[type="email"] {
  background: rgba(241,245,249,0.8);
  border-color: rgba(0,0,0,0.1);
  color: #1e293b;
}
[data-theme="light"] .sci-modal-field input:focus {
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.08);
}
[data-theme="light"] .sci-modal-field input::placeholder {
  color: #94a3b8;
}
[data-theme="light"] .toggle-row span {
  color: #334155;
}
.sci-confirm-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
}
.sci-confirm-icon.warn {
  background: rgba(255,193,7,0.12);
  border: 2px solid rgba(255,193,7,0.3);
  color: #ffc107;
}
.sci-confirm-icon.danger {
  background: rgba(231,76,60,0.12);
  border: 2px solid rgba(231,76,60,0.3);
  color: #e74c3c;
}
.sci-confirm-icon.success {
  background: rgba(120,255,191,0.12);
  border: 2px solid rgba(120,255,191,0.3);
  color: #78ffbf;
}
.sci-confirm-icon.info {
  background: rgba(127,220,255,0.12);
  border: 2px solid rgba(127,220,255,0.3);
  color: #7fdcff;
}
.sci-confirm-title {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.sci-confirm-desc {
  text-align: center;
  font-size: 14px;
  opacity: 0.65;
  line-height: 1.6;
  margin-bottom: 4px;
}
.sci-confirm-highlight {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-top: 8px;
}
.sci-confirm-highlight.pwd {
  background: rgba(127,220,255,0.1);
  border: 1px solid rgba(127,220,255,0.2);
  color: #7fdcff;
}
[data-theme="light"] .sci-modal-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
  border-color: rgba(59,130,246,0.12);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.8);
  color: #1e293b;
}
[data-theme="light"] .sci-modal-header {
  border-bottom-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .sci-modal-header h3 {
  color: #0f172a;
}
[data-theme="light"] .sci-modal-close {
  border-color: rgba(0,0,0,0.1);
  color: #475569;
}
[data-theme="light"] .sci-modal-close:hover {
  background: rgba(0,0,0,0.05);
}
[data-theme="light"] .sci-modal-body {
  color: #334155;
}
[data-theme="light"] .sci-modal-footer .btn-cancel {
  border-color: rgba(0,0,0,0.12);
  color: #475569;
}
[data-theme="light"] .sci-modal-footer .btn-cancel:hover {
  background: rgba(0,0,0,0.04);
}
[data-theme="light"] .sci-modal-footer .btn-save {
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  color: white;
}
[data-theme="light"] .sci-confirm-icon.warn {
  background: rgba(245,158,11,0.1);
  border-color: rgba(245,158,11,0.3);
  color: #d97706;
}
[data-theme="light"] .sci-confirm-icon.danger {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.3);
  color: #dc2626;
}
[data-theme="light"] .sci-confirm-icon.success {
  background: rgba(5,150,105,0.1);
  border-color: rgba(5,150,105,0.3);
  color: #059669;
}
[data-theme="light"] .sci-confirm-icon.info {
  background: rgba(59,130,246,0.1);
  border-color: rgba(59,130,246,0.3);
  color: #3b82f6;
}
[data-theme="light"] .sci-confirm-title {
  color: #0f172a;
}
[data-theme="light"] .sci-confirm-desc {
  color: #64748b;
  opacity: 1;
}
[data-theme="light"] .sci-confirm-highlight.pwd {
  background: rgba(59,130,246,0.08);
  border-color: rgba(59,130,246,0.2);
  color: #3b82f6;
}

.sci-checkbox {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
}
.sci-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.sci-checkbox .checkmark {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 2px solid rgba(127,220,255,0.3);
  background: rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.sci-checkbox .checkmark::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid #0d1b2a;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s;
  margin-top: -2px;
}
.sci-checkbox input:checked + .checkmark {
  background: #7fdcff;
  border-color: #7fdcff;
}
.sci-checkbox input:checked + .checkmark::after {
  transform: rotate(45deg) scale(1);
}
.sci-checkbox:hover .checkmark {
  border-color: rgba(127,220,255,0.5);
}
[data-theme="light"] .sci-checkbox .checkmark {
  border-color: rgba(59,130,246,0.3);
  background: rgba(255,255,255,0.6);
}
[data-theme="light"] .sci-checkbox input:checked + .checkmark {
  background: #3b82f6;
  border-color: #3b82f6;
}
[data-theme="light"] .sci-checkbox input:checked + .checkmark::after {
  border-color: white;
}
[data-theme="light"] .sci-checkbox:hover .checkmark {
  border-color: rgba(59,130,246,0.5);
}

.sci-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  cursor: pointer;
  display: inline-block;
  flex-shrink: 0;
}
.sci-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.sci-toggle .slider {
  position: absolute;
  inset: 0;
  background: rgba(128,128,128,0.3);
  border-radius: 12px;
  transition: background 0.2s;
}
.sci-toggle .slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}
.sci-toggle input:checked + .slider {
  background: #7fdcff;
}
.sci-toggle input:checked + .slider::before {
  transform: translateX(20px);
}
[data-theme="light"] .sci-toggle input:checked + .slider {
  background: #3b82f6;
}
}
[data-theme="light"] .sci-toggle input:checked + .slider {
  background: #3b82f6;
}
