/* Make the entire page a flex column */
html,
body {
  min-height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  background-color: #121212;
  color: #e0e0e0;
  font-family: Arial, sans-serif;
}

body {
  min-height: 100vh;
}

* {
  box-sizing: border-box;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #ff006f #151922;
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: #151922;
}

::-webkit-scrollbar-thumb {
  background: #ff006f;
  border: 2px solid #151922;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e60062;
}

::-webkit-scrollbar-corner {
  background: #151922;
}

/* Main content grows to fill available space */
main {
  flex: 1;
  padding: 40px;
  text-align: center;
}

main section {
  margin-bottom: 30px;
}

main section h2 {
  color: #FF006F;
  margin-bottom: 10px;
}

main ul {
  list-style-type: disc;
  padding-left: 40px;
}

main ul li {
  margin-bottom: 6px;
  line-height: 1.5;
}

main a {
  color: #FF006F;
  text-decoration: none;
}

main a:hover {
  text-decoration: underline;
}

code {
  background-color: #2a2a2a;
  padding: 2px 5px;
  border-radius: 3px;
  color: #FF006F;
  font-family: monospace;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: rgba(14, 14, 18, 0.9);
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  border-bottom: 2px solid #FF006F;
  backdrop-filter: blur(14px);
}

footer {
  background-color: rgba(14, 14, 18, 0.9);
  padding: 15px;
  text-align: center;
  border-top: 2px solid #FF006F;
  margin-top: auto;
  backdrop-filter: blur(14px);
}

/* Links */
header a {
  color: #FF006F;
  text-decoration: none;
  font-weight: bold;
}

header a:hover {
  text-decoration: underline;
}

/* Headings and lists */
h1 {
  color: #FF006F;
  margin-bottom: 20px;
}

p,
li {
  line-height: 1.6;
}

ul {
  list-style-type: disc;
  margin: 20px auto;
  padding-left: 40px;
  max-width: 600px;
  text-align: left;
}

/* Generic button style */
.button {
  display: inline-block;
  background-color: #FF006F;
  color: #fff;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.button:hover {
  background-color: #e60062;
  /* slightly darker on hover */
  transform: translateY(-2px);
  /* subtle lift effect */
}

.button:active {
  transform: translateY(0);
}

.small-button {
  width: auto;
  padding: 8px 12px;
  font-size: 0.86rem;
  line-height: 1;
}

.mod-search {
  width: min(360px, 100%);
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0d1118;
  color: white;
  font: inherit;
}

.mods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.mod-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  background: #151922;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.mod-card[hidden] {
  display: none;
}

.mod-card:hover {
  border-color: rgba(255, 0, 111, 0.5);
  background: #191f2a;
}

.mod-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.mod-icon {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: #0d1118;
}

.mod-desc {
  margin: 0;
  color: #c9d1dc;
  font-size: 0.9rem;
  opacity: 0.9;
}

.mod-card a {
  color: #FF006F;
  text-decoration: none;
  font-weight: bold;
}

.mod-card a:hover {
  text-decoration: underline;
}

.home-main {
  padding: 0;
  text-align: left;
}

.page-main {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 40px 0 56px;
  text-align: left;
}

.page-hero {
  padding: clamp(34px, 7vw, 76px);
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(255, 0, 111, 0.18), rgba(114, 242, 178, 0.08)),
    #151922;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.page-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 1;
}

.page-hero p {
  max-width: 760px;
  color: #d8dee8;
  font-size: 1.08rem;
}

.compact-hero {
  padding: clamp(30px, 5vw, 52px);
}

.content-grid {
  display: grid;
  gap: 14px;
}

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

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

.content-panel--large {
  grid-column: 1 / -1;
}

.content-panel--small {
  grid-column: auto;
}

.content-panel,
.mods-toolbar {
  padding: 24px;
  background: #151922;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.content-panel {
  margin-bottom: 14px;
}

.content-panel h2,
.mods-toolbar h2 {
  margin-top: 0;
  color: #ffffff;
}

.content-panel ul {
  max-width: none;
  margin: 12px 0 0;
}

.content-panel li {
  color: #d7dde7;
}

.markdown-content > * {
  margin: 0 0 0.65em;
}

.markdown-content > *:last-child {
  margin-bottom: 0;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
  color: inherit;
  line-height: 1.15;
}

