
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

/* =========================================
   NEXORA — TEMA DISCORD CLÁSSICO
   ========================================= */

:root {
  color-scheme: dark;
  --bg: #313338;
  --panel: #2b2d31;
  --panel-soft: #232428;
  --sidebar: #2b2d31;
  --rail: #1e1f22;
  --line: #3f4147;
  --text: #f2f3f5;
  --muted: #b5bac1;
  --muted-dark: #949ba4;
  --blue: #5865f2;
  --blue-hover: #4752c4;
  --success: #23a559;
  --danger: #f23f43;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 14px 'DM Sans', sans-serif;
}

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

button,
label.upload {
  cursor: pointer;
}

button {
  border: 0;
  border-radius: 4px;
  padding: 10px 14px;
  transition: background .16s ease, transform .16s ease;
}

button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

input {
  width: 100%;
  padding: 12px;
  color: var(--text);
  background: #1e1f22;
  border: 1px solid #1e1f22;
  border-radius: 4px;
  outline: none;
  transition: border-color .16s ease;
}

input:focus {
  border-color: var(--blue);
}

input::placeholder {
  color: #777d86;
}

h1,
h2,
h3,
h4 {
  font-family: 'Manrope', sans-serif;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h3 {
  font-size: 17px;
  font-weight: 700;
}

p {
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

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

.primary {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
}

.primary:hover {
  background: var(--blue-hover);
}

.secondary {
  background: #404249;
  color: var(--text);
}

.secondary:hover {
  background: #4b4d55;
}

.brand {
  font: 800 21px 'Manrope', sans-serif;
  letter-spacing: -.8px;
}

.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-weight: 800;
  overflow: hidden;
}

/* =========================================
   LOGIN E CADASTRO
   ========================================= */

#auth {
  min-height: 100vh;
  width: 100%;
  max-width: 520px;
  margin: auto;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nexora-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: white;
  font: 800 24px 'Manrope', sans-serif;
  border-radius: 13px;
}

#auth h1 {
  margin: 38px 0 14px;
  font: 800 clamp(36px, 7vw, 52px)/1.12 'Manrope', sans-serif;
  letter-spacing: -2px;
}

#auth h1 span {
  color: #8e98ff;
}

#auth > p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 28px;
}

.card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card {
  padding: 24px;
}

.tabs {
  display: flex;
  gap: 5px;
  padding: 4px;
  background: var(--panel-soft);
  border-radius: 5px;
  margin-bottom: 24px;
}

.tabs button {
  flex: 1;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}

.tabs button:hover,
.tabs button.active {
  color: white;
  background: #404249;
}

.card h2 {
  margin: 0 0 7px;
  font-size: 23px;
}

.form-description {
  color: var(--muted);
  margin: 0 0 22px;
}

form label {
  display: block;
  color: #dbdee1;
  font-size: 13px;
  font-weight: 700;
  margin: 17px 0 8px;
}

form .primary {
  width: 100%;
  margin-top: 20px;
  min-height: 42px;
}

#auth > small {
  display: block;
  margin-top: 22px;
  text-align: center;
  color: var(--muted-dark);
}

/* =========================================
   ESTRUTURA PRINCIPAL
   ========================================= */

#app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 72px 240px minmax(0, 1fr);
}

/* Barra vertical de espaços */

.server-rail {
  min-width: 0;
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0;
  background: var(--rail);
}

.server-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  padding: 0;
  display: grid;
  place-items: center;
  background: #313338;
  color: #dbdee1;
  border-radius: 50%;
  font-size: 23px;
  position: relative;
}

.server-icon:hover,
.server-icon.selected {
  color: white;
  background: var(--blue);
  border-radius: 15px;
}

.server-icon:hover::before,
.server-icon.selected::before {
  content: "";
  position: absolute;
  left: -12px;
  width: 4px;
  height: 25px;
  border-radius: 0 4px 4px 0;
  background: white;
}

.server-home {
  background: var(--blue);
  color: white;
  font: 800 23px 'Manrope', sans-serif;
  border-radius: 15px;
}

.server-divider {
  width: 32px;
  height: 2px;
  flex-shrink: 0;
  background: #35373c;
  margin: 1px 0 3px;
}

.server-icon.add-server {
  color: #23a559;
  font-size: 29px;
}

.server-icon.add-server:hover {
  background: #23a559;
  color: white;
}

.rail-bottom {
  margin-top: auto;
  padding-bottom: 5px;
}

.rail-user-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #404249;
  color: white;
  font-weight: 800;
}

/* Barra lateral de navegação */

aside {
  min-width: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  border-right: 1px solid #26272b;
  overflow: hidden;
}

