/* Ameriteam OS v150 — production-integrated command + attention layer */
.amt150-universal-search{position:relative!important;padding-right:92px!important}
.amt150-command-trigger{position:absolute;right:10px;top:50%;transform:translateY(-50%);height:38px;padding:0 13px;border:1px solid rgba(20,38,91,.14);border-radius:12px;background:#fff;color:#14265b;display:flex;align-items:center;gap:6px;font:700 13px/1 'DM Sans',sans-serif;box-shadow:0 3px 10px rgba(15,32,75,.06);z-index:3}
.amt150-command-trigger span{color:#d50d2e;font-size:15px}.amt150-command-trigger:active{transform:translateY(-50%) scale(.97)}
.amt150-bell{position:relative;display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border:1px solid #dbe2ec;border-radius:13px;background:#fff;color:#14265b;margin-right:7px;box-shadow:0 2px 8px rgba(18,35,76,.05)}
.amt150-bell svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.amt150-badge{position:absolute;right:-5px;top:-6px;min-width:19px;height:19px;padding:0 5px;border-radius:99px;background:#d50d2e;color:#fff;border:2px solid #fff;font:800 10px/15px 'DM Sans',sans-serif;text-align:center}
.amt150-command-backdrop,.amt150-drawer-backdrop{position:fixed;inset:0;background:rgba(7,18,45,.38);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);z-index:2147482000;display:flex}
.amt150-command-backdrop{align-items:flex-start;justify-content:center;padding:11vh 18px 24px}.amt150-command-panel{width:min(760px,100%);max-height:78vh;overflow:auto;background:#fff;border:1px solid #dbe3ee;border-radius:22px;box-shadow:0 28px 80px rgba(8,20,49,.25)}
.amt150-command-panel header,.amt150-drawer header{display:flex;justify-content:space-between;gap:18px;padding:22px 24px 18px;border-bottom:1px solid #e5eaf1}.amt150-command-panel h2,.amt150-drawer h2{margin:3px 0 4px;color:#10234f;font-size:27px;line-height:1.08}.amt150-command-panel p,.amt150-drawer p{margin:0;color:#6d788d;font-size:14px}.amt150-eyebrow{display:block;font:800 10px/1 'DM Sans';letter-spacing:.16em;color:#c8102e}.amt150-close,.amt150-drawer [data-close]{border:0;background:#f2f5f8;width:38px;height:38px;border-radius:11px;font-size:25px;color:#30415f;flex:0 0 auto}.amt150-command-body{padding:20px 24px 24px}.amt150-command-body textarea{box-sizing:border-box;width:100%;resize:vertical;min-height:118px;border:1.5px solid #ccd6e4;border-radius:16px;padding:16px 17px;font:600 16px/1.45 'DM Sans';color:#10234f;outline:none;background:#fbfcfe}.amt150-command-body textarea:focus{border-color:#14265b;box-shadow:0 0 0 3px rgba(20,38,91,.08)}
.amt150-command-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:12px}.amt150-command-actions span{color:#758097;font-size:12px;max-width:470px}.amt150-command-actions button,.amt150-attn button{border:0;border-radius:11px;background:#14265b;color:#fff;padding:11px 16px;font:800 13px/1 'DM Sans';white-space:nowrap}.amt150-command-actions button:disabled{opacity:.55}.amt150-suggestions{margin-top:22px}.amt150-suggest-head,.amt150-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:10px}.amt150-suggest-head strong,.amt150-section-head strong{color:#10234f}.amt150-suggest-head small,.amt150-section-head small{color:#7b879b}.amt150-suggestions>button{display:block;width:100%;text-align:left;border:1px solid #e2e8f0;background:#fff;color:#263857;border-radius:13px;padding:12px 14px;margin:8px 0;font:600 13px/1.4 'DM Sans'}.amt150-suggestions>button:hover{background:#f7f9fc;border-color:#ccd6e4}
.amt150-drawer-backdrop{justify-content:flex-end}.amt150-drawer{width:min(480px,92vw);height:100%;background:#f8fafc;box-shadow:-18px 0 60px rgba(8,20,49,.22);overflow:auto}.amt150-drawer header{position:sticky;top:0;background:#fff;z-index:2}.amt150-drawer-body{padding:16px}.amt150-drawer-body section{background:#fff;border:1px solid #e0e6ef;border-radius:16px;padding:14px;margin-bottom:13px}.amt150-attn,.amt150-note{border-top:1px solid #edf0f5;padding:13px 0}.amt150-attn:first-of-type,.amt150-note:first-of-type{border-top:0}.amt150-attn>div:first-child>span,.amt150-note>div>span{display:block;text-transform:uppercase;letter-spacing:.1em;color:#8b96a8;font-size:9px;font-weight:800}.amt150-attn h4,.amt150-note h4{margin:5px 0 4px;color:#14265b;font-size:14px}.amt150-attn p,.amt150-note p{margin:0 0 9px;color:#677389;font-size:12px;line-height:1.4}.amt150-attn>div:last-child{display:flex;gap:8px}.amt150-attn button.quiet,.amt150-note button.quiet{background:#fff;color:#53617a;border:1px solid #dce3ec}.amt150-note{display:grid;grid-template-columns:1fr auto;gap:10px}.amt150-note button{align-self:center;border:1px solid #dce3ec;background:#fff;color:#53617a;border-radius:9px;padding:8px 10px;font-weight:700}.amt150-complete{display:flex;gap:10px;padding:10px 0;border-top:1px solid #edf0f5}.amt150-complete:first-of-type{border-top:0}.amt150-complete>b{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#eaf7ef;color:#16834c}.amt150-complete div{min-width:0}.amt150-complete strong{display:block;color:#273956;font-size:12px;white-space:normal}.amt150-complete span{display:block;color:#8a95a5;font-size:10px;margin-top:3px}.amt150-empty,.amt150-loading,.amt150-error{padding:16px;color:#778398;font-size:13px;text-align:center}.amt150-error{color:#a61b31}
.amt150-toast{position:fixed;right:18px;bottom:22px;z-index:2147483000;width:min(390px,calc(100vw - 36px));background:#122452;color:#fff;border-radius:15px;padding:13px 15px;display:flex;gap:11px;box-shadow:0 16px 50px rgba(8,20,49,.28)}.amt150-toast.success{background:#12583a}.amt150-toast.error{background:#8f1730}.amt150-toast-mark{font-size:18px;color:#fff}.amt150-toast strong,.amt150-toast span{display:block}.amt150-toast strong{font-size:13px}.amt150-toast span{font-size:11px;opacity:.84;margin-top:3px;line-height:1.4}
@media(max-width:760px){
  .amt150-universal-search{padding-right:78px!important}.amt150-command-trigger{right:7px;height:34px;padding:0 10px;border-radius:10px}.amt150-command-trigger b{font-size:11px}.amt150-bell{width:42px;height:42px;flex-basis:42px;margin-right:4px}.amt150-command-backdrop{padding:7vh 10px 16px}.amt150-command-panel{max-height:86vh;border-radius:18px}.amt150-command-panel header,.amt150-drawer header{padding:18px}.amt150-command-body{padding:16px 18px 20px}.amt150-command-panel h2,.amt150-drawer h2{font-size:24px}.amt150-command-actions{align-items:flex-end}.amt150-command-actions span{font-size:10px}.amt150-command-actions button{padding:12px 14px}.amt150-drawer{width:100vw}.amt150-toast{bottom:max(18px,env(safe-area-inset-bottom));right:12px;width:calc(100vw - 24px);box-sizing:border-box}
}

/* v151 — production AMT Notification Center + durable audit UI */
.amt151-tabs{position:sticky;top:99px;z-index:2;display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:10px 14px;background:#f8fafc;border-bottom:1px solid #e3e8f0}
.amt151-tabs button{border:1px solid transparent;border-radius:10px;background:transparent;color:#66748d;padding:10px 7px;font:800 11px/1.15 'DM Sans',sans-serif}.amt151-tabs button.active{background:#fff;color:#14265b;border-color:#dbe3ed;box-shadow:0 2px 8px rgba(15,32,75,.06)}
.amt151-run-card{width:100%;display:grid;grid-template-columns:34px 1fr 16px;align-items:start;gap:10px;text-align:left;border:0;border-top:1px solid #edf0f5;background:transparent;padding:14px 0;color:inherit}.amt151-run-card:first-of-type{border-top:0}.amt151-run-card:active{opacity:.68}.amt151-run-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#e8f6ee;color:#137849;font-weight:900}.amt151-run-card.failed .amt151-run-icon{background:#fdecef;color:#b31632}.amt151-run-card.needs_review .amt151-run-icon{background:#fff5da;color:#946400}.amt151-run-card strong{display:block;color:#14265b;font-size:13px;line-height:1.35}.amt151-run-card small{display:block;color:#8a95a5;font-size:10px;margin-top:4px;text-transform:capitalize}.amt151-run-card p{margin:6px 0 0;color:#657187;font-size:10px;line-height:1.4}.amt151-chevron{font-size:24px;color:#9aa6b8;line-height:30px}
.amt151-change-strip{margin-top:18px;padding-top:14px;border-top:1px solid #e8edf3}.amt151-change-strip>strong{display:block;color:#14265b;font-size:12px;margin-bottom:6px}.amt151-change{padding:9px 0;border-top:1px solid #f0f2f6}.amt151-change span,.amt151-change small{display:block;color:#8390a3;font-size:9px}.amt151-change b{display:block;color:#33435f;font-size:11px;margin:3px 0;white-space:normal;overflow-wrap:anywhere}
.amt151-detail-backdrop{position:fixed;inset:0;background:rgba(7,18,45,.46);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);z-index:2147483500;display:flex;justify-content:center;align-items:flex-start;padding:5vh 14px}.amt151-detail{width:min(760px,100%);max-height:90vh;overflow:auto;background:#f8fafc;border-radius:20px;box-shadow:0 30px 90px rgba(7,18,45,.32)}.amt151-detail>header{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;gap:16px;padding:20px 22px;background:#fff;border-bottom:1px solid #e4e9f0}.amt151-detail>header h2{margin:4px 0 3px;color:#10234f;font-size:24px;text-transform:capitalize}.amt151-detail>header p{margin:0;color:#7b8798;font-size:11px}.amt151-detail>header button{width:38px;height:38px;border:0;border-radius:11px;background:#eef2f6;color:#30415f;font-size:24px}.amt151-detail-body{padding:16px}.amt151-command-quote,.amt151-summary,.amt151-detail-section{background:#fff;border:1px solid #e0e6ef;border-radius:15px;padding:15px;margin-bottom:12px}.amt151-command-quote small,.amt151-summary small{display:block;text-transform:uppercase;letter-spacing:.11em;color:#8d98a9;font-size:9px;font-weight:800}.amt151-command-quote p{margin:6px 0 0;color:#283a58;font-size:13px;line-height:1.5}.amt151-summary h3{margin:6px 0 10px;color:#14265b;font-size:15px;line-height:1.4}.amt151-summary>div{display:flex;flex-wrap:wrap;gap:6px}.amt151-summary span{padding:6px 8px;border-radius:8px;background:#eef3f8;color:#43516a;font-size:10px;font-weight:700}.amt151-detail-section h3{margin:0 0 10px;color:#14265b;font-size:14px}.amt151-detail-section article{padding:11px 0;border-top:1px solid #edf0f4}.amt151-detail-section article:first-of-type{border-top:0}.amt151-detail-section article>div{display:flex;justify-content:space-between;gap:10px}.amt151-detail-section article strong{color:#283a58;font-size:11px;text-transform:capitalize}.amt151-detail-section article small{color:#7f8b9e;font-size:9px}.amt151-detail-section article p{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:8px 0 0;font-size:11px}.amt151-detail-section del{color:#9a4555}.amt151-detail-section ins{color:#16744a;text-decoration:none;font-weight:700}.amt151-detail-section blockquote{margin:8px 0 0;padding:8px 10px;border-left:3px solid #d7dee9;background:#f8fafc;color:#68758a;font-size:10px;line-height:1.4}.amt151-detail-section pre{max-height:260px;overflow:auto;margin:0;padding:12px;border-radius:10px;background:#101a31;color:#dfe7f5;font:10px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.amt151-toast-copy{flex:1;min-width:0}.amt151-toast-action{align-self:center;border:1px solid rgba(255,255,255,.34);border-radius:9px;background:rgba(255,255,255,.1);color:#fff;padding:8px 9px;font:800 10px/1 'DM Sans',sans-serif;white-space:nowrap}
/* Ensure the bell is part of the authenticated header row, never floating. */
.app-header .amt150-bell{position:relative!important;inset:auto!important;transform:none!important;z-index:auto!important}
@media(max-width:760px){.amt151-tabs{top:91px}.amt151-detail-backdrop{padding:0}.amt151-detail{width:100vw;height:100dvh;max-height:none;border-radius:0}.amt151-detail>header{padding:18px}.amt151-detail-body{padding:12px}.amt151-toast-action{padding:8px 7px}.amt150-toast{align-items:center}}

/* v153 — iOS editable AMT command field */
.amt150-command-body textarea{
  -webkit-user-select:text !important;
  user-select:text !important;
  pointer-events:auto !important;
  touch-action:manipulation !important;
  caret-color:#10234f !important;
  -webkit-touch-callout:default !important;
}
@media (max-width: 760px){
  .amt150-command-backdrop{
    padding:calc(env(safe-area-inset-top, 0px) + 46px) 16px calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
  }
  .amt150-command-panel{
    max-height:calc(100dvh - env(safe-area-inset-top, 0px) - 64px) !important;
    overflow:auto !important;
    -webkit-overflow-scrolling:touch;
  }
  .amt150-command-body textarea{
    font-size:16px !important; /* prevents iOS input zoom */
    line-height:1.42 !important;
    min-height:148px !important;
    resize:none !important;
  }
}

/* v154 — AMT proposal-first review queue */
.amt154-review-queue{margin-bottom:16px}
.amt154-review-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:4px 0 10px}
.amt154-review-head>div{display:flex;flex-direction:column;gap:3px}.amt154-review-head strong{color:#10234f;font-size:15px}.amt154-review-head small{color:#78849a;font-size:11px;line-height:1.35}
.amt154-review-head>button{border:0;border-radius:10px;background:#14265b;color:#fff;padding:9px 12px;font:800 11px/1 'DM Sans',sans-serif;white-space:nowrap}
.amt154-proposal{border:1px solid #dfe6ef;border-left:4px solid #d50d2e;background:#fff;border-radius:14px;padding:13px;margin:9px 0;box-shadow:0 2px 8px rgba(15,32,75,.04)}
.amt154-proposal-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.amt154-proposal-top span{text-transform:uppercase;letter-spacing:.09em;color:#7c8799;font-size:9px;font-weight:800}.amt154-proposal-top b{font-size:10px;color:#16834c;background:#edf8f2;border-radius:99px;padding:5px 7px}
.amt154-change-values{display:grid;grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);gap:8px;align-items:center}.amt154-change-values>div{background:#f7f9fc;border:1px solid #e7ebf1;border-radius:10px;padding:9px}.amt154-change-values small{display:block;text-transform:uppercase;letter-spacing:.08em;color:#8a95a6;font-size:8px;font-weight:800;margin-bottom:4px}.amt154-change-values strong{display:block;color:#14265b;font-size:12px;line-height:1.35;word-break:break-word}.amt154-change-values i{font-style:normal;text-align:center;color:#9ba5b4}
.amt154-proposal>p{margin:9px 0 0;color:#78849a;font-size:10px;line-height:1.4}.amt154-proposal-actions{display:flex;gap:8px;margin-top:11px}.amt154-proposal-actions button{border:0;border-radius:9px;background:#14265b;color:#fff;padding:9px 13px;font:800 11px/1 'DM Sans',sans-serif}.amt154-proposal-actions button.quiet{background:#fff;color:#53617a;border:1px solid #dce3ec}
@media(max-width:760px){.amt154-review-head{align-items:center}.amt154-change-values{grid-template-columns:minmax(0,1fr) 14px minmax(0,1fr)}}

/* v155 — Human-readable AMT audit UI */
.amt155-detail .amt151-detail-body{display:flex;flex-direction:column;gap:16px}
.amt155-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.amt155-stat{border:1px solid #e1e7ef;background:#fff;border-radius:13px;padding:13px}
.amt155-stat small{display:block;color:#8490a2;text-transform:uppercase;letter-spacing:.08em;font-size:8px;font-weight:800;margin-bottom:5px}
.amt155-stat strong{color:#14265b;font-size:22px;line-height:1}
.amt155-stat.good{background:#f2faf5;border-color:#d9eee1}.amt155-stat.warn{background:#fff7f6;border-color:#f2d7d4}
.amt155-section{background:#fff;border:1px solid #dfe6ef;border-radius:16px;padding:15px}
.amt155-section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-bottom:11px}.amt155-section-title h3{margin:0;color:#14265b;font-size:16px}.amt155-section-title small{color:#8994a5;font-size:10px}
.amt155-narrative p{margin:0;padding:10px 0;border-top:1px solid #edf1f5;color:#44536c;font-size:13px;line-height:1.45}.amt155-narrative p:first-child{border-top:0;padding-top:0}.amt155-narrative p:last-child{padding-bottom:0}
.amt155-evidence{margin-top:10px;padding:10px;border-radius:10px;background:#f8fafc;border:1px solid #edf0f4}.amt155-evidence small{display:block;text-transform:uppercase;letter-spacing:.08em;color:#8a95a6;font-size:8px;font-weight:800}.amt155-evidence p{margin:4px 0 0;color:#53617a;font-size:11px;line-height:1.4}
.amt155-apply-all{width:100%;margin-top:10px;border:0;border-radius:11px;background:#14265b;color:#fff;padding:12px 14px;font:800 12px/1 'DM Sans',sans-serif}
.amt155-decision{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid #edf1f5}.amt155-decision:first-of-type{border-top:0}.amt155-decision strong{display:block;color:#14265b;font-size:12px}.amt155-decision small{display:block;color:#8792a3;font-size:9px;margin-top:3px;text-transform:uppercase}.amt155-decision>span{color:#53617a;font-size:11px;text-align:right;max-width:48%}
.amt155-developer{background:#f7f9fc;border:1px solid #e2e7ef;border-radius:14px;padding:0 14px}.amt155-developer summary{cursor:pointer;list-style:none;padding:14px 0;font-weight:800;color:#53617a;font-size:12px}.amt155-developer summary::-webkit-details-marker{display:none}.amt155-developer summary:after{content:'›';float:right;transform:rotate(90deg)}.amt155-developer[open] summary:after{transform:rotate(-90deg)}.amt155-developer>p{margin:0 0 10px;color:#8893a3;font-size:10px}.amt155-developer pre{overflow:auto;max-height:320px;background:#101b3b;color:#dbe6ff;border-radius:11px;padding:12px;font-size:10px;line-height:1.45}
@media(max-width:760px){.amt155-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.amt155-section-title{align-items:flex-start;flex-direction:column;gap:3px}}

/* v171 — AMT Autopilot, intentionally minimal so stable app layout is untouched */
.amt171-command-buttons{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.amt171-autopilot{background:#fff!important;color:#14265b!important;border:1px solid #cfd8e6!important;box-shadow:none!important}
.amt171-autopilot-history{margin:0 0 14px;border:1px solid #dbe4ef;border-radius:14px;background:#f8fbff;overflow:hidden}
.amt171-autopilot-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid #e4ebf3}
.amt171-autopilot-head>div{display:grid;gap:2px}.amt171-autopilot-head strong{font-size:14px;color:#14265b}.amt171-autopilot-head small{font-size:11.5px;color:#6d7890}
.amt171-autopilot-head button{border:0;border-radius:9px;background:#14265b;color:#fff;font-weight:700;padding:8px 11px;cursor:pointer}
.amt171-auto-run{display:grid;grid-template-columns:28px 1fr;gap:10px;padding:11px 14px;border-bottom:1px solid #e7edf4}.amt171-auto-run:last-child{border-bottom:0}
.amt171-auto-icon{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#e8f5ed;color:#12633d;font-weight:800}
.amt171-auto-run div{min-width:0;display:grid;gap:3px}.amt171-auto-run strong{font-size:12.5px;line-height:1.35;color:#14265b}.amt171-auto-run small,.amt171-auto-run p{font-size:11px;line-height:1.35;color:#6d7890;margin:0}
@media(max-width:760px){.amt171-autopilot-head{align-items:flex-start}.amt171-autopilot-head button{white-space:nowrap}.amt171-command-buttons{width:100%}.amt171-command-buttons button{flex:1}}
