@font-face {
  font-family: "Huninn";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src:
    local("Huninn"),
    local("jf open 粉圓"),
    url("/fonts/huninn-chinese-traditional-400-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --page: #f7f9fc;
  --material-ultra-thin: rgba(255, 255, 255, 0.22);
  --material-thin: rgba(255, 255, 255, 0.34);
  --material-strong: rgba(255, 255, 255, 0.5);
  --glass: var(--material-thin);
  --glass-strong: var(--material-strong);
  --glass-edge: rgba(255, 255, 255, 0.52);
  --glass-edge-soft: rgba(255, 255, 255, 0.18);
  --liquid-edge: rgba(255, 255, 255, 0.82);
  --liquid-glow: rgba(255, 255, 255, 0.66);
  --liquid-shadow: rgba(101, 116, 139, 0.12);
  --text: #111827;
  --muted: #697586;
  --subtle: #8a94a6;
  --line: rgba(17, 24, 39, 0.1);
  --line-strong: rgba(17, 24, 39, 0.15);
  --primary: #0a84ff;
  --primary-strong: #0066d6;
  --cyan: #37d5ff;
  --mint: #5db7ff;
  --rose: #ff8fb3;
  --danger: #d92d20;
  --danger-bg: rgba(255, 255, 255, 0.34);
  --success: #0a84ff;
  --success-bg: rgba(232, 244, 255, 0.84);
  --progress: #175cd3;
  --progress-bg: rgba(232, 241, 255, 0.82);
  --focus: #0a84ff;
  --radius-panel: 30px;
  --radius-card: 24px;
  --radius-control: 18px;
  --radius-media: 22px;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --spring: 240ms cubic-bezier(0.22, 1.28, 0.36, 1);
  --liquid-spring: 360ms cubic-bezier(0.19, 1.2, 0.22, 1);
  --page-block-space: clamp(36px, 6vw, 76px);
  --page-inline-space: 24px;
  --section-gap: clamp(24px, 3.5vw, 36px);
  --panel-block-space: clamp(36px, 5vw, 56px);
  --panel-inline-space: clamp(32px, 4.5vw, 56px);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  position: relative;
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.92) 7%, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0) 78%, rgba(255, 255, 255, 0.94) 93%, #ffffff 100%),
    radial-gradient(circle at 12% 14%, rgba(75, 97, 255, 0.28), transparent 19rem),
    radial-gradient(circle at 48% 8%, rgba(255, 255, 255, 0.86), transparent 18rem),
    radial-gradient(circle at 84% 16%, rgba(185, 138, 255, 0.22), transparent 22rem),
    radial-gradient(circle at 18% 70%, rgba(55, 213, 255, 0.24), transparent 24rem),
    radial-gradient(circle at 72% 88%, rgba(255, 143, 179, 0.22), transparent 25rem),
    linear-gradient(135deg, #fbfdff 0%, #eef7ff 38%, #f8f1ff 72%, #ffffff 100%);
  color: var(--text);
  font-family: "Huninn", "jf open 粉圓", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.92) 8%, rgba(255, 255, 255, 0) 24%, rgba(255, 255, 255, 0) 76%, rgba(255, 255, 255, 0.94) 92%, #ffffff 100%),
    radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.7), transparent 16rem),
    radial-gradient(circle at 64% 44%, rgba(10, 132, 255, 0.08), transparent 18rem),
    linear-gradient(120deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 36%),
    linear-gradient(155deg, rgba(10, 132, 255, 0.08), rgba(255, 255, 255, 0) 42%);
}

button,
input,
a,
select,
textarea {
  font-family: inherit;
  font: inherit;
}

button,
.download,
.file-field,
#linkInput,
.auth-input,
.model-option {
  min-height: 54px;
}

button:focus-visible,
input:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 0;
}

.model-option:has(input:focus-visible) {
  outline: 0;
}

.continuous {
  overflow: hidden;
}

input.continuous,
select.continuous,
textarea.continuous {
  overflow: visible;
}

