/* Arc Command Studio - PASS 461m [461-A] W459-2: desktop-first, full width. The builder's own controls keep their look; this file lays
   the workspace out around them. Tablet/phone: the section list becomes a strip across the top and the summary drops below. */
main { max-width: 880px; }
.ac-door { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 2px; }
.ac-door .fsbtn { min-height: 48px; font-size: 15px; }

#fsBuilderModal.ac-studio { padding: 0; background: #14171b; align-items: stretch; justify-content: stretch; }
#fsBuilderModal.ac-studio .ac-box { max-width: none; width: 100vw; height: 100vh; height: 100dvh; max-height: none; border: 0; border-radius: 0; padding: 0;
  display: grid; grid-template-columns: 240px minmax(0, 1fr) 290px; overflow: hidden; background: #1d2126; text-align: left; }
.ac-nav { background: #171b1f; border-right: 1px solid #2e333a; padding: calc(env(safe-area-inset-top, 0px) + 18px) 12px 14px; display: flex; flex-direction: column; overflow-y: auto; }
.ac-nav-head { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #d4a437; margin: 0 6px 12px; }
.ac-nav ol { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.ac-nav li button { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; background: none; border: 1px solid transparent; color: #c9cdd2;
  border-radius: 10px; padding: 10px 10px; font-size: 13.5px; cursor: pointer; min-height: 44px; }
.ac-nav li button:hover { background: #22272d; }
.ac-nav li button.on { background: #2a2416; border-color: #6b5420; color: #f2ecd9; font-weight: 700; }
.ac-n { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; background: #2e333a; color: #aab; }
.ac-nav li button.on .ac-n { background: #d4a437; color: #16120a; }
.ac-nav-foot { margin-top: auto; padding-top: 14px; }
.ac-nav-foot .btn { width: 100%; min-height: 44px; }

.ac-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ac-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: calc(env(safe-area-inset-top, 0px) + 16px) 28px 14px; border-bottom: 1px solid #2e333a; background: #1a1e23; }
.ac-title { flex: 1 1 260px; min-width: 0; }
.ac-kicker { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8a9; }
.ac-head h1 { font-size: 24px; line-height: 1.15; margin-top: 2px; color: #f2ecd9; overflow-wrap: anywhere; }
.ac-safe { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: #7ddb8f; }
.ac-safe .btn, .ac-close { min-height: 40px; }
.ac-pane { flex: 1 1 auto; overflow-y: auto; padding: 22px 28px 40px; -webkit-overflow-scrolling: touch; }
#fsBuilderModal.ac-studio #fsBldBody { max-width: 980px; }
#fsBuilderModal.ac-studio #fsBldBody > .ac-sec > h3:first-of-type { display: none; }   /* the old box title: the head says it now */
.ac-sec { background: #22262c; border: 1px solid #343a42; border-radius: 14px; padding: 18px 20px; margin-bottom: 18px; scroll-margin-top: 12px; }
.ac-sec-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; color: #f2ecd9; margin-bottom: 12px; }
.ac-sec-title .ac-n { background: #d4a437; color: #16120a; }
.ac-empty, .ac-review-note { font-size: 13px; color: #9aa3ad; margin-bottom: 10px; line-height: 1.5; }
.ac-pick { max-width: 640px; background: #22262c; border: 1px solid #343a42; border-radius: 14px; padding: 26px; }
.ac-pick h2 { font-size: 20px; color: #f2ecd9; margin-bottom: 8px; }
.ac-pick p { font-size: 14px; color: #aab; line-height: 1.55; margin-bottom: 16px; }
.ac-foot { display: flex; align-items: center; gap: 10px; padding: 12px 28px calc(env(safe-area-inset-bottom, 0px) + 12px); border-top: 1px solid #2e333a; background: #1a1e23; }
.ac-foot .btn { min-height: 44px; }
.ac-stepof { font-size: 12.5px; color: #8a9; }

.ac-sum { background: #171b1f; border-left: 1px solid #2e333a; padding: calc(env(safe-area-inset-top, 0px) + 18px) 16px 16px; overflow-y: auto; }
.ac-card { background: #22262c; border: 1px solid #343a42; border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.ac-big { font-size: 18px; font-weight: 800; color: #f2ecd9; margin: 4px 0 10px; overflow-wrap: anywhere; }
.ac-card dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 13px; }
.ac-card dt { color: #9aa3ad; } .ac-card dd { color: #e8e8e8; text-align: right; }
.ac-note { font-size: 12.5px; color: #aab; line-height: 1.5; border-left: 3px solid #2e7d4f; }

.ac-review .ac-rbox { max-width: 760px; width: 100%; max-height: 88vh; text-align: left; padding: 22px; }
.ac-review h2 { font-size: 20px; color: #f2ecd9; margin: 2px 0 8px; overflow-wrap: anywhere; }
.ac-lead { font-size: 14px; color: #c9cdd2; line-height: 1.5; margin-bottom: 12px; }
.ac-changes { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.ac-changes li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #1d2126; border: 1px solid #343a42; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.ac-changes li b { flex: 1 1 240px; min-width: 0; color: #e8e8e8; font-weight: 600; overflow-wrap: anywhere; }
.ac-changes li.hi { border-color: #8a5a1a; background: #2a2116; }
.ac-changes li.hi b::before { content: "\26A0  "; color: #f0b44a; }
.ac-ba { color: #9aa3ad; font-size: 12.5px; overflow-wrap: anywhere; }
.ac-type { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #f0b44a; margin: 6px 0 10px; }
.ac-type input { padding: 10px; border-radius: 8px; border: 1px solid #6b5420; background: #1a1d21; color: #e8e8e8; font-size: 15px; }
.ac-small { font-size: 12px; color: #889; line-height: 1.5; }
.ac-review .row .fsbtn[disabled] { opacity: .45; cursor: not-allowed; }

@media (max-width: 1100px) {
  #fsBuilderModal.ac-studio .ac-box { grid-template-columns: 210px minmax(0, 1fr); }
  .ac-sum { display: none; }
}
@media (max-width: 820px) {
  #fsBuilderModal.ac-studio .ac-box { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .ac-nav { border-right: 0; border-bottom: 1px solid #2e333a; padding: calc(env(safe-area-inset-top, 0px) + 10px) 10px 8px; flex-direction: row; align-items: center; gap: 8px; overflow-x: auto; overflow-y: hidden; }
  .ac-nav-head { display: none; }
  .ac-nav ol { flex-direction: row; gap: 6px; }
  .ac-nav li button { white-space: nowrap; padding: 8px 10px; min-height: 44px; }
  .ac-nav-foot { margin: 0; padding: 0; } .ac-nav-foot .btn { width: auto; white-space: nowrap; }
  .ac-head { padding: 12px 16px; } .ac-pane { padding: 16px 16px 32px; } .ac-foot { padding: 10px 16px calc(env(safe-area-inset-bottom, 0px) + 10px); }
  .ac-head h1 { font-size: 20px; }
}
