.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; }

.section-builder {
  border-top: 1px solid #d7dcce;
  margin: 20px 0;
  padding-top: 14px;
}
.builder-toggle {
  display: flex;
  align-items: start;
  gap: 8px;
  margin-block: 10px;
}
.builder-list { margin: 12px 0; }
.studio-section-editor {
  margin-bottom: 8px;
  border: 1px solid #c7d2c4;
  border-radius: 10px;
  background: #f9faef;
}
.studio-section-editor summary {
  padding: 10px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
[data-section-grip] { cursor: grab; color: #527260; }
.studio-section-fields { padding: 0 12px 12px; }
.studio-section-fields label { display: block; margin-top: 10px; }
.builder-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.builder-format { padding: 6px 10px 9px; margin-top: 10px; border: 1px solid #d7dcce; }
.builder-format label { display: inline-flex; align-items: center; gap: 4px; margin: 4px 8px 3px 0; }
.builder-upload { border-top: 1px solid #d7dcce; margin-top: 14px; padding-top: 10px; }
.builder-preview { border-top: 1px solid #91aa8e; margin-top: 28px; padding-top: 12px; }
.builder-preview select { margin: 5px 0 10px; }
[data-builder-preview].preview-phone { max-width: 320px; margin-inline: auto; }
.composed-section {
  display: grid;
  gap: clamp(16px, 3vw, 34px);
  align-items: center;
  padding: clamp(18px, 4vw, 46px);
  margin: 20px 0;
  border: 1px solid #cbd1c0;
  border-radius: 14px;
  color: #163c31;
  overflow-wrap: anywhere;
}
.composed-with-image { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.composed-section img { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: 9px; }
.composed-section h2 { margin: 0 0 10px; font-size: clamp(24px, 3.5vw, 43px); }
.composed-section p { margin: 0 0 16px; white-space: pre-wrap; }
.composed-section.tone-paper { background: #fffcf1; }
.composed-section.tone-sage { background: #e8eddb; }
.composed-section.tone-forest { background: #164537; color: #fff4d7; }
.composed-section.tone-forest .btn { color: #164537; background: #ffebae; }
.composed-section.font-book h2, .composed-section.font-book p { font-family: Georgia, serif; }
.composed-section.font-clean h2, .composed-section.font-clean p { font-family: Arial, sans-serif; }
.composed-section.font-mono h2, .composed-section.font-mono p { font-family: ui-monospace, monospace; }
.is-bold { font-weight: 700; }
.is-italic { font-style: italic; }
.is-underlined { text-decoration: underline; }
.preview-phone .composed-with-image { grid-template-columns: 1fr; }
@media (max-width: 620px) { .composed-with-image { grid-template-columns: 1fr; } }