.liquid-control {
  --spot-x: 50%;
  --spot-y: 50%;
  position: relative;
  isolation: isolate;
}

.liquid-control::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.28) 22%, transparent 46%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.42), transparent 48%, rgba(255, 255, 255, 0.18));
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 220ms ease, transform var(--liquid-spring);
}

.liquid-control:hover::before,
.liquid-control:focus-visible::before,
.field:focus-within .liquid-control::before,
.model-option:has(input:focus-visible)::before {
  opacity: 1;
  transform: scale(1);
}

.liquid-control:not(.model-option)::after {
  position: absolute;
  top: var(--spot-y);
  left: var(--spot-x);
  z-index: 1;
  width: 11px;
  height: 11px;
  pointer-events: none;
  content: "";
  border: 0.5px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.36) 36%, rgba(255, 255, 255, 0.08) 72%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    0 7px 18px rgba(98, 113, 134, 0.18);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.42);
  transition: opacity 160ms ease, transform var(--liquid-spring);
}

.field:focus-within .liquid-control:not(.model-option)::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: liquid-cursor-pulse 1600ms ease-in-out infinite;
}

@keyframes liquid-cursor-pulse {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.14);
  }
}

@supports (corner-shape: squircle) {
  .continuous,
  .entry,
  .projects,
  .dialog,
  #linkInput,
  .auth-input,
  .file-field strong,
  .model-option,
  .auth-panel,
  .member-bar,
  .admin-panel,
  .usage-pill,
  button,
  .download,
  .project-card,
  .project-open,
  video {
    corner-shape: squircle;
  }
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: var(--section-gap);
  width: min(1120px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: var(--page-block-space) var(--page-inline-space);
  align-items: start;
}

.entry,
.projects,
.admin-panel,
.member-data-panel,
.dialog {
  border: 0.5px solid var(--glass-edge);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.16) 42%, rgba(255, 255, 255, 0.3)),
    var(--material-ultra-thin);
  background-clip: padding-box;
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.88),
    inset 0 -0.5px 0 var(--glass-edge-soft),
    inset 0 22px 42px rgba(255, 255, 255, 0.12),
    inset 0 -28px 48px rgba(10, 132, 255, 0.055),
    var(--shadow);
  -webkit-backdrop-filter: blur(42px) saturate(1.8) contrast(1.04);
  backdrop-filter: blur(42px) saturate(1.8) contrast(1.04);
}

.side-stack {
  display: grid;
  gap: var(--section-gap);
  align-content: start;
}

.entry {
  position: relative;
  padding: var(--panel-block-space) var(--panel-inline-space);
  overflow: hidden;
}

.entry::before {
  display: none;
}

.projects,
.admin-panel,
.member-data-panel {
  padding: var(--panel-block-space) var(--panel-inline-space);
}

