@charset "UTF-8";
/* =========================
   TOKENS
   ========================= */
/* spacing scale used in current layout */
/* =========================
   RESET + BASE TYPE
   ========================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale; }

html {
  background: #f8f8f8;
  min-height: 100vh; }

body {
  height: 100%;
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  background: transparent;
  color: #1c1c1e;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  opacity: 0;
  animation: fadeIn .6s ease forwards;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right); }

@keyframes fadeIn {
  to {
    opacity: 1; } }

@keyframes clickBounce {
  0% {
    transform: scale(0.98); }
  50% {
    transform: scale(1.01); }
  100% {
    transform: scale(1); } }

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  color: inherit;
  margin-bottom: .5rem; }

p {
  color: #6e6e73;
  margin-bottom: 1rem;
  font-size: 1.05rem; }

a {
  color: #007aff;
  text-decoration: none;
  transition: color .18s ease; }
  a:hover {
    color: #0062cc; }

/* roles */
.title, h1.title {
  color: #1c1c1e;
  font-weight: 700;
  font-size: clamp(1.45rem, calc(1.4vw + .9rem), 1.9rem);
  line-height: 1.15;
  letter-spacing: -.01em; }

.subtitle, h2.subtitle {
  color: #1c1c1e;
  font-weight: 500;
  font-size: clamp(1.05rem, calc(1.1vw + .8rem), 1.35rem);
  line-height: 1.2;
  letter-spacing: -.005em;
  opacity: .98; }

.text {
  color: #6e6e73;
  font-size: 1.05rem; }

.subtext {
  color: #8e8e93;
  font-size: .98rem; }

.footnote {
  color: #a1a1a6;
  font-size: .85rem;
  line-height: 1.4; }

/* =========================
   LINKS (incl. footer)
   ========================= */
.footer-link,
.site-footer-area a {
  color: inherit !important;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.3;
  text-decoration-color: currentColor;
  text-underline-offset: 2px;
  transition: color .18s ease;
  outline: none;
  outline-color: transparent;
  -webkit-tap-highlight-color: transparent; }

.site-footer-area a:visited {
  color: inherit !important; }

.footer-link:hover,
.site-footer-area a:hover {
  text-decoration: underline;
  color: color-mix(in srgb, currentColor 88%, white 12%); }

.footer-link:focus,
.site-footer-area a:focus {
  outline: none;
  outline-color: transparent; }

.footer-link:focus-visible,
.site-footer-area a:focus-visible {
  text-decoration: underline;
  color: color-mix(in srgb, currentColor 88%, white 12%);
  box-shadow: none; }

/* =========================
   BUTTONS + TOOLTIP
   ========================= */
.button {
  background: #007aff;
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: .75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative; }
  .button:not(:disabled):not(.disabled):active {
    animation: clickBounce .3s ease; }
  .button:disabled, .button.disabled {
    background: #ccc;
    color: #777;
    cursor: not-allowed; }