.markdown-content ul,
.markdown-content ol {
  padding-left: 1.3em;
}

.markdown-content li {
  margin-bottom: 0.25em;
}

.markdown-content blockquote {
  padding-left: 0.8em;
  border-left: 3px solid #ff006f;
  color: inherit;
  opacity: 0.86;
}

.page-note,
.empty-state {
  color: #c9d1dc;
  text-align: center;
}

.mods-toolbar {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.home-hero {
  --home-hero-image: url("/panorama/1.png");
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  align-items: center;
  gap: 36px;
  padding: 56px clamp(20px, 6vw, 80px);
  position: relative;
  overflow: hidden;
  background: #0d1118;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(10, 10, 14, 0.94), rgba(10, 10, 14, 0.66) 52%, rgba(10, 10, 14, 0.86));
  pointer-events: none;
}

.home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--home-hero-image) center / cover;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity 1.15s ease;
}

.home-hero__bg.is-active {
  opacity: 1;
}

.home-hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #72f2b2;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
  color: #f0f0f4;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions,
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin-top: 28px;
}

.button-secondary {
  background: #243447;
  color: #f5f7fb;
}

.button-secondary:hover {
  background: #2f435c;
}

.danger-button {
  background: #c8325b;
}

.danger-button:hover {
  background: #a9274b;
}

.dashboard-main {
  max-width: 1180px;
}

.dashboard-hero {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.dashboard-avatar {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #ff006f;
  background: #0d1118;
  flex: 0 0 auto;
}

.dashboard-message {
  min-height: 24px;
  margin: 0 0 14px;
  color: #9fe6c1;
  font-weight: 700;
  text-align: left;
}

.dashboard-message.is-error {
  color: #ff9dbf;
}

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

.dashboard-actions {
  margin-top: 18px;
}

.minecraft-link-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.minecraft-link-status img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  border-radius: 8px;
  background: #0d1118;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.minecraft-link-status img[hidden] {
  display: none;
}

.panel-note {
  margin-top: 0;
  color: #c9d1dc;
}

.admin-main {
  max-width: 1240px;
  min-height: calc(100vh - 130px);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.admin-list-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-list-header h2 {
  margin: 0;
}

.admin-user-row {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #0d1118;
  color: #ffffff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-user-row:hover {
  border-color: rgba(255, 0, 111, 0.5);
  background: #191f2a;
}

.admin-user-row[disabled] {
  opacity: 0.52;
  cursor: not-allowed;
}

.admin-user-row[data-selected="true"] {
  border-color: #ff006f;
  background: #1c2330;
}

.admin-user-row img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  background: #151922;
}

.admin-user-row strong,
.admin-user-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-row small {
  margin-top: 2px;
  color: #c9d1dc;
  font-size: 0.82rem;
}

.admin-user-row__mc {
  color: #ff9dbf;
}

.admin-user-row__mc.is-linked {
  color: #9fe6c1;
}

.admin-profile-tools,
.admin-password-form,
.admin-modpack-upload {
  margin-top: 18px;
}

.upload-progress {
  display: grid;
  gap: 7px;
}

.upload-progress[hidden] {
  display: none;
}

.upload-progress progress {
  width: 100%;
  height: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: #0d1118;
}

.upload-progress progress::-webkit-progress-bar {
  background: #0d1118;
}