.member-data-view {
  display: grid;
  width: min(760px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: var(--page-block-space) var(--page-inline-space);
  align-items: start;
}

.member-data-panel {
  display: grid;
  gap: var(--section-gap);
}

.member-data-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.member-data-header h1 {
  min-width: 0;
}

.icon-button {
  display: inline-grid;
  flex: 0 0 54px;
  width: 54px;
  min-width: 54px;
  min-height: 54px;
  place-items: center;
  border-radius: 999px;
  padding: 0;
}

.home-icon {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.title-row {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(28px, 5vw, 46px);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  position: relative;
  max-width: 680px;
  color: var(--text);
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
  white-space: nowrap;
}

h1::before,
h1::after {
  display: none;
}

h2 {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 760;
  letter-spacing: 0;
}

.form {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 760px;
  gap: 14px;
  align-items: stretch;
  justify-items: stretch;
}

.field {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 8px;
}

.field::after {
  display: none;
  position: absolute;
  right: 15px;
  bottom: 17px;
  z-index: 2;
  width: 12px;
  height: 12px;
  pointer-events: none;
  content: "";
  border: 0.5px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.44) 38%, rgba(255, 255, 255, 0.08) 74%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(100, 116, 139, 0.2);
  opacity: 0;
  transform: scale(0.48);
  transition: opacity 180ms ease, transform var(--liquid-spring);
}

.field:focus-within::after {
  opacity: 1;
  transform: scale(1);
  animation: liquid-cursor-pulse 1600ms ease-in-out infinite;
}

.model-field::after {
  display: none;
}

.field span,
.meta span:first-child {
  color: color-mix(in srgb, var(--muted) 88%, transparent);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
}

.auth-panel {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

.login-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.login-form button,
.login-form .message {
  grid-column: 1 / -1;
}

#loginMessage {
  display: none !important;
}

.auth-input {
  appearance: none;
  width: 100%;
  min-height: 54px;
  border: 0.5px solid var(--glass-edge);
  border-radius: var(--radius-control);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.2)),
    var(--material-thin);
  color: var(--text);
  padding: 0 16px;
  font-size: 16px;
  font-weight: 760;
  line-height: normal;
  box-shadow: none;
  -webkit-backdrop-filter: blur(30px) saturate(1.65);
  backdrop-filter: blur(30px) saturate(1.65);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.auth-input::placeholder {
  color: var(--subtle);
  font-weight: 700;
}

select.auth-input {
  background:
    linear-gradient(45deg, transparent 50%, var(--text) 50%) right 18px center / 6px 6px no-repeat,
    linear-gradient(135deg, var(--text) 50%, transparent 50%) right 12px center / 6px 6px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.2)),
    var(--material-thin);
  padding-right: 38px;
}

.auth-input:hover {
  border-color: rgba(255, 255, 255, 0.74);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.24)),
    var(--material-strong);
}

.auth-input:focus {
  border-color: var(--liquid-edge);
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.92), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.28)),
    rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(255, 255, 255, 0.22),
    0 12px 28px var(--liquid-shadow),
    0 0 0 1px rgba(255, 255, 255, 0.34);
}

#usernameInput,
#passwordInput,
#usernameInput:focus,
#passwordInput:focus {
  box-shadow: none;
}

.member-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: clamp(12px, 2vw, 18px);
  align-items: center;
  min-height: 150px;
  border: 0.5px solid var(--glass-edge);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.16) 42%, rgba(255, 255, 255, 0.3)),
    var(--material-ultra-thin);
  padding: var(--panel-block-space) var(--panel-inline-space);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.88),
    inset 0 -0.5px 0 var(--glass-edge-soft),
    inset 0 22px 42px rgba(255, 255, 255, 0.12),
    inset 0 -28px 48px rgba(10, 132, 255, 0.055),
    var(--shadow);
  -webkit-backdrop-filter: blur(42px) saturate(1.8) contrast(1.04);
  backdrop-filter: blur(42px) saturate(1.8) contrast(1.04);
}

.member-bar > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.member-bar strong {
  overflow: hidden;
  color: var(--text);
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-bar span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.usage-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0.5px solid rgba(10, 132, 255, 0.18);
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--progress);
  padding: 0 14px;
  white-space: nowrap;
}

.secondary-button {
  min-height: 44px;
}

#linkInput {
  width: 100%;
  min-height: 54px;
  border: 0.5px solid var(--glass-edge);
  border-radius: var(--radius-control);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.2)),
    var(--material-thin);
  color: var(--text);
  padding: 0 16px;
  font-size: 16px;
  font-weight: 760;
  line-height: normal;
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.82),
    inset 0 -0.5px 0 rgba(255, 255, 255, 0.16),
    0 10px 28px rgba(15, 23, 42, 0.055);
  -webkit-backdrop-filter: blur(30px) saturate(1.65);
  backdrop-filter: blur(30px) saturate(1.65);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

#linkInput::placeholder {
  color: var(--subtle);
  font-weight: 650;
}

#linkInput:hover {
  border-color: rgba(255, 255, 255, 0.74);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.24)),
    var(--material-strong);
}