.button:not(:disabled):not(.disabled):hover {
  background: #006be0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }

.button.small {
  padding: .4rem .9rem;
  font-size: .85rem;
  border-radius: 12px; }

.button.ghost {
  background: transparent;
  color: #007aff;
  box-shadow: none; }
  .button.ghost:not(:disabled):not(.disabled):hover {
    background: rgba(0, 122, 255, 0.08);
    transform: none;
    box-shadow: none; }
  .button.ghost:not(:disabled):not(.disabled):active {
    animation: clickBounce .3s ease; }

.button.red {
  background: #ff3b30; }
  .button.red:hover {
    background: #ff1e11;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }

.button.green {
  background: #34c759; }
  .button.green:hover {
    background: #2eaf4e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }

.button.blue {
  background: #007aff; }
  .button.blue:hover {
    background: #006be0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }

/* tooltip (custom, hover-only, above button) */
.tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(17, 17, 17, 0.95);
  color: #fff;
  padding: .35rem .55rem;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
  transition: opacity .14s ease,transform .14s ease,visibility .14s ease;
  z-index: 1000; }

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(17, 17, 17, 0.95); }

.button:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0); }

/* =========================
   TAGS / BADGES / RANK
   ========================= */
.tag {
  display: inline-block;
  padding: .3rem .7rem;
  font-size: .75rem;
  font-weight: 500;
  border-radius: 999px;
  text-transform: uppercase;
  background: #e0e0e0;
  color: #333;
  letter-spacing: .5px;
  user-select: none; }

.tag.green {
  background: #d4f8e8;
  color: #0a7f42; }

.tag.red {
  background: #ffe5e5;
  color: #b00020; }

.tag.blue {
  background: #e0f0ff;
  color: #005bb5; }

.tag.yellow {
  background: #fef3b3;
  color: #8a6d00; }

.tag.orange {
  background: #ffdfc2;
  color: #c24100; }

.tag.disabled {
  background: #f0f0f0;
  color: #999; }

.rank-tag {
  display: inline-block;
  padding: .2rem .4rem;
  font-size: .8rem;
  font-weight: 500;
  border-radius: 7px;
  text-transform: uppercase;
  background: #9d9d9d;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: #fff;
  user-select: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
  cursor: default; }

.rank-tag.admin {
  background: #ff2020;
  color: #fff; }

.rank-tag[data-tooltip]::after, .rank-tag[data-tooltip]::before {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .2s ease-out,transform .2s ease-out; }

.rank-tag[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: .2rem .5rem;
  border-radius: 4px;
  white-space: nowrap;
  font-size: .75rem;
  z-index: 1000;
  opacity: 1;
  visibility: visible; }

.rank-tag[data-tooltip]:hover::before {
  content: "";
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
  z-index: 1000;
  opacity: 1;
  visibility: visible; }

/* generic badge palette */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .22rem .5rem;
  border-radius: 7px;
  font-size: .78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .3px;
  line-height: 1;
  user-select: none;
  white-space: nowrap; }

.badge.admin {
  background: #ff2020;
  color: #fff; }

.badge.white {
  background: #fff;
  color: #1c1c1e;
  border: 1px solid rgba(0, 0, 0, 0.08); }

.badge.gray {
  background: #9d9d9d;
  color: #fff; }

.badge.green {
  background: #34c759;
  color: #0b1f12; }

.badge.orange {
  background: #ff9f0a;
  color: #1c1c1e; }

.badge.yellow {
  background: #ffd60a;
  color: #1c1c1e; }

.badge.red {
  background: #ff3b30;
  color: #fff; }

.badge.purple {
  background: #bf5af2;
  color: #1c1c1e; }

.badge.blue {
  background: #0a84ff;
  color: #fff; }

.badge.sm {
  font-size: .72rem;
  padding: .18rem .42rem;
  border-radius: 6px; }

/* =========================
   CARDS
   ========================= */
.card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px) saturate(120%);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  width: 100%;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  padding: clamp(1rem, 1.6vw, 1.5rem); }

.card--tight {
  padding: clamp(0.75rem, 1.2vw, 1rem); }

.card--flush {
  padding: 0; }

.card--ghost {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none; }

.card--inset {
  border-radius: calc(16px - 6px);
  overflow: hidden; }

.card > .card-header {
  margin-bottom: 0.75rem;
  font-weight: 500; }

.card > .card-footer {
  margin-top: 0.75rem;
  opacity: .9; }

/* Make cards fill their grid cell inside bento layouts */
.bento .card, .bento-grid .card {
  max-width: none;
  width: 100%; }

/* project card (unchanged) */
.project-card {
  color: #1c1c1e !important;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px) saturate(120%);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  opacity: 1;
  transform: translateY(0);
  transition: all .2s ease; }
  .project-card h2 {
    margin-bottom: .5rem;
    color: inherit; }
  .project-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2); }
  .project-card.visible {
    opacity: 1;
    transform: translateY(0); }

/* =========================
   FORMS
   ========================= */
input, textarea, select {
  width: 100%;
  padding: .85rem 1rem;
  font-size: 1rem;
  border: 1px solid #c2c2c5;
  border-radius: 16px;
  background: #fff;
  color: #1c1c1e;
  margin-bottom: 1rem;
  transition: border 0.3s ease, background-color 0.3s ease; }
  input:focus, textarea:focus, select:focus {
    border-color: #007aff;
    outline: none; }
  input:disabled, textarea:disabled, select:disabled {
    background: #f2f2f2;
    color: #aaa; }

.select {
  position: relative;
  display: inline-block;
  width: 100%; }
  .select select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff;
    color: #1c1c1e;
    padding-right: 2.5rem; }
  .select::after {
    content: "\f282";
    font-family: "bootstrap-icons";
    position: absolute;
    right: .9rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    pointer-events: none;
    color: #8e8e93;
    opacity: .9; }

/* =========================
   LAYOUT: NAVBAR / MAIN / FOOTER
   ========================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem; }

.flex {
  display: flex;
  gap: 1rem; }
  .flex.column {
    flex-direction: column; }
  .flex.center {
    justify-content: center;
    align-items: center; }
  .flex.space-between {
    justify-content: space-between; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  background: color-mix(in srgb, rgba(30, 30, 32, 0.6) 90%, transparent) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: .75rem 1.25rem; }
  .navbar .title {
    display: flex;
    align-items: center;
    gap: .5rem; }
  .navbar .tag {
    transform: translateY(1px); }

.navbar {
  padding-left: clamp(1rem, 3.2vw, 1.75rem);
  padding-right: clamp(1rem, 3.2vw, 1.75rem); }

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px; }
  .switch input {
    opacity: 0;
    width: 0;
    height: 0; }
  .switch .slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    transition: .4s;
    border-radius: 28px; }
  .switch .slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background: #fff;
    transition: .4s;
    border-radius: 50%; }
  .switch input:checked + .slider {
    background: #007aff; }
  .switch input:checked + .slider::before {
    transform: translateX(20px); }

/* demo toggles */
.toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px; }

.toggle input {
  opacity: 0;
  width: 0;
  height: 0; }

.toggle .slider {
  position: absolute;
  inset: 0;
  background: #c9c9ce;
  border-radius: 28px;
  transition: background 140ms ease; }

.toggle .knob {
  position: absolute;
  left: 4px;
  bottom: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 140ms ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }

.toggle input:checked ~ .slider {
  background: #34c759; }

.toggle input:checked ~ .knob {
  transform: translateX(20px); }

.toggle.sm {
  width: 40px;
  height: 24px; }

.toggle.sm .knob {
  width: 16px;
  height: 16px;
  bottom: 4px;
  left: 4px; }

.toggle.sm input:checked ~ .knob {
  transform: translateX(16px); }

.toggle.lg {
  width: 60px;
  height: 34px; }

.toggle.lg .knob {
  width: 26px;
  height: 26px;
  bottom: 4px;
  left: 4px; }

.toggle.lg input:checked ~ .knob {
  transform: translateX(26px); }

/* MAIN CONTENT — ensure full width in the flex layout */
.main-content {
  flex: 1 0 auto;
  align-self: stretch;
  /* prevent shrink-to-fit in flex column */
  width: 100%;
  /* fill row */
  max-width: none;
  /* no intrinsic limit */
  padding-left: clamp(1rem, 3.2vw, 1.75rem);
  padding-right: clamp(1rem, 3.2vw, 1.75rem);
  padding-top: clamp(0.75rem, 1.2vw, 1.25rem);
  padding-bottom: clamp(1rem, 3.6vw, 2rem);
  margin-top: 0.75rem; }

/* center width-constrained sections inside main */
.main-content > .bento-grid,
.main-content > .table,
.main-content > .list {
  max-width: 1200px;
  margin-inline: auto; }

/* Footer */
.site-footer-area {
  flex-shrink: 0;
  width: 100%;
  padding: 1.5rem 1rem 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-left: clamp(1rem, 3.2vw, 1.75rem);
  padding-right: clamp(1rem, 3.2vw, 1.75rem); }
  .site-footer-area .footer-columns {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: center !important;
    min-height: 72px; }
  .site-footer-area .footer-column-message {
    min-width: 0;
    align-self: center !important; }
  .site-footer-area .footer-column-links {
    justify-self: center;
    display: grid !important;
    grid-auto-flow: column;
    gap: 3.5rem;
    align-self: center !important; }
  .site-footer-area .footer-links-col {
    display: grid;
    gap: .45rem;
    font-size: .95rem; }
  .site-footer-area .footer-links-col a {
    line-height: 1.9; }
  .site-footer-area .footer-column-login {
    justify-self: end;
    display: flex;
    align-items: center;
    align-self: center !important; }
  .site-footer-area .footnote {
    font-size: .8rem;
    opacity: .7; }
  .site-footer-area .login-badge .avatar {
    transform: translateY(1px); }

@media (max-width: 820px) {
  .site-footer-area .footer-columns {
    grid-template-columns: 1fr;
    justify-items: start; }
  .site-footer-area .footer-column-links {
    justify-self: start;
    gap: 2rem; }
  .site-footer-area .footer-column-login {
    justify-self: start;
    margin-top: .5rem; } }

/* =========================
   LISTS / TABLE / MISC
   ========================= */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
  font-size: .9rem;
  font-weight: 500;
  transition: background-color 140ms ease,transform 140ms ease;
  cursor: pointer;
  user-select: none; }
  .pill:hover {
    transform: translateY(-1px); }
  .pill.active {
    background: rgba(0, 122, 255, 0.15);
    color: #007aff; }

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .95rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
  .table th, .table td {
    padding: .55rem .8rem;
    text-align: left;
    vertical-align: middle; }
  .table thead th {
    font-weight: 500;
    color: #1c1c1e;
    background: rgba(0, 0, 0, 0.035);
    border-bottom: 1px solid rgba(0, 0, 0, 0.09); }
  .table tbody tr + tr td {
    border-top: 1px solid rgba(0, 0, 0, 0.06); }
  .table.table-compact th, .table.table-compact td {
    padding: .45rem .65rem;
    font-size: .9rem; }

.list {
  display: grid;
  gap: .5rem; }

.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem .9rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04); }

kbd {
  display: inline-block;
  padding: .15rem .4rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  font-size: .85rem;
  line-height: 1;
  color: inherit; }

.progress {
  height: 6px;
  width: 100%;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden; }

.progress > .bar {
  height: 100%;
  width: 0;
  background: #007aff;
  transition: width 200ms ease; }

/* Toast banner */
.banner {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.5rem;
  min-width: 280px;
  max-width: 90vw;
  border-radius: .75rem;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  background: #2b2b2b;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  flex-direction: column;
  overflow: hidden;
  transition: opacity .3s ease,transform .3s ease;
  transform: translate(-50%, -20px); }

.banner.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0); }

.banner.hide {
  opacity: 0;
  transform: translate(-50%, -10px); }

.banner-message {
  display: flex;
  align-items: center;
  gap: .5rem; }

.banner-progress {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  transition: width linear; }

/* =========================
   AVATAR & LOGIN BADGE
   ========================= */
.login-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 40px;
  line-height: 1; }

.login-badge .separator {
  margin: 0 .25rem;
  opacity: .5; }

.login-badge-meta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-width: 0; }

.login-badge .username {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 18ch; }

.avatar {
  display: inline-block;
  flex: 0 0 auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 50%;
  background: #2a2a2a;
  border: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }

.avatar-sm {
  width: 28px;
  height: 28px; }

.avatar-md {
  width: 40px;
  height: 40px; }

.avatar-lg {
  width: 56px;
  height: 56px; }

.avatar-fallback {
  display: inline-grid;
  place-items: center;
  font-size: .95rem;
  color: rgba(255, 255, 255, 0.8); }

.site-footer-area .footer-column-login {
  justify-self: end;
  align-self: start; }

.site-footer-area .logout-button {
  margin-left: .25rem; }

/* =========================
   BENTO GRID (corrected)
   ========================= */
/* 12-col utility grid (and alias) */
.bento, .bento-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.2vw, 1rem);
  justify-items: stretch;
  align-items: start; }

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

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

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

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

/* span helpers */
.span-1 {
  grid-column: span 1; }

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

.span-3 {
  grid-column: span 3; }

.span-4 {
  grid-column: span 4; }

.span-5 {
  grid-column: span 5; }

.span-6 {
  grid-column: span 6; }

.span-7 {
  grid-column: span 7; }

.span-8 {
  grid-column: span 8; }

.span-9 {
  grid-column: span 9; }

.span-10 {
  grid-column: span 10; }

.span-11 {
  grid-column: span 11; }

.span-12 {
  grid-column: 1 / -1; }

/* full width */
/* row-span helpers */
.row-span-1 {
  grid-row: span 1 / span 1; }

.row-span-2 {
  grid-row: span 2 / span 2; }

.row-span-3 {
  grid-row: span 3 / span 3; }

/* gap modifiers used in templates */
.bento-grid.gap-12 {
  gap: 0.75rem; }

.bento-grid.gap-16 {
  gap: 1rem; }

.bento-grid.gap-24 {
  gap: 1.5rem; }

.bento-item {
  min-width: 0; }

/* aspect helpers */
.aspect-16x9 {
  aspect-ratio: 16/9; }

.aspect-4x3 {
  aspect-ratio: 4/3; }

.aspect-1x1 {
  aspect-ratio: 1/1; }

/* responsive (no colon-class selectors) */
@media (max-width: 1024px) {
  .bento, .bento-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bento > .bento-item, .bento-grid > .bento-item {
    grid-column: 1 / -1; } }

@media (max-width: 720px) {
  .bento, .bento-grid {
    grid-template-columns: 1fr; }
  .bento > .bento-item, .bento-grid > .bento-item {
    grid-column: 1 / -1; } }

/* =========================
   DARK THEME
   ========================= */
html[data-theme='dark'] {
  background-color: #0c0c0d !important; }

[data-theme='dark'] body {
  color: #dadada;
  background-color: transparent !important; }

[data-theme='dark'] .title, [data-theme='dark'] h1.title, [data-theme='dark'] .subtitle, [data-theme='dark'] h2.subtitle {
  color: #ffffff; }

[data-theme='dark'] .text {
  color: #dadada; }

[data-theme='dark'] .subtext {
  color: #9b9ba1; }

[data-theme='dark'] .footnote {
  color: #7a7a80; }

[data-theme='dark'] p {
  color: #dadada; }

[data-theme='dark'] a {
  color: #4da2ff; }
  [data-theme='dark'] a:hover {
    color: #99caff; }

[data-theme='dark'] .card {
  background: rgba(30, 30, 32, 0.6);
  backdrop-filter: blur(4px) saturate(110%);
  box-shadow: 0 1px 3px rgba(255, 255, 255, 0.05); }

[data-theme='dark'] input, [data-theme='dark'] textarea, [data-theme='dark'] select {
  background: rgba(30, 30, 32, 0.6);
  color: #dadada;
  border: 1px solid #818188; }
  [data-theme='dark'] input:focus, [data-theme='dark'] textarea:focus, [data-theme='dark'] select:focus {
    border-color: #3395ff; }

[data-theme='dark'] .select select {
  background: rgba(30, 30, 32, 0.6);
  color: #dadada; }

[data-theme='dark'] .select::after {
  color: #9b9ba1; }

[data-theme='dark'] .navbar {
  background: rgba(30, 30, 32, 0.6);
  box-shadow: 0 1px 2px rgba(255, 255, 255, 0.05); }

[data-theme='dark'] .button {
  background: #007aff; }
  [data-theme='dark'] .button:disabled, [data-theme='dark'] .button.disabled {
    background: #444;
    color: #999;
    cursor: not-allowed; }
  [data-theme='dark'] .button:hover {
    background: #006be0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05); }

[data-theme='dark'] .button.red {
  background: #ff453a; }
  [data-theme='dark'] .button.red:hover {
    background: #ff281b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05); }

[data-theme='dark'] .button.green {
  background: #30d158; }
  [data-theme='dark'] .button.green:hover {
    background: #29b94d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05); }

[data-theme='dark'] .button.blue {
  background: #0a84ff; }
  [data-theme='dark'] .button.blue:hover {
    background: #006be0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05); }

[data-theme='dark'] .button.ghost {
  background: transparent;
  color: #4da2ff;
  box-shadow: none; }
  [data-theme='dark'] .button.ghost:hover {
    background: rgba(10, 132, 255, 0.1);
    transform: none;
    box-shadow: none; }

[data-theme='dark'] .tag {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  color: #dadada; }

[data-theme='dark'] .tag.green {
  background: rgba(52, 199, 89, 0.2);
  color: #30d158; }

[data-theme='dark'] .tag.red {
  background: rgba(255, 69, 58, 0.2);
  color: #ff453a; }

[data-theme='dark'] .tag.blue {
  background: rgba(10, 132, 255, 0.2);
  color: #0a84ff; }

[data-theme='dark'] .tag.yellow {
  background: rgba(255, 214, 10, 0.18);
  color: #f0c420; }

[data-theme='dark'] .tag.orange {
  background: rgba(255, 159, 10, 0.18);
  color: #ff7f11; }

[data-theme='dark'] .tag.disabled {
  background: rgba(255, 255, 255, 0.05);
  color: #888; }

[data-theme='dark'] .project-card {
  background: rgba(30, 30, 32, 0.6);
  backdrop-filter: blur(4px) saturate(110%);
  box-shadow: 0 1px 3px rgba(255, 255, 255, 0.05);
  color: #dadada !important; }
  [data-theme='dark'] .project-card a {
    color: inherit; }

[data-theme='dark'] .pill {
  background: rgba(255, 255, 255, 0.08); }

[data-theme='dark'] .pill.active {
  background: rgba(10, 132, 255, 0.18);
  color: #3395ff; }

[data-theme='dark'] .list-row {
  background: rgba(255, 255, 255, 0.06); }

[data-theme='dark'] .progress {
  background: rgba(255, 255, 255, 0.12); }

[data-theme='dark'] .segmented {
  background: rgba(255, 255, 255, 0.08); }

[data-theme='dark'] .segment.active {
  background: rgba(10, 132, 255, 0.18);
  color: #3395ff; }

[data-theme='dark'] .table {
  background: rgba(30, 30, 32, 0.6);
  box-shadow: 0 1px 3px rgba(255, 255, 255, 0.05); }
  [data-theme='dark'] .table thead th {
    color: #dadada;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  [data-theme='dark'] .table tbody tr + tr td {
    border-top: 1px solid rgba(255, 255, 255, 0.07); }

[data-theme='dark'] .avatar {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }

html[data-theme='dark'] .navbar {
  background: color-mix(in srgb, rgba(30, 30, 32, 0.6) 100%, transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

html[data-theme='dark'] .site-footer-area {
  border-top: 1px solid rgba(255, 255, 255, 0.1); }

[data-theme='dark'] .tooltip {
  background: rgba(28, 28, 30, 0.98);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); }

[data-theme='dark'] .tooltip::after {
  border-top-color: rgba(28, 28, 30, 0.98); }

.error-message {
  background-color: rgba(255, 65, 65, 0.1);
  color: #ff3c3c;
  border-color: red;
  border-width: 1px;
  border-radius: 5px;
  border-style: solid;
  padding: 10px;
  margin: 10px; }

/* =========================
   ACCESSIBILITY / PREFERENCES
   ========================= */
@media (max-width: 720px) {
  .main-content {
    padding-left: 1rem;
    padding-right: 1rem; }
  .bento-grid {
    gap: 1rem; }
  .card {
    padding: 1rem; }
  .card--tight {
    padding: 0.75rem; } }

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important; } }
