.app-header .header-copy { width: min(100%, 530px); }

.system-switch {
  position: relative;
  display: grid;
  gap: 8px;
  width: min(100%, 530px);
  margin-top: 16px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(173, 195, 226, .82);
  border-radius: 18px;
  background: radial-gradient(circle at 100% 0, rgba(87, 184, 255, .16), transparent 42%), rgba(255, 255, 255, .88);
  box-shadow: 0 16px 38px rgba(42, 81, 138, .15), inset 0 1px 0 #fff;
  backdrop-filter: blur(18px);
}

.system-switch::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, #1f67ed, #55baf4); content: ""; }
.system-switch-heading { display: flex; justify-content: space-between; gap: 12px; padding: 0 4px 0 7px; }
.system-switch-heading strong { color: #234c82; font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.system-switch-heading span { color: #8090a8; font-size: 11px; font-weight: 650; }
.system-switch-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.system-switch button {
  position: relative;
  min-width: 0;
  min-height: 112px;
  overflow: hidden;
  border: 1px solid rgba(182, 201, 227, .78);
  border-radius: 13px;
  padding: 16px;
  color: #52647e;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 5px 14px rgba(50, 82, 129, .08);
  cursor: pointer;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.system-switch button:hover { border-color: rgba(36, 100, 242, .48); box-shadow: 0 9px 20px rgba(36, 100, 242, .14); transform: translateY(-1px); }
.system-switch button:focus-visible { outline: 3px solid rgba(36, 100, 242, .24); outline-offset: 2px; }
.system-switch button > img { position: absolute; right: -16px; bottom: -19px; z-index: 0; width: 156px; height: 125px; object-fit: contain; object-position: right bottom; opacity: .45; filter: saturate(.75) contrast(1.05) drop-shadow(0 10px 12px rgba(26, 60, 111, .13)); pointer-events: none; transition: opacity .18s ease, transform .18s ease, filter .18s ease; }
.system-switch button[data-system="instant"] > img { right: -23px; bottom: -15px; width: 170px; }
.system-switch button[data-system="fullarch"] > img { right: -12px; bottom: -25px; width: 170px; height: 148px; }
.system-switch button > span { position: relative; z-index: 1; display: grid; gap: 3px; min-width: 98px; width: min-content; }
.system-switch button b { overflow: hidden; color: #2b4263; font-size: 17px; font-weight: 900; letter-spacing: .02em; text-overflow: ellipsis; white-space: nowrap; }
.system-switch button small { overflow: hidden; color: #8290a5; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.system-switch button em { position: absolute; top: 10px; right: 10px; z-index: 2; display: none; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 999px; color: #fff; background: rgba(255,255,255,.15); font-size: 9px; font-style: normal; font-weight: 800; white-space: nowrap; }
.system-switch button em i { width: 5px; height: 5px; border-radius: 50%; background: #91f2ce; box-shadow: 0 0 0 3px rgba(145,242,206,.15); }
.system-switch button[aria-pressed="true"] { border-color: #1556cc; color: #fff; background: linear-gradient(135deg, #173c76, #2265dd 58%, #2f83f4); box-shadow: 0 12px 24px rgba(27, 86, 190, .28), inset 0 1px 0 rgba(255,255,255,.2); transform: translateY(-1px); }
.system-switch button[aria-pressed="true"] > img { opacity: .95; filter: saturate(1.04) contrast(1.06) drop-shadow(0 13px 14px rgba(4,31,86,.26)); transform: scale(1.035) translateX(-2px); }
.system-switch button[aria-pressed="true"] b, .system-switch button[aria-pressed="true"] small { color: #fff; }
.system-switch button[aria-pressed="true"] small { opacity: .76; }
.system-switch button[aria-pressed="true"] em { display: inline-flex; }

.fullarch-jaw { flex: 0 0 auto; min-width: 76px; border: 1px solid rgba(36,100,242,.24); border-radius: 8px; padding: 7px 8px; color: #365678; background: #fff; font: inherit; font-size: 12px; }
.fullarch-integration-note { margin: 0; color: #637995; font-size: 12px; font-weight: 750; }
body[data-system="fullarch"] #accessoryProfileSelector,
body[data-system="fullarch"] #parameterSettingsButton { display: none; }
body[data-system="fullarch"] .account-summary { border-color: rgba(206, 182, 114, .42); background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,248,226,.82)); }
body[data-system="fullarch"] .upload-card { border-color: rgba(174, 205, 236, .95); }

#uploadPanel .limit-pill { display: inline-flex; align-items: center; line-height: 1; }
#uploadPanel .limit-pill svg { display: block; flex: 0 0 18px; transform: translateY(1px); }
@media (min-width: 701px) { body[data-system="fullarch"] #uploadPanel .section-heading { align-items: center; } }

.fullarch-guide-link { display: inline-flex; align-items: center; gap: 5px; color: #f50000; font-weight: 800; text-decoration: none; cursor: pointer; }
.fullarch-guide-link-label { text-decoration: underline; text-decoration-color: rgba(245, 0, 0, .45); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.fullarch-guide-link::after { width: 15px; height: 15px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; content: "?"; font-size: 10px; font-weight: 900; line-height: 1; }
.fullarch-guide-link:hover { color: #c40000; }
.fullarch-guide-link:focus-visible { outline: 3px solid rgba(245,0,0,.18); outline-offset: 4px; border-radius: 3px; }

.fullarch-guide-dialog { width: min(1120px, calc(100vw - 32px)); height: min(880px, calc(100vh - 32px)); max-width: none; max-height: none; padding: 0; overflow: hidden; border: 1px solid rgba(176,200,235,.9); border-radius: 20px; color: var(--ink); background: #f5f9ff; box-shadow: 0 28px 90px rgba(12,44,91,.34); }
.fullarch-guide-dialog::backdrop { background: rgba(16,37,70,.52); backdrop-filter: blur(7px); }
.fullarch-guide-card { height: 100%; display: grid; grid-template-rows: auto minmax(0,1fr); }
.fullarch-guide-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 20px 15px 24px; border-bottom: 1px solid rgba(184,204,232,.78); background: linear-gradient(100deg,#fff,#f0f8ff); }
.fullarch-guide-header span { color: #4f76ac; font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.fullarch-guide-header h2 { margin: 3px 0 0; color: #213b63; font-size: 21px; }
.fullarch-guide-close { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(177,200,229,.85); border-radius: 10px; color: #5b7190; background: #fff; cursor: pointer; }
.fullarch-guide-close:hover { color: var(--blue); background: #edf5ff; }
.fullarch-guide-close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.fullarch-guide-document { min-height: 0; overflow: auto; padding: 24px; background: linear-gradient(rgba(238,246,255,.7) 1px,transparent 1px), linear-gradient(90deg,rgba(238,246,255,.7) 1px,transparent 1px), #f7fbff; background-size: 24px 24px; }
.fullarch-guide-content { width: min(100%,920px); display: grid; gap: 18px; margin: 0 auto; }
.fullarch-guide-section { padding: 20px; border: 1px solid rgba(180,204,235,.85); border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: 0 8px 20px rgba(49,87,139,.06); }
.fullarch-guide-section-heading { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 11px; align-items: start; }
.fullarch-guide-section-heading > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(135deg,#2665dc,#23b3d0); font-size: 12px; font-weight: 900; }
.fullarch-guide-section h3 { margin: 1px 0 0; color: #203d68; font-size: 17px; }
.fullarch-guide-section p { margin: 5px 0 0; color: #5f7495; font-size: 14px; line-height: 1.7; }
.fullarch-guide-section figure { margin: 17px 0 0; }
.fullarch-guide-section img { width: 100%; display: block; border: 1px solid rgba(181,202,231,.9); border-radius: 10px; background: #fff; }
.fullarch-guide-section figcaption { margin-top: 8px; color: #6b7f9c; font-size: 12px; line-height: 1.6; }

@media (max-width: 560px) {
  .app-header .header-copy, .system-switch { width: 100%; }
  .system-switch { padding: 8px; border-radius: 15px; }
  .system-switch-heading { padding-left: 5px; }
  .system-switch-heading span { display: none; }
  .system-switch button { min-height: 95px; padding: 8px; }
  .system-switch button > img { right: -18px; bottom: -12px; width: 108px; height: 92px; }
  .system-switch button[data-system="instant"] > img { right: -25px; bottom: -9px; width: 122px; }
  .system-switch button[data-system="fullarch"] > img { right: -10px; bottom: -16px; width: 122px; height: 110px; }
  .system-switch button > span { min-width: 74px; gap: 2px; }
  .system-switch button b { font-size: 12px; }
  .system-switch button small { font-size: 9px; }
  .system-switch button em { display: none !important; }
  .fullarch-guide-dialog { width: calc(100vw - 18px); height: calc(100vh - 18px); border-radius: 15px; }
  .fullarch-guide-header { gap: 10px; padding: 13px 14px; }
  .fullarch-guide-header h2 { font-size: 17px; }
  .fullarch-guide-document { padding: 12px; background-size: 18px 18px; }
  .fullarch-guide-section { padding: 15px; }
  .fullarch-guide-section h3 { font-size: 16px; }
  .fullarch-guide-section p { font-size: 13px; }
}

/* Product identity remains visible throughout upload, tasks and ledger. */
body[data-system="instant"]:has(#appView:not([hidden])) {
  background: radial-gradient(ellipse at 90% 0%, #b4e5f5 0%, transparent 55%),
    linear-gradient(135deg, #eaf4ff 0%, #d2e8ff 60%, #edf7ff 100%);
  background-attachment: fixed;
}
body[data-system="fullarch"]:has(#appView:not([hidden])) {
  background: radial-gradient(ellipse at 90% 0%, #e9b2bd 0%, transparent 55%),
    linear-gradient(135deg, #fff0f3 0%, #f1ced6 60%, #fff1f4 100%);
  background-attachment: fixed;
}
body[data-system="fullarch"] .app-sidebar {
  background: rgba(255, 247, 249, .94);
  border-color: #dfb0bd;
  box-shadow: 0 16px 42px rgba(133, 59, 82, .10);
}
body[data-system="fullarch"] .sidebar-nav a.active,
body[data-system="fullarch"] .sidebar-nav a:hover {
  background: linear-gradient(135deg, #a34664, #b95b78);
  box-shadow: 0 12px 28px rgba(133, 59, 82, .18);
}
body[data-system="fullarch"] .system-switch {
  background: linear-gradient(135deg, #fff9fb, #f7dce4);
  border-color: #dbadbc;
  box-shadow: 0 16px 38px rgba(133, 59, 82, .12);
}
body[data-system="fullarch"] .system-switch::before {
  background: linear-gradient(180deg, #a34664, #db8fa5);
}
body[data-system="fullarch"] .system-switch-heading strong { color: #8d3f5a; }
.system-switch button[data-system="fullarch"][aria-pressed="true"] {
  background: linear-gradient(135deg, #8e3e59, #aa4c6b 60%, #b85b78);
  border-color: #9b4562;
  box-shadow: 0 12px 24px rgba(133, 59, 82, .22);
}
body[data-system="fullarch"] .upload-card {
  background: rgba(255, 250, 252, .93);
  border-color: #dfb4c1;
}
body[data-system="fullarch"] .account-summary {
  background: #fff3f6;
  border-color: #dca9ba;
}