.workspace-header {
  height: 57px;
  min-height: 57px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #232428;
  box-shadow: 0 1px 3px #0002;
}

.workspace-header .brand {
  font-size: 18px;
}

.workspace-chevron {
  color: var(--muted);
  font-size: 20px;
}

.sidebar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 10px 18px;
  padding: 9px 10px;
  color: var(--muted-dark);
  background: #1e1f22;
  border-radius: 4px;
  font-size: 12px;
}

.sidebar-search span:first-child {
  font-size: 19px;
}

nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 8px;
}

nav button {
  min-height: 39px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: transparent;
  color: var(--muted);
  padding: 9px 11px;
  border-radius: 4px;
  font-weight: 500;
}

nav button:hover {
  color: #f2f3f5;
  background: #35373c;
}

nav button.active {
  color: white;
  background: #404249;
}

.nav-icon {
  width: 20px;
  flex-shrink: 0;
  text-align: center;
  font-size: 19px;
}

.nav-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 8px 7px;
  color: var(--muted-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .7px;
}

.nav-caption-groups {
  margin-top: 27px;
}

.nav-caption-profile {
  margin-top: 27px;
}

.nav-add {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 20px;
}

.nav-add:hover {
  color: white;
}

.sidebar-bottom {
  margin-top: auto;
  padding: 10px;
  background: #232428;
}

.sidebar-account {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.sidebar-account-info {
  flex: 1;
  min-width: 0;
}

.sidebar-account-info strong,
.sidebar-account-info small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sidebar-account-info strong {
  font-size: 12px;
}

.sidebar-account-info small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.logout {
  padding: 7px;
  color: var(--muted);
  background: transparent;
  font-size: 22px;
}

.logout:hover {
  color: var(--danger);
  background: #39343a;
}

/* =========================================
   CONTEÚDO PRINCIPAL E CABEÇALHO
   ========================================= */

main {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0 clamp(20px, 3vw, 42px) 50px;
}

.main-header {
  height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 30px;
  border-bottom: 1px solid #26272b;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.breadcrumb-brand {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.breadcrumb-separator {
  color: #62666d;
}

.main-header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  flex-shrink: 0;
}

