/* Studio components and their responsive rules.
 * Keep ordered overrides intact; see web/static/styles/README.md. */

.section-head small,
.billing-card small {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--rust);
}
.app-page {
  background: #f4f2ec;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 245px;
  background: #20241f;
  color: white;
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 10;
  overflow-y: auto;
  gap: 32px;
}
.sidebar .brand-mark {
  background: #f4f2ec;
  color: var(--ink);
}
.side-nav {
  display: grid;
  gap: 6px;
  margin-top: 70px;
}
.side-nav a {
  font-size: 11px;
  color: #99a097;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}
.side-nav a.active,
.side-nav a:hover {
  background: #30362f;
  color: white;
}
.side-nav span {
  font-size: 16px;
}
.plan-chip {
  border: 1px solid #3d443c;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.plan-chip div {
  display: flex;
  flex-direction: column;
}
.plan-chip small {
  text-transform: uppercase;
  font-size: 8px;
  color: #969d94;
}
.plan-chip strong {
  font-size: 10px;
  text-transform: capitalize;
}
.plan-chip a {
  font-size: 9px;
  text-decoration: underline;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9px;
  color: white;
  background: #5f5f5f;
}
.user-chip > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.user-chip strong {
  font-size: 10px;
}
.user-chip small {
  font-size: 8px;
  color: #90968e;
}
.icon-button {
  color: #a5aba2;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.app-main {
  margin-left: 245px;
  padding: 50px 5vw 80px;
  min-height: 100vh;
}
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.app-header h1 {
  font-size: 43px;
  margin: 18px 0 8px;
}
.app-header p {
  font-family: Georgia, serif;
  color: var(--muted);
  font-size: 13px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 45px 0 75px;
  border: 1px solid var(--line);
  background: #eeebe3;
}
.stat-grid article {
  padding: 24px 25px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.stat-grid article:last-child {
  border: 0;
}
.stat-grid span {
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.stat-grid strong {
  font:
    34px/1.2 Georgia,
    serif;
  margin: 11px 0;
}
.stat-grid small {
  font-size: 9px;
  color: var(--muted);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: 28px;
  margin: 7px 0 0;
}
.text-button {
  border: 0;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
}
.gallery-list {
  border-top: 1px solid var(--line);
}
.gallery-row {
  display: grid;
  align-items: center;
  gap: 18px;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  transition: 0.2s background;
  grid-template-columns: 70px minmax(0, 1fr) 90px 140px 25px;
}
.gallery-row:hover {
  background: #ece9e1;
}
.gallery-thumb {
  width: 70px;
  height: 48px;
  background: #dedbd2;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-meta {
  display: flex;
  flex-direction: column;
}
.gallery-meta strong {
  font:
    16px Georgia,
    serif;
}
.gallery-meta span,
.gallery-stats {
  font-size: 9px;
  color: var(--muted);
}
.status {
  justify-self: start;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 8px;
  border-radius: 20px;
}
.status-published {
  background: #dce5d9;
  color: #42513e;
}
.status-draft {
  background: #e8dfd6;
  color: #7b5d4c;
}
.gallery-stats {
  display: flex;
  justify-content: space-between;
}
.row-arrow {
  justify-self: end;
}
.empty-state {
  text-align: center;
  border: 1px solid var(--line);
  padding: 70px;
  background: #eeece5;
}
.empty-art {
  font-size: 40px;
  color: var(--sage);
}
.empty-state h3 {
  font:
    25px Georgia,
    serif;
  margin: 13px 0 5px;
}
.empty-state p {
  font-size: 11px;
  color: var(--muted);
  max-width: 430px;
  margin: 0 auto 24px;
}
.billing-card {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.billing-card h3 {
  font:
    20px Georgia,
    serif;
  text-transform: capitalize;
  margin: 7px 0;
}
.billing-card p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.mini-sidebar {
  width: 210px;
}
.mini-sidebar > div:first-child {
  display: grid;
  gap: 60px;
}
.back-link {
  font-size: 10px;
  color: #b1b7af;
}
@media (max-width: 1000px) {
  .sidebar {
    display: none;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-grid article:nth-child(2) {
    border-right: 0;
  }
  .stat-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .gallery-stats {
    display: none;
  }
}
@media (max-width: 720px) {
  .app-main {
    margin: 0;
  }
  .app-header {
    display: block;
  }
  .app-header .btn {
    margin-top: 18px;
  }
  .stat-grid {
    margin: 35px 0 55px;
  }
  .gallery-row {
    gap: 12px;
  }
  .gallery-thumb {
    width: 55px;
  }
  .gallery-row .status {
    display: none;
  }
  .billing-card {
    align-items: flex-start;
  }
  .mini-sidebar {
    display: none;
  }
}
.sidebar .brand img {
  width: 115px;
  height: 40px;
}

.storage-stat progress {
  width: 100%;
  height: 4px;
  margin-top: 12px;
  border: 0;
  background: #d9d5cc;
  accent-color: var(--ink);
}
.storage-stat progress::-webkit-progress-bar {
  background: #d9d5cc;
}
.storage-stat progress::-webkit-progress-value {
  background: var(--ink);
}
.storage-stat progress::-moz-progress-bar {
  background: var(--ink);
}
.status-expired {
  background: #eadad4;
  color: #774936;
}
.billing-actions {
  display: grid;
  gap: 9px;
}
.trial-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding: 18px 22px;
  border: 1px solid #c8b9a8;
  border-left: 3px solid var(--rust);
  border-radius: 2px;
  background: #eee4d8;
}
.trial-banner > div {
  display: grid;
  gap: 2px;
}
.trial-banner small {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--rust);
}
.trial-banner strong {
  font:
    20px Georgia,
    serif;
}
.trial-banner span {
  font-size: 10px;
  color: var(--muted);
}
.trial-banner .btn {
  flex: 0 0 auto;
}
@media (max-width: 700px) {
  .trial-banner {
    align-items: flex-start;
    flex-direction: column;
  }
}
.sidebar-storage {
  border-top: 1px solid #3d443c;
  border-bottom: 1px solid #3d443c;
  padding: 13px 0;
  margin: 0 0 16px;
  display: grid;
  gap: 7px;
}
.sidebar-storage > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sidebar-storage small {
  font-size: 8px;
  letter-spacing: 0.14em;
  color: #969d94;
}
.sidebar-storage strong {
  font-size: 9px;
  font-weight: 600;
}
.sidebar-storage progress {
  width: 100%;
  height: 3px;
  border: 0;
  background: #424941;
  accent-color: #d5d9d2;
}
.sidebar-storage progress::-webkit-progress-bar {
  background: #424941;
}
.sidebar-storage progress::-webkit-progress-value {
  background: #d5d9d2;
}
.sidebar-storage progress::-moz-progress-bar {
  background: #d5d9d2;
}
.sidebar-storage > span {
  font-size: 8px;
  color: #969d94;
}
@media (max-width: 720px) {
  .sidebar-storage {
    display: none;
  }
}
.sidebar .user-chip {
  flex-wrap: wrap;
}
.sidebar .user-chip .sign-out-form {
  width: 100%;
  margin-top: 8px;
}
.sidebar .sign-out-form button {
  color: white;
  border-color: #777;
  min-height: 44px;
  width: 100%;
}
.app-main,
.gallery-meta,
.app-header > div,
.billing-card > div {
  min-width: 0;
}
.app-header h1,
.gallery-meta,
.user-chip,
.billing-card,
.empty-state {
  overflow-wrap: anywhere;
}
.sidebar :focus-visible {
  outline-color: white;
}
@media (max-width: 1000px) {
  .app-main {
    margin-left: 0;
  }
  .gallery-row {
    grid-template-columns: 70px minmax(0, 1fr) 90px 25px;
  }
}
@media (max-width: 720px) {
  .app-main {
    padding: 28px 18px max(48px, env(safe-area-inset-bottom));
  }
  .app-header h1 {
    font-size: clamp(30px, 8vw, 38px);
  }
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-grid article {
    padding: 18px 14px;
  }
  .stat-grid strong {
    font-size: 28px;
  }
  .section-head {
    flex-wrap: wrap;
    gap: 12px;
  }
  .gallery-row {
    grid-template-columns: 55px minmax(0, 1fr) 25px;
    padding-inline: 0;
  }
  .gallery-meta strong {
    line-height: 1.35;
  }
  .billing-card {
    flex-direction: column;
    gap: 20px;
  }
  .empty-state {
    padding: 36px 20px;
  }
}