#linkInput:focus {
  border-color: var(--liquid-edge);
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.92), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.28)),
    rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(255, 255, 255, 0.22),
    0 12px 28px var(--liquid-shadow),
    0 0 0 1px rgba(255, 255, 255, 0.34);
}

.file-field:focus-within strong {
  border-color: var(--liquid-edge);
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.92), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.28)),
    rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(255, 255, 255, 0.22),
    0 12px 28px var(--liquid-shadow),
    0 0 0 1px rgba(255, 255, 255, 0.34);
}

.file-field {
  position: relative;
  cursor: pointer;
}

.file-field input {
  position: absolute;
  inset: auto;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.file-field strong {
  display: flex;
  align-items: center;
  min-height: 54px;
  border: 0.5px solid var(--glass-edge);
  border-radius: var(--radius-control);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.2)),
    var(--material-thin);
  color: var(--text);
  padding: 0 16px;
  font-weight: 760;
  overflow-wrap: anywhere;
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.82),
    inset 0 -0.5px 0 rgba(255, 255, 255, 0.16),
    0 10px 28px rgba(15, 23, 42, 0.055);
  -webkit-backdrop-filter: blur(30px) saturate(1.65);
  backdrop-filter: blur(30px) saturate(1.65);
}

.model-field {
  width: 100%;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.model-options {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.model-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0.5px solid rgba(255, 255, 255, 0.54);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  padding: 0 14px 0 16px;
  font-weight: 780;
  cursor: pointer;
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.82),
    inset 0 -0.5px 0 rgba(255, 255, 255, 0.14),
    0 8px 22px rgba(10, 132, 255, 0.1);
  -webkit-backdrop-filter: blur(30px) saturate(1.65);
  backdrop-filter: blur(30px) saturate(1.65);
  transition: transform var(--spring), border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.model-option::after {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  content: "";
  border: 1.5px solid rgba(105, 117, 134, 0.7);
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.72);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.model-option:hover {
  border-color: var(--liquid-edge);
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.72), transparent 42%),
    rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 28px var(--liquid-shadow);
}

.model-option:active {
  transform: translateY(1px) scale(0.985);
}

.model-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.model-option span {
  color: inherit;
  font-size: 0.95rem;
  font-weight: 780;
  min-width: 0;
}

.model-option:has(input:checked) {
  border-color: rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.14);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 10px 22px rgba(100, 116, 139, 0.08);
}

.model-option:has(input:checked):hover {
  background: rgba(255, 255, 255, 0.2);
}

.model-option:has(input:checked)::after {
  border-color: #050505;
  background: #050505;
  box-shadow: none;
}

.model-option.is-unavailable {
  cursor: not-allowed;
  opacity: 0.46;
}

button,
.download {
  border: 0.5px solid rgba(255, 255, 255, 0.48);
  border-radius: var(--radius-control);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.16)),
    var(--danger-bg);
  color: var(--text);
  padding: 0 14px;
  font-weight: 780;
  cursor: pointer;
  text-decoration: none;
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.82),
    inset 0 -0.5px 0 rgba(255, 255, 255, 0.14),
    0 8px 22px rgba(217, 45, 32, 0.08);
  -webkit-backdrop-filter: blur(30px) saturate(1.65);
  backdrop-filter: blur(30px) saturate(1.65);
  transition: box-shadow 180ms ease, filter 180ms ease, opacity 180ms ease, transform var(--spring), background 180ms ease;
}

button:hover,
.download:hover {
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.82), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.22)),
    var(--material-thin);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18),
    0 12px 28px var(--liquid-shadow);
}

button:active,
.download:active {
  transform: translateY(1px) scale(0.985);
  filter: saturate(1.08) contrast(1.02);
}

button:focus-visible,
.download:focus-visible,
.model-option:has(input:focus-visible) {
  border-color: var(--liquid-edge);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2),
    0 12px 28px var(--liquid-shadow),
    0 0 0 1px rgba(255, 255, 255, 0.36);
}

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