.upload-progress progress::-webkit-progress-value {
  background: linear-gradient(90deg, #ff006f, #72f2b2);
}

.upload-progress progress::-moz-progress-bar {
  background: linear-gradient(90deg, #ff006f, #72f2b2);
}

.upload-progress span {
  color: #c9d1dc;
  font-size: 0.86rem;
  font-weight: 700;
}

.admin-site-layout[hidden],
.admin-layout[hidden] {
  display: none;
}

.site-card-editor-list {
  display: grid;
  gap: 12px;
}

.site-card-editor {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #0d1118;
}

.site-card-editor__header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.danger-panel {
  border-color: rgba(200, 50, 91, 0.45);
}

.account-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-height: calc(100vh - 128px);
  overflow: auto;
  padding: 22px;
  background: rgba(18, 21, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
}

.account-card__header {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.account-card__header h2,
.account-form h3,
.profile-summary h3,
.home-section h2 {
  margin: 0;
  color: #ffffff;
}

[data-account-status] {
  max-width: none;
  color: #9fe6c1;
  font-size: 0.86rem;
  text-align: right;
  white-space: nowrap;
}

[data-account-status].is-error {
  color: #ff9dbf;
}

.account-form {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.compact-form {
  margin-top: 18px;
}

.account-form label {
  display: grid;
  gap: 6px;
  color: #c9d1dc;
  font-size: 0.9rem;
  font-weight: 700;
}

.account-form input,
.account-form select,
.account-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 11px 12px;
  background: #0d1118;
  color: #ffffff;
  font: inherit;
}

.account-form input[type="file"] {
  padding: 7px;
  color: #c9d1dc;
  cursor: pointer;
}

.account-form input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 1px solid rgba(255, 0, 111, 0.45);
  border-radius: 6px;
  padding: 8px 12px;
  background: #191f2a;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.account-form input[type="file"]:hover::file-selector-button {
  border-color: #ff006f;
  background: #242b38;
}

.account-form textarea {
  resize: vertical;
}

.profile-summary {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.profile-summary img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #ff006f;
  background: #0d1118;
}

.profile-summary p {
  margin: 4px 0 0;
  color: #c9d1dc;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.asset-bridge-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 18px;
  align-items: start;
}

.asset-bridge-hero .account-card {
  margin-bottom: 0;
}

.asset-bridge-page {
  display: grid;
  gap: 14px;
}

.asset-bridge-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.asset-bridge-view {
  min-height: 360px;
}

.asset-view-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.asset-view-header h2,
.asset-project-hero h2,
.asset-comments h3 {
  margin-top: 0;
  color: #ffffff;
}

.asset-project-hero {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.asset-project-hero img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  background: #0d1118;
}

.asset-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.asset-chip {
  min-height: 94px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #0d1118;
  color: #ffffff;
  text-decoration: none;
}

.asset-chip:hover {
  border-color: rgba(255, 0, 111, 0.6);
  background: #191f2a;
  text-decoration: none;
}

.asset-chip--add {
  border-style: dashed;
  border-color: rgba(114, 242, 178, 0.45);
}

.asset-chip--static {
  grid-template-columns: 58px minmax(0, 1fr) auto;
}

.asset-chip img,
.asset-chip__icon {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: #151922;
}

.asset-chip img {
  object-fit: cover;
}

.asset-chip img,
.asset-preview-panel img {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.asset-chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #72f2b2;
  font-size: 0.82rem;
  font-weight: 900;
}

.asset-chip strong,
.asset-chip small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-chip small {
  margin-top: 4px;
  color: #c9d1dc;
  font-size: 0.84rem;
}

.asset-detail-form,
.asset-compact-form {
  max-width: 760px;
}

.asset-compact-form {
  margin-bottom: 18px;
}

.asset-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 18px;
  align-items: start;
}

.asset-detail-main {
  min-width: 0;
}

.asset-text-reader {
  min-height: 520px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #0d1118;
}

.asset-text-reader pre {
  margin: 0;
  color: #ffffff;
  font: 0.98rem/1.65 Consolas, "Courier New", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.asset-comments {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.asset-comments--side {
  position: sticky;
  top: 94px;
  margin-top: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #151922;
}

.asset-comment {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #0d1118;
}

.asset-comment__header {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.asset-comment p {
  margin: 4px 0 0;
  color: #c9d1dc;
}

.asset-comment-form {
  display: grid;
  gap: 10px;
}

.asset-comment-form label {
  display: grid;
  gap: 6px;
  color: #c9d1dc;
  font-size: 0.9rem;
  font-weight: 700;
}

.asset-comment-form textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  border: 1px solid rgba(114, 242, 178, 0.24);
  border-radius: 8px;
  padding: 11px 12px;
  background: #0d1118;
  color: #ffffff;
  font: inherit;
}

.asset-comment-form textarea:focus {
  outline: 2px solid rgba(255, 0, 111, 0.45);
  border-color: #ff006f;
}

.asset-preview-panel {
  display: grid;
  gap: 14px;
}

.asset-preview-panel img {
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  border-radius: 8px;
  background: #0d1118;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.asset-file-dropzone {
  min-height: 150px;
  align-content: center;
  padding: 18px;
  border: 1px dashed rgba(114, 242, 178, 0.42);
  border-radius: 8px;
  background: #0d1118;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.asset-file-dropzone:hover,
.asset-file-dropzone.is-dragging {
  border-color: #72f2b2;
  background: #151922;
}

.asset-file-dropzone > span {
  color: #c9d1dc;
  font-size: 0.9rem;
}

.asset-file-dropzone > strong {
  color: #ffffff;
  font-size: 1.05rem;
}

.asset-file-dropzone > small {
  color: #c9d1dc;
  font-weight: 600;
}

.asset-upload-progress {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(114, 242, 178, 0.24);
  border-radius: 8px;
  background: #0d1118;
}

.asset-upload-progress[hidden] {
  display: none;
}

.asset-upload-progress.is-error {
  border-color: rgba(255, 0, 111, 0.55);
}

.asset-upload-progress__header {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.asset-upload-progress__header span,
.asset-upload-progress p {
  color: #c9d1dc;
  font-size: 0.86rem;
}

.asset-upload-progress p {
  margin: 0;
}

.asset-upload-progress__track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #151922;
}

.asset-upload-progress__track span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff006f, #72f2b2);
  transition: width 0.14s ease;
}

.asset-danger-row {
  margin-top: 18px;
}

.public-profile-shell {
  position: relative;
  flex: 1 0 auto;
  width: 100%;
  min-height: var(--profile-available-height, calc(100vh - 126px));
  margin: 0;
  padding: 0;
  text-align: left;
}

.public-profile-page footer {
  flex: 0 0 auto;
}

.profile-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.profile-editor-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  width: min(390px, 100%);
  height: 100vh;
  overflow: auto;
  padding: 18px;
  background: rgba(18, 21, 28, 0.98);
  border-left: 2px solid #ff006f;
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.42);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  pointer-events: none;
}

.profile-editor-drawer[hidden] {
  display: none;
}

.profile-editor-drawer.is-open {
  transform: translateX(0);
  pointer-events: auto;
}

.profile-drawer-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.profile-drawer-header h2,
.profile-drawer-section h3 {
  margin: 0;
  color: #ffffff;
}

.profile-drawer-section {
  display: grid;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-drawer-section label {
  display: grid;
  gap: 6px;
  color: #c9d1dc;
  font-size: 0.9rem;
  font-weight: 700;
}

.profile-drawer-section input,
.profile-drawer-section select,
.profile-drawer-section textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 10px 11px;
  background: #0d1118;
  color: #ffffff;
  font: inherit;
}

.profile-drawer-section textarea {
  resize: vertical;
}

.profile-drawer-section input[type="color"] {
  min-height: 42px;
  padding: 4px;
}

.profile-check-label {
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row;
  gap: 8px !important;
  align-items: center;
}

.profile-check-label input {
  width: auto;
}

.profile-color-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.profile-color-control legend {
  padding: 0 4px;
  color: #ffffff;
  font-weight: 800;
}

.profile-color-control [hidden] {
  display: none;
}

.profile-gradient-tools {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
}

.profile-gradient-stops {
  display: grid;
  gap: 8px;
}

.profile-gradient-stop {
  grid-template-columns: 1fr auto auto auto auto;
  align-items: center;
}

.profile-gradient-stop input[type="color"] {
  min-width: 54px;
}

.profile-gradient-stop .small-button {
  padding: 7px 9px;
}

.profile-color-grid,
.profile-number-grid,
.profile-override-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-color-grid {
  grid-template-columns: 1fr;
}

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

.profile-element-list__item {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #0d1118;
  color: #ffffff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.profile-element-list__item[data-selected="true"] {
  border-color: #ff006f;
  background: #1c2330;
}

.profile-floating-edit {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #ff006f;
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 800;
  cursor: pointer;
}

.public-profile-canvas {
  --profile-bg: #10131a;
  --profile-panel: #151922;
  --profile-accent: #ff006f;
  --profile-text: #ffffff;
  position: relative;
  min-height: var(--profile-canvas-height, var(--profile-available-height, calc(100vh - 126px)));
  overflow: hidden;
  background: var(--profile-bg);
  border: 0;
  border-radius: 0;
  color: var(--profile-text);
  margin-bottom: 0;
}

.public-profile-canvas.is-editing {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--profile-bg);
  background-size: var(--profile-grid) var(--profile-grid), var(--profile-grid) var(--profile-grid), auto;
}