.page {
  width: 100%;
  min-width: 0;
  animation: pageEnter .18s ease;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

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

.page-intro {
  margin-bottom: 24px;
}

.page-intro h3 {
  margin: 0 0 6px;
  font-size: 23px;
}

.page-intro p {
  margin: 0;
  color: var(--muted);
}

.section-heading {
  margin: 28px 0 12px;
}

.section-heading h3 {
  margin: 0 0 5px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 16px;
}

.section-head h3 {
  margin: 0 0 5px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}

/* =========================================
   BANNER DE BOAS-VINDAS
   ========================================= */

.welcome {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 220px;
  overflow: hidden;
  padding: clamp(23px, 4vw, 38px);
  background:
    radial-gradient(ellipse at 90% 20%, #5865f233, transparent 45%),
    linear-gradient(110deg, #292b35, #252630);
  border: 1px solid #41434c;
  border-radius: 8px;
}

.welcome-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.welcome small {
  color: #aab0ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.7px;
}

.welcome h1 {
  margin: 12px 0 9px;
  font: 800 clamp(26px, 3vw, 34px)/1.2 'Manrope', sans-serif;
  letter-spacing: -1px;
}

.welcome h1 span {
  color: #aab0ff;
}

.welcome p {
  max-width: 480px;
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.welcome .primary {
  min-height: 40px;
}

.welcome-decoration {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%) rotate(-12deg);
  color: #727df2;
  opacity: .16;
  font-size: clamp(100px, 17vw, 200px);
  pointer-events: none;
}

/* =========================================
   CARTÕES DE ESTATÍSTICAS
   ========================================= */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 32px;
}

.stats article {
  min-width: 0;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stat-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  color: #aab0ff;
  background: #5865f21c;
  border-radius: 7px;
  font-size: 21px;
}

.stats small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.stats strong {
  display: block;
  margin-top: 7px;
  font: 800 28px 'Manrope', sans-serif;
}

/* =========================================
   GALERIA DE FOTOS
   ========================================= */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.photo {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 1;
  background: #232428;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-align: left;
}

.photo:hover {
  border-color: #737ef5;
  transform: translateY(-2px);
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 9px 9px;
  overflow: hidden;
  color: white;
  background: linear-gradient(transparent, #000c);
  font-size: 11px;
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  white-space: nowrap;
}

.upload input {
  display: none;
}

.empty {
  padding: 35px 18px;
  color: var(--muted);
  background: #2b2d31;
  border: 1px dashed #484a52;
  border-radius: 8px;
  text-align: center;
}

/* =========================================
   AMIGOS E PEDIDOS
   ========================================= */

.inline {
  display: flex;
  gap: 10px;
  margin: 18px 0;
}

.inline input {
  flex: 1;
  min-width: 0;
}

.inline .primary {
  width: auto;
  flex-shrink: 0;
  margin: 0;
}

.friend-add-panel {
  padding: 20px;
}

.friend-add-panel h3 {
  margin: 0 0 6px;
}

.friend-add-panel > p {
  color: var(--muted);
  font-size: 13px;
}

.list {
  display: grid;
  gap: 8px;
  margin: 12px 0 25px;
}

.person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.person-info {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.person-info strong {
  display: block;
}

.person small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.person button {
  flex-shrink: 0;
  margin-left: 3px;
}

/* =========================================
   GRUPOS
   ========================================= */

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

.group-list-panel {
  min-width: 0;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.group-list-panel > h3 {
  margin: 0 0 14px;
  font-size: 14px;
}

.group-list-panel .list {
  margin-bottom: 0;
}

.group-button {
  width: 100%;
  margin-bottom: 5px;
  padding: 11px 12px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  text-align: left;
}

.group-button:hover,
.group-button.active {
  color: white;
  background: #404249;
  border-color: #4c4f59;
}

#groupDetail {
  min-width: 0;
  min-height: 220px;
}

#groupDetail img {
  max-width: 100%;
}

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

/* =========================================
   PERFIL
   ========================================= */

.profile {
  position: relative;
  max-width: 560px;
  margin: 25px auto;
  padding: 0 24px 25px;
  overflow: hidden;
  text-align: center;
}

.profile-cover {
  height: 100px;
  margin: 0 -24px 0;
  background:
    radial-gradient(ellipse at 75% 15%, #7b86ff55, transparent 45%),
    linear-gradient(120deg, #35385c, #252630);
}

.profile .profile-avatar {
  position: relative;
  width: 82px;
  height: 82px;
  margin: -41px auto 15px;
  border: 6px solid var(--panel);
  font-size: 26px;
}

.profile h2 {
  margin: 0 0 5px;
  font-size: 23px;
}

.profile > p {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.idbox {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 16px;
  background: #232428;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.idbox small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.idbox strong {
  overflow-wrap: anywhere;
  font: 800 20px 'Manrope', sans-serif;
}

.idbox button {
  justify-self: center;
}

/* =========================================
   MODAIS
   ========================================= */

dialog {
  width: min(470px, 92vw);
  max-height: 85vh;
  padding: 24px;
  overflow-y: auto;
  color: var(--text);
  background: #2b2d31;
  border: 1px solid #484a52;
  border-radius: 8px;
  box-shadow: 0 18px 60px #0006;
}

dialog::backdrop {
  background: #0009;
  backdrop-filter: blur(3px);
}

dialog h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

dialog p {
  color: var(--muted);
}

dialog form > p {
  margin-top: 20px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.dialog-actions button {
  width: auto;
  margin: 0;
}

#friendChoices {
  display: grid;
  gap: 7px;
}

#friendChoices label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 10px;
  background: #232428;
  border-radius: 5px;
  cursor: pointer;
}

#friendChoices input {
  width: auto;
}

#viewer {
  width: fit-content;
  max-width: 95vw;
  padding: 15px;
}

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

.viewer-header p {
  margin: 0;
  overflow-wrap: anywhere;
}

#viewer img {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  margin: auto;
}

/* =========================================
   NOTIFICAÇÕES
   ========================================= */

#toast {
  position: fixed;
  z-index: 9999;
  right: 20px;
  bottom: 20px;
  width: max-content;
  max-width: min(380px, calc(100vw - 32px));
  padding: 13px 16px;
  color: white;
  background: #404249;
  border: 1px solid #555861;
  border-radius: 6px;
  box-shadow: 0 8px 28px #0004;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

#toast.show {
  opacity: 1;
  transform: translateY(0);
}

#toast.error {
  background: #8f3039;
  border-color: #b5444d;
}

/* =========================================
   TABLETS
   ========================================= */

@media (max-width: 1100px) {
  #app {
    grid-template-columns: 64px 205px minmax(0, 1fr);
  }

  .server-icon {
    width: 44px;
    height: 44px;
  }

  main {
    padding-right: 22px;
    padding-left: 22px;
  }

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

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