#submitButton {
  position: relative;
  min-height: 62px;
  border: 0.5px solid rgba(255, 255, 255, 0.54);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 780;
  text-shadow: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 14px 28px rgba(15, 23, 42, 0.16);
  -webkit-backdrop-filter: blur(30px) saturate(1.65);
  backdrop-filter: blur(30px) saturate(1.65);
}

#submitButton::before {
  display: none;
}

#submitButton:hover {
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.86), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.24)),
    rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 16px 32px rgba(15, 23, 42, 0.2);
}

#submitButton:active {
  transform: translateY(1px) scale(0.985);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.16)),
    rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 2px 7px rgba(100, 116, 139, 0.2),
    0 10px 22px rgba(15, 23, 42, 0.12);
}

#submitButton:disabled {
  color: rgba(17, 24, 39, 0.58);
  cursor: progress;
  opacity: 0.74;
}

.message {
  display: none;
  color: var(--muted);
  font-weight: 650;
}

.message:not(:empty) {
  display: block;
}

.message.error {
  color: var(--danger);
}

.project-list {
  display: grid;
  gap: 10px;
}

.admin-panel {
  position: relative;
}

.member-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.member-form button {
  grid-column: 1 / -1;
  min-height: 54px;
}

.admin-actions {
  display: grid;
  margin-top: 12px;
}

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

.member-row {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 0.5px solid var(--glass-edge);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.18);
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
}

.member-row:hover,
.member-row.is-selected {
  border-color: var(--liquid-edge);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.22)),
    rgba(255, 255, 255, 0.2);
}

.member-row strong {
  color: var(--text);
  font-weight: 820;
}

.member-row .member-summary {
  display: inline;
  color: var(--text);
  font-size: 1rem;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.member-summary-name {
  color: var(--text);
}

.member-summary-plan {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 520;
  margin-left: 0.28em;
}

.member-detail-panel {
  display: grid;
  gap: 14px;
  border: 0.5px solid var(--glass-edge);
  border-radius: var(--radius-card);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.18)),
    var(--material-thin);
  padding: 18px;
}

.member-detail-panel h2 {
  margin-bottom: 0;
}

.member-detail-grid {
  display: grid;
  grid-template-columns: minmax(96px, auto) minmax(0, 1fr);
  align-items: start;
  gap: 10px 14px;
  margin: 0;
}

.member-detail-grid dt {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1.28;
}

.member-detail-grid dd {
  position: relative;
  top: -1px;
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-weight: 760;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

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

.channel-usage-item {
  display: grid;
  gap: 2px;
}

.channel-usage-name {
  color: var(--text);
  font-weight: 820;
  line-height: 1.25;
}

.channel-usage-meta {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 720;
  line-height: 1.35;
}

.member-status-line {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.status-toggle-button {
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.76rem;
  line-height: 1;
  color: var(--progress);
  background: rgba(232, 241, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 7px 18px rgba(15, 23, 42, 0.08);
}

.status-toggle-button.is-danger {
  color: var(--danger);
  background: rgba(255, 255, 255, 0.52);
}

.status-toggle-button:disabled {
  cursor: wait;
}

.success-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1000;
  display: grid;
  gap: 10px;
  place-items: center;
  min-width: 148px;
  border: 0.5px solid var(--glass-edge);
  border-radius: var(--radius-card);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.34)),
    var(--success-bg);
  color: var(--progress);
  padding: 22px 26px;
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.88),
    0 24px 70px rgba(15, 23, 42, 0.16);
  transform: translate(-50%, -50%) scale(0.96);
  -webkit-backdrop-filter: blur(34px) saturate(1.7);
  backdrop-filter: blur(34px) saturate(1.7);
}

.success-toast.is-showing {
  animation: success-pop 1400ms ease both;
}

.success-icon {
  position: relative;
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 12px 28px rgba(10, 132, 255, 0.2);
}