.public-profile-canvas.is-editing:not(.is-snapping) {
  background: var(--profile-bg);
}

.profile-element {
  position: absolute;
  padding: 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  transform-origin: top left;
  overflow-wrap: anywhere;
  overflow: hidden;
  user-select: none;
}

.public-profile-canvas.is-editing .profile-element {
  cursor: grab;
  outline: 1px dashed rgba(255, 255, 255, 0.22);
}

.public-profile-canvas.is-editing .profile-element:active {
  cursor: grabbing;
}

.profile-element[data-selected="true"] {
  outline: 2px solid var(--profile-accent);
}

.profile-resize-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  border-left: 2px solid var(--profile-accent);
  border-top: 2px solid var(--profile-accent);
  background: rgba(0, 0, 0, 0.45);
  cursor: nwse-resize;
}

.profile-element--container {
  padding: 0;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.profile-identity-text {
  width: 100%;
  line-height: 1.1;
  font-weight: 700;
  white-space: normal;
}

.profile-picture-element {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid var(--profile-accent);
  border-radius: 8px;
  background: #0d1118;
}

.profile-markdown,
.profile-custom-text {
  min-height: 1.4em;
  color: inherit;
  font-size: 1.1rem;
  line-height: 1.5;
}

.profile-markdown > * {
  margin: 0 0 0.65em;
}

.profile-markdown > *:last-child {
  margin-bottom: 0;
}

.profile-markdown h1,
.profile-markdown h2,
.profile-markdown h3,
.profile-markdown h4,
.profile-markdown h5,
.profile-markdown h6 {
  color: inherit;
  line-height: 1.15;
}

.profile-markdown ul,
.profile-markdown ol {
  padding-left: 1.3em;
}

.profile-markdown li {
  margin-bottom: 0.25em;
}

.profile-markdown blockquote {
  padding-left: 0.8em;
  border-left: 3px solid var(--profile-accent);
  color: inherit;
  opacity: 0.86;
}

.profile-markdown a {
  color: var(--profile-accent);
  font-weight: 800;
}

.profile-markdown img,
.profile-image-element {
  display: block;
  width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.profile-markdown-button,
.profile-button-element {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 8px;
  background: var(--profile-accent-bg);
  color: #ffffff !important;
  font-weight: 800;
  text-decoration: none;
}

.profile-button-element {
  width: 100%;
  height: 100%;
}

.home-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #31343c;
  padding: 1px;
}

.home-section article {
  min-height: 220px;
  padding: 34px;
  background: #151922;
}

.section-number {
  display: inline-block;
  margin-bottom: 24px;
  color: #72f2b2;
  font-weight: 800;
}

.home-section p {
  color: #c9d1dc;
}

/* Responsive for small screens */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 8px 14px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  main {
    padding: 20px;
  }

  .home-main {
    padding: 0;
  }

  .home-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 38px 18px 26px;
  }

  .account-card {
    max-height: none;
  }

  .home-section {
    grid-template-columns: 1fr;
  }

  .page-main {
    width: min(100% - 28px, 1120px);
    padding-top: 24px;
  }

  .two-column,
  .content-grid--cards,
  .mods-toolbar {
    grid-template-columns: 1fr;
  }

  .mods-toolbar {
    display: grid;
    align-items: stretch;
  }

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

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

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

  .admin-layout,
  .asset-bridge-hero,
  .asset-project-hero,
  .asset-detail-layout {
    grid-template-columns: 1fr;
  }

  .asset-comments--side {
    position: static;
  }

  .account-card__header,
  .asset-view-header,
  .hero-actions,
  .form-row,
  .profile-actions,
  .profile-editor-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .asset-chip-grid {
    grid-template-columns: 1fr;
  }

  .asset-chip--static {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .public-profile-shell {
    width: 100%;
    padding-top: 0;
  }

  .profile-editor-drawer {
    width: 100%;
  }

  .profile-color-grid,
  .profile-number-grid,
  .profile-override-grid,
  .profile-color-control {
    grid-template-columns: 1fr;
  }

  .profile-element {
    max-width: calc(100% - 24px);
  }

  [data-account-status] {
    max-width: none;
    text-align: left;
    white-space: normal;
  }
}
