.account-menu {
  position: relative;
  padding: 0;
  background: none;
  border: 0;
}
.account-menu summary { padding: 8px; }
.account-menu[open] { z-index: 6; }
.account-menu-content {
  position: absolute;
  right: 0;
  top: 100%;
  display: grid;
  min-width: 180px;
  padding: 10px 14px;
  gap: 8px;
  border: 1px solid #c6cbb9;
  border-radius: 12px;
  background: #fffdf6;
  box-shadow: 0 12px 25px #173e3426;
}
.bar:has(.account-menu[open]) nav { overflow: visible; }
.admin-layout {
  display: grid;
  grid-template-columns: minmax(175px, 215px) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.admin-nav { background: #133f34; color: #ffefcc; border-radius: 16px; }
.admin-nav a { color: inherit; display: block; text-decoration: none; }
.admin-nav nav { display: grid; gap: 2px; }
.admin-nav nav a { padding: 9px 0; }
.admin-home { font: 23px Georgia, serif; margin-bottom: 12px; }
.admin-content h1 { font-size: clamp(38px, 5vw, 60px); margin-top: 5px; }
.metric-grid, .studio-grid { display: grid; gap: 14px; }
.metric-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.metric-grid > div, .panel-card {
  border: 1px solid #d2d4c3;
  border-radius: 14px;
  background: #fffdf6;
  padding: 18px;
  box-shadow: 0 4px 0 #d8dccd;
}
.metric-grid strong { display: block; font-size: 30px; color: #065b48; }
.panel-card { margin-block: 16px; min-width: 0; }
.panel-card h2 { font-size: 28px; margin-top: 0; }
.panel-row {
  border-bottom: 1px solid #dedfd1;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  overflow-wrap: anywhere;
}
.activity-chart { height: 148px; display: flex; gap: 6px; overflow-x: auto; margin-top: 12px; }
.activity-day { flex: 1 0 20px; display: flex; flex-direction: column; justify-content: end; align-items: center; }
.activity-bar { display: block; height: var(--height); max-height: 98px; min-height: 2px; width: min(22px, 80%); border-radius: 5px; background: #39705c; }
.activity-count, .activity-day small { font-size: 11px; }
.period-picker a { padding: 6px 12px; display: inline-block; border-radius: 16px; }
.period-picker a[aria-current] { background: #dceacb; }
.studio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.studio-preview { background: #113c32; color: #fff4d6; overflow-wrap: anywhere; }
.studio-preview em, .studio-preview .eyebrow { color: #f5d38b; }
.preview-about { margin-top: 32px; }
.maintenance-note h1 { font-style: italic; animation: maintenance-reveal .65s ease-out; }
@keyframes maintenance-reveal { from { opacity: 0; translate: 0 7px; } }
@media (max-width: 800px) {
  .admin-layout, .studio-grid { grid-template-columns: 1fr; gap: 10px; }
  .admin-nav nav { display: flex; flex-wrap: wrap; column-gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { .maintenance-note h1 { animation: none; } }

#language-choice {
  width: min(470px, calc(100vw - 32px));
  color: #123b31;
  padding: 26px;
  background: #fffdf4;
  border: 1px solid #676e58;
  border-radius: 18px;
}
#language-choice::backdrop { background: #102f2ac4; }
.language-close { position: absolute; right: 12px; top: 8px; font-size: 23px; }
.language-hindi { animation: language-in .4s .25s both; }
@keyframes language-in { from { opacity: 0; translate: 0 8px; } }
.homepage-gallery { margin: 34px 0; }
.homepage-gallery img { width: 100%; max-height: 420px; display: block; object-fit: cover; animation: language-in .4s; }
.site-idea { white-space: pre-wrap; }
.voice #mic span[data-ui-text] {
  all: unset;
  align-self: center;
}
@media (prefers-reduced-motion: reduce) {
  .language-hindi, .homepage-gallery img { animation: none; }
}

.studio-blocks { padding: 0; list-style-position: inside; }
.studio-blocks li { display: flex; align-items: center; gap: 8px; border: 1px solid #d2d4c3; border-radius: 8px; margin-bottom: 6px; padding: 4px 9px; cursor: grab; }
.studio-blocks li span { flex: 1; }
.studio-blocks li button { min-height: 36px; }

.assistant-preview {
  padding: 12px;
  background: #eef1e4;
  border: 1px solid #c6cbb9;
  border-radius: 8px;
}
.assistant-preview h3 { margin: 0 0 8px; }
.assistant-preview dd { overflow-wrap: anywhere; }
