/* SAMU: the existing palette, arranged around everyday tasks. */
body.samu-admin-active { background: #fff8ef; }
.samu-admin-active > .bg-orb { display: none; }
.samu-admin-active .app-shell { max-width: 1500px; }
.samu-admin-active .hero { padding: 16px 22px; border-radius: 14px; box-shadow: none; background: #fffdf9; gap: 18px; align-items: center; }
.samu-admin-active .hero-brand { gap: 18px; }
.samu-admin-active .brand-logo { width: 105px; height: 64px; object-fit: contain; border-radius: 8px; }
.samu-admin-active .hero h1 { font-size: 1.55rem; margin: 0; }
.samu-admin-active .hero-copy { display: none; }
.samu-admin-active .hero .eyebrow { font-size: .7rem; margin: 0 0 4px; }
.samu-admin-active .hero-actions { gap: 8px; }
.samu-admin-active .role-switcher { gap: 4px; }
.samu-admin-active .role-pill { padding: 8px 12px; min-height: 38px; font-size: .85rem; }
.samu-admin-active .session-box { font-size: .82rem; }
.samu-role-menu { position: relative; }
.samu-role-menu > summary { cursor: pointer; padding: 12px; min-height: 44px; font-size: .9rem; }
.samu-role-menu[open] .role-switcher { position: absolute; right: 0; top: 100%; z-index: 45; padding: 12px; border: 1px solid #e4d7c9; border-radius: 12px; background: #fffdf9; box-shadow: 0 8px 25px #3e24161a; width: 300px; }
.samu-admin-menu { grid-column: 1; grid-row: 1 / span 40; position: sticky; top: 16px; }
.samu-admin-menu > summary { display: none; }
.samu-simple-admin { --samu-coral: #d94f35; --samu-ink: #3e2416; --samu-mint: #edf8f3; }
#view-admin.samu-simple-admin.active { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: 30px; }
.samu-simple-admin > .admin-module-page { grid-column: 2; min-width: 0; }
.samu-simple-admin .samu-old-focus { display: none !important; }
.samu-sidebar { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.samu-nav-label { margin: 0 12px 14px; font-size: .8rem; font-weight: 700; color: #6c5141; text-transform: uppercase; letter-spacing: .08em; }
.samu-sidebar button { display: flex; align-items: center; gap: 13px; min-height: 54px; border: 0; border-radius: 10px; padding: 12px; background: transparent; color: var(--samu-ink); text-align: left; font: inherit; cursor: pointer; }
.samu-sidebar button strong { font-weight: 600; font-size: .98rem; }
.samu-sidebar button.active { background: #fbe5dc; color: #b3311e; }
.samu-sidebar button:hover { background: #f8eadd; }
.samu-icon { width: 26px; height: 26px; flex: 0 0 auto; object-fit: contain; }
.samu-nav-secondary { border-top: 1px solid #e8d7c7; margin-top: 64px; padding-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.samu-nav-foot { font-size: .8rem; color: #6f594c; padding: 10px 12px; line-height: 1.5; }
.samu-simple-admin .panel.module-panel { box-shadow: none; border: 1px solid #eaded1; border-radius: 14px; padding: 24px; background: #fffdf9; }
.samu-simple-admin #admin-inicio { border: 0; background: transparent; padding: 12px 0 30px; }
.samu-page-heading { margin-bottom: 28px; }
.samu-page-heading h2 { margin: 0 0 10px; font-size: clamp(1.8rem, 3vw, 2.75rem); letter-spacing: -.025em; line-height: 1.15; }
.samu-page-heading p { color: #6a5547; margin: 0; font-size: 1.08rem; line-height: 1.5; }
.samu-home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .44fr); gap: 24px; align-items: start; }
.samu-task-list { display: flex; flex-direction: column; }
.samu-task { width: 100%; display: flex; align-items: center; gap: 20px; border: 0; border-bottom: 1px solid #e4d7c9; padding: 26px 10px; text-align: left; color: #3e2416; background: transparent; cursor: pointer; font: inherit; min-width: 0; }
.samu-task > .samu-icon { width: 43px; height: 43px; }
.samu-task .samu-arrow { margin-left: auto; width: 24px; height: 24px; }
.samu-task span { flex: 1; min-width: 0; }
.samu-task strong { display: block; font-size: 1.16rem; line-height: 1.3; margin-bottom: 7px; }
.samu-task small { display: block; color: #6a5547; font-size: .95rem; line-height: 1.5; }
.samu-task:hover { background: #fff5ec; }
.samu-task-featured { background: #d94f35; color: white; border: 0; border-radius: 14px; padding: 25px 22px; margin-bottom: 16px; min-height: 123px; }
.samu-task-featured:hover { background: #bf3d27; }
.samu-task-featured small { color: white; }
.samu-task-featured > img { filter: invert(1); }
.samu-book-card { padding: 30px 22px; border-radius: 14px; background: #edf8f3; border: 1px solid #dcece4; }
.samu-book-card > .samu-icon { width: 85px; height: 85px; display: block; margin: 4px auto 22px; }
.samu-book-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.samu-book-card p { line-height: 1.6; }
.samu-book-card button { width: 100%; margin-top: 18px; white-space: normal; }
.samu-simple-admin button, .samu-simple-admin input, .samu-simple-admin select { min-height: 44px; }
.samu-simple-admin :focus-visible, .samu-role-help a:focus-visible { outline: 3px solid #006b54; outline-offset: 4px; }
.samu-subtasks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin-bottom: 24px; }
.samu-subtasks .samu-task { padding: 20px 8px; }
.samu-disclosure { border: 1px solid #e4d7c9; border-radius: 10px; margin: 14px 0; background: #fff; }
.samu-disclosure > summary { padding: 18px; font-size: 1.05rem; font-weight: 650; min-height: 48px; cursor: pointer; }
.samu-disclosure > .admin-section { padding: 4px 18px 20px; margin: 0; }
.samu-disclosure[open] > summary { border-bottom: 1px solid #eaded1; background: #fff6ea; }
.samu-optional-fields { padding: 18px; }
.samu-purchase-photo { border-bottom: 1px solid #e4d7c9; padding-bottom: 18px; margin-bottom: 24px; }
#samu-purchase-host > .admin-section > .panel-head { display: none; }
#samu-purchase-host .cash-purchase-card > .panel-head > div { display: none; }
.samu-disclosure > #admin-inventory-alerts { padding: 12px; }
.samu-notice { background: #edf8f3; border-left: 4px solid #227b65; padding: 14px 18px; line-height: 1.5; }
.samu-pending { grid-column: 2; position: sticky; bottom: 12px; z-index: 30; background: #fff0c8; border: 1px solid #a87a16; border-radius: 12px; padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.samu-pending.hidden { display: none; }
.samu-steps { display: flex; gap: 10px; padding: 0; list-style: none; margin: 0 0 24px; }
.samu-steps li { flex: 1; border-bottom: 3px solid #e7ddd4; padding: 12px; color: #705b4e; }
.samu-steps [aria-current] { border-color: #d94f35; color: #a92b17; font-weight: 700; }
.samu-wizard-body { max-width: 650px; margin: 0 auto; padding: 20px 0; }
.samu-wizard-body label { display: grid; gap: 8px; margin: 18px 0; }
.samu-wizard-body input, .samu-wizard-body select { width: 100%; }
.samu-price-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border: 1px solid #e2d6c9; border-radius: 12px; padding: 10px 20px; background: #fff8ef; }
.samu-price-comparison strong { display: block; font-size: 1.6rem; margin-top: 8px; }
#samu-price-feedback { color: #674323; line-height: 1.6; font-weight: 600; }
.samu-help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.samu-help-grid article { padding: 20px; border: 1px solid #e4d7c9; border-radius: 12px; }
.samu-help-grid li, .samu-help-grid p { line-height: 1.7; }
.samu-role-help { text-align: right; font-size: .95rem; grid-column: 1 / -1; }
.samu-role-help a { display: inline-block; padding: 12px; color: #72503d; }
.samu-cash-shortcuts { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 24px; }
.samu-cash-shortcuts button { min-height: 46px; }
#samu-cash-purchase > .admin-section, #samu-cash-closure > .admin-section { padding: 18px; }
.samu-simple-admin #admin-storage-warning { grid-column: 2; }
.samu-simple-admin .cards, .samu-simple-admin .grid, .samu-simple-admin .purchase-line { min-width: 0; }
.samu-simple-admin input, .samu-simple-admin select, .samu-simple-admin textarea { max-width: 100%; }
@media (max-width: 1050px) {
  #view-admin.samu-simple-admin.active { grid-template-columns: 185px minmax(0, 1fr); gap: 18px; }
  .samu-home-grid { grid-template-columns: 1fr; }
  .samu-book-card { display: grid; grid-template-columns: 60px 1fr; column-gap: 18px; }
  .samu-book-card > img { grid-column: 1; grid-row: 1 / span 4; width: 54px !important; height: 54px !important; }
  .samu-book-card > :not(img) { grid-column: 2; }
}
@media (max-width: 700px) {
  .samu-admin-active .hero { display: flex; flex-direction: column; align-items: stretch; padding: 14px; }
  .samu-admin-active .hero-brand { align-items: center; }
  .samu-admin-active .hero-brand { flex-direction: row; text-align: left; justify-content: flex-start; }
  .samu-admin-active .hero h1 { font-size: 1.3rem; }
  .samu-admin-active .hero-actions { gap: 8px; }
  .samu-admin-active .brand-logo { width: 88px; height: 52px; }
  .samu-admin-active .role-switcher { flex-wrap: wrap; }
  .samu-admin-active .hero-actions { display: flex; flex-direction: row; align-items: center; justify-content: space-between; }
  .samu-admin-active .session-box { flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
  .samu-admin-active .session-box span { max-width: 165px; font-size: .75rem; }
  .samu-role-menu[open] .role-switcher { right: auto; left: 0; width: 285px; }
  .samu-admin-menu { position: static; width: 100%; }
  .samu-admin-menu > summary { display: list-item; border: 1px solid #e4d7c9; border-radius: 10px; padding: 14px 18px; cursor: pointer; font-weight: 650; }
  #view-admin.samu-simple-admin.active { display: flex; flex-direction: column; gap: 18px; }
  .samu-sidebar { position: static; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; background: #fff8ef; padding: 8px; border-radius: 12px; }
  .samu-sidebar > button { flex-direction: column; gap: 7px; text-align: center; padding: 10px 4px; }
  .samu-sidebar button strong { font-size: .8rem; line-height: 1.25; }
  .samu-nav-label, .samu-nav-foot { display: none; }
  .samu-nav-secondary { grid-column: 1 / -1; display: flex; flex-direction: row; margin: 0; padding: 8px 0 0; gap: 4px; }
  .samu-nav-secondary button { flex: 1; justify-content: center; padding: 10px 4px; gap: 7px; }
  .samu-nav-secondary img { width: 19px; height: 19px; }
  .samu-simple-admin > .admin-module-page { width: 100%; }
  .samu-simple-admin .panel.module-panel { padding: 16px; border-radius: 12px; }
  .samu-task { gap: 14px; padding: 22px 6px; }
  .samu-task-featured { padding: 20px 16px; }
  .samu-task > .samu-icon { width: 32px; height: 32px; }
  .samu-task strong { font-size: 1.1rem; }
  .samu-subtasks, .samu-help-grid { grid-template-columns: 1fr; }
  .samu-pending { width: 100%; flex-direction: column; align-items: stretch; }
  .samu-disclosure > .admin-section { padding: 4px 10px 16px; }
  .samu-steps li { padding: 10px 3px; font-size: .9rem; }
  .samu-price-comparison { padding: 8px 14px; gap: 12px; }
  .samu-price-comparison strong { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .samu-simple-admin .admin-module-page { animation: none; scroll-behavior: auto; }
}
