/* Committee self-service panel. Shares the Americana tokens from site.css; the
   two-column layout puts the controls beside a live preview of the site. */

body.manage::before { display: none; }

.m-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.8rem 1.2rem;
  background: var(--navy); color: var(--paper); border-bottom: 4px solid var(--brass);
}
.m-brand { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--serif); font-weight: 650; }
.m-bar nav a { color: var(--paper); font-size: 0.9rem; }

.m-demo, .m-flash {
  max-width: 82rem; margin: 0.9rem auto 0; padding: 0.7rem 1rem; font-size: 0.92rem;
}
.m-demo { background: color-mix(in srgb, var(--red) 10%, var(--paper)); border-left: 4px solid var(--red); }
.m-flash { background: color-mix(in srgb, var(--brass) 18%, var(--paper)); border-left: 4px solid var(--brass); }

.m-main {
  max-width: 82rem; margin: 0 auto; padding: 1.4rem 1.2rem 4rem;
  display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 62rem) { .m-main { grid-template-columns: 1fr; } }

.m-col { min-width: 0; }
.m-main .form { max-width: none; padding: 0; }
.m-main h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }

.m-two { display: grid; gap: 0.8rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 30rem) { .m-two { grid-template-columns: 1fr; } }

.m-main select, .m-main input[type="file"] {
  display: block; width: 100%; margin-top: 0.32rem; padding: 0.55rem 0.6rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); font: inherit; font-weight: 400; font-size: 0.92rem;
}
.m-main input[type="color"] {
  display: block; margin-top: 0.32rem; width: 100%; height: 2.5rem; padding: 2px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
.m-main input:disabled, .m-main select:disabled, .m-main button:disabled { opacity: 0.6; }

.m-logo-current {
  display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
  padding: 0.6rem; border: 1px dashed var(--line); border-radius: var(--radius);
}
.m-logo-current img { height: 2.4rem; width: auto; max-width: 11rem; }

.m-preview-col { position: sticky; top: 1rem; }
@media (max-width: 62rem) { .m-preview-col { position: static; } }
.m-frame {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--paper-raised); height: 34rem;
}
.m-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.m-single { max-width: 52rem; margin: 0 auto; padding: 1.4rem 1.2rem 4rem; }
.m-single h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.m-single .form { max-width: none; padding: 0; }
.m-allowance {
  padding: 0.6rem 0.9rem; border-radius: var(--radius);
  background: var(--paper-raised); border: 1px solid var(--line); font-size: 0.93rem;
}