.success-icon::after {
  position: absolute;
  top: 15px;
  left: 19px;
  width: 12px;
  height: 22px;
  content: "";
  border-right: 4px solid #fff;
  border-bottom: 4px solid #fff;
  transform: rotate(42deg);
}

.success-toast strong {
  font-weight: 820;
}

@keyframes success-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.9);
  }

  14%,
  78% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -52%) scale(0.98);
  }
}

.project-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 82px;
  border: 0.5px solid var(--glass-edge);
  border-radius: var(--radius-card);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.18)),
    var(--material-thin);
  color: var(--text);
  padding: 14px;
  text-align: left;
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.86),
    inset 0 -0.5px 0 rgba(255, 255, 255, 0.16),
    0 16px 38px rgba(15, 23, 42, 0.08);
  -webkit-backdrop-filter: blur(34px) saturate(1.7);
  backdrop-filter: blur(34px) saturate(1.7);
  transition: transform var(--spring), box-shadow 180ms ease, background 180ms ease;
}

.project-open {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: 62px;
  border: 0;
  background: transparent;
  border-radius: calc(var(--radius-control) - 2px);
  color: var(--text);
  padding: 0 14px;
  text-align: left;
  box-shadow: none;
}

.project-open:hover:not([disabled]) {
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.74), transparent 42%),
    rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 20px rgba(100, 116, 139, 0.08);
}

.project-open:active:not([disabled]) {
  transform: translateY(1px) scale(0.985);
}

.project-open:disabled {
  cursor: default;
  opacity: 1;
}

.meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.meta span:last-child {
  color: color-mix(in srgb, var(--muted) 88%, transparent);
  font-size: 1rem;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}

.meta span:first-child {
  color: var(--text);
}

.status {
  justify-self: end;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.9rem;
  font-weight: 760;
  white-space: nowrap;
}

.status.done,
.status.paused {
  background: rgba(255, 255, 255, 0.34);
  color: var(--muted);
  box-shadow: inset 0 0 0 0.5px var(--line);
}

.status.working {
  background: var(--progress-bg);
  color: var(--progress);
  box-shadow: inset 0 0 0 0.5px rgba(23, 92, 211, 0.1);
}

.empty {
  color: var(--muted);
  padding: 20px 0;
}

.delete-button {
  min-height: 62px;
}

.dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 16px;
}

.dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.dialog-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.close {
  min-height: 40px;
  padding: 0 14px;
}

video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 70dvh;
  background: #0f172a;
  border-radius: var(--radius-media);
}

.download {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 14px;
}

@media (max-width: 860px) {
  :root {
    --page-block-space: 28px;
    --page-inline-space: 18px;
    --section-gap: 24px;
    --panel-block-space: 28px;
    --panel-inline-space: 26px;
  }

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

  .login-form {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-open {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .status {
    justify-self: start;
  }

  .delete-button {
    width: 100%;
  }

  .model-options {
    grid-template-columns: 1fr;
  }

  .member-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  :root {
    --page-block-space: 24px;
    --page-inline-space: 16px;
    --section-gap: 22px;
    --panel-block-space: 26px;
    --panel-inline-space: 22px;
  }

  .member-bar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .usage-pill,
  .secondary-button {
    width: 100%;
  }

  h1 {
    font-size: clamp(1.85rem, 8vw, 2.45rem);
  }

  .admin-panel,
  .auth-panel,
  .field,
  .member-form {
    overflow: visible;
  }

  .auth-input,
  #linkInput {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    z-index: 2;
    display: block;
    height: 56px;
    min-height: 56px;
    padding: 0 16px;
    border-radius: var(--radius-control);
    color: var(--text);
    caret-color: var(--primary);
    font-size: 16px;
    font-weight: 760;
    line-height: 56px;
    vertical-align: middle;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transform: none;
  }

  .auth-input:focus,
  #linkInput:focus {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transform: none;
  }

  .auth-input::placeholder,
  #linkInput::placeholder {
    line-height: 56px;
  }

}

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