/* CELULARES — SIDEBAR À ESQUERDA */
@media (max-width: 760px) {
  #app {
    display: block;
    min-height: 100vh;
    padding-bottom: 0;
  }

  /* A navegação de espaços não precisa ficar duplicada */
  .server-rail {
    display: none;
  }

  /* Sidebar fixa à esquerda */
  #app > aside {
    position: fixed;
    z-index: 100;
    top: 0;
    bottom: 0;
    left: 0;
    width: 154px;
    height: 100dvh;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    border-right: 1px solid #414249;
    background: #232428;
  }

  .workspace-header {
    height: 52px;
    min-height: 52px;
    padding: 0 10px;
  }

  .workspace-header .brand {
    font-size: 16px;
  }

  .workspace-chevron,
  .sidebar-search {
    display: none;
  }

  nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 6px;
  }

  .nav-caption {
    display: flex;
    margin: 16px 4px 6px;
    font-size: 9px;
    letter-spacing: .3px;
  }

  .nav-caption-groups {
    margin-top: 20px;
  }

  .nav-caption-profile {
    margin-top: 20px;
  }

  nav button {
    width: 100%;
    min-height: 40px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 7px;
    font-size: 11px;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .nav-icon {
    width: 19px;
    font-size: 17px;
  }

  .nav-add {
    width: 22px;
    min-height: 22px;
    margin-left: auto;
    padding: 0;
    font-size: 19px;
  }

  .sidebar-bottom {
    position: sticky;
    bottom: 0;
    margin-top: auto;
    padding: 8px 6px;
  }

  .sidebar-account {
    flex-wrap: wrap;
    gap: 6px;
  }

  .sidebar-account .avatar {
    width: 29px;
    height: 29px;
  }

  .sidebar-account-info {
    flex: 1 1 70px;
  }

  .sidebar-account-info strong {
    font-size: 10px;
  }

  .sidebar-account-info small {
    font-size: 9px;
  }

  .logout {
    padding: 5px;
    font-size: 18px;
  }

  /* Conteúdo ao lado da sidebar */
  #app > main {
    width: auto;
    min-width: 0;
    margin-left: 154px;
    padding: 0 12px 25px;
  }

  .main-header {
    min-height: 54px;
    height: auto;
    margin-bottom: 18px;
  }

  .breadcrumb {
    gap: 5px;
  }

  .breadcrumb-brand {
    display: none;
  }

  .main-header h2 {
    font-size: 13px;
  }

  .header-user {
    max-width: 45%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 10px;
  }

  .welcome {
    min-height: 170px;
    padding: 15px;
  }

  .welcome h1 {
    font-size: 23px;
  }

  .welcome p {
    font-size: 12px;
  }

  .welcome-decoration {
    right: -20px;
    font-size: 100px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 7px;
    margin: 12px 0 22px;
  }

  .stats article {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 10px;
  }

  .stat-icon {
    width: 30px;
    height: 30px;
    margin: 0;
  }

  .stats strong {
    margin: 0;
    font-size: 21px;
  }

  .stats small {
    font-size: 11px;
  }

  .gallery,
  #groupDetail .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .section-head {
    align-items: flex-start;
    gap: 8px;
  }

  .section-head h3 {
    font-size: 15px;
  }

  .section-head p {
    font-size: 11px;
  }

  .section-head > button,
  .section-head > .upload {
    max-width: 100%;
    padding: 9px 7px;
    font-size: 10px;
    white-space: normal;
  }

  .group-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .inline {
    flex-direction: column;
  }

  .inline .primary {
    width: 100%;
  }

  .profile {
    padding-right: 12px;
    padding-left: 12px;
  }

  .profile-cover {
    margin-right: -12px;
    margin-left: -12px;
  }

  .person {
    flex-wrap: wrap;
    gap: 7px;
  }

  .person-info {
    flex: 1 1 80px;
  }

  .person button {
    margin-left: 0;
  }
}

@media (max-width: 380px) {
  #app > aside {
    width: 137px;
  }

  #app > main {
    margin-left: 137px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .workspace-header {
    padding: 0 7px;
  }

  nav {
    padding-right: 4px;
    padding-left: 4px;
  }

  nav button {
    gap: 5px;
    font-size: 10px;
  }

  .nav-icon {
    width: 17px;
    font-size: 15px;
  }

  .welcome {
    padding: 11px;
  }

  .welcome h1 {
    font-size: 20px;
  }

  .gallery,
  #groupDetail .gallery {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 380px) {
  main {
    padding-right: 10px;
    padding-left: 10px;
  }

  .breadcrumb-brand {
    display: none;
  }

  .stats {
    gap: 5px;
  }

  .stats article {
    padding: 10px 7px;
  }

  .stats small {
    font-size: 9px;
  }

  .stats strong {
    font-size: 21px;
  }

  .welcome {
    padding: 17px;
  }

  .welcome h1 {
    font-size: 23px;
  }

  .section-head {
    gap: 8px;
  }

  .section-head > button,
  .section-head > .upload {
    padding: 9px 7px;
    font-size: 10px;
  }
}

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