.cloud-build { margin: 18px 0 12px; padding: 14px; border: 1px solid #dedce9; border-radius: 10px; background: linear-gradient(145deg, #fbfaff, #f5f3ff); }
.cloud-build-head { display: flex; align-items: center; gap: 10px; }
.build-turnstile{display:flex;justify-content:center;min-height:65px;margin:14px 0 2px}
.cloud-build-icon { display: grid; width: 34px; height: 34px; flex: none; place-items: center; border-radius: 8px; background: #e8e4ff; color: #5546d7; }
.cloud-build-icon svg { width: 20px; height: 20px; }
.cloud-build-head strong, .cloud-build-head small { display: block; }
.cloud-build-head strong { font-size: 12px; }
.cloud-build-head small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.cloud-badge { margin-left: auto; padding: 4px 6px; border: 1px solid #ddd9f2; border-radius: 5px; background: rgba(255,255,255,.72); color: #6c687b; font-size: 8px; font-weight: 700; letter-spacing: .2px; }
.build-button { width: 100%; margin-top: 13px; padding: 11px 13px; border: 0; border-radius: 7px; background: var(--ink); color: #fff; font: 650 12px Inter,ui-sans-serif,system-ui; cursor: pointer; transition: background 160ms var(--ease), transform 120ms var(--ease); }
.build-button span { float: right; font-size: 14px; }
.build-button:hover { background: #36363a; }
.build-button:active { transform: scale(.98); }
.build-button:disabled { cursor: wait; opacity: .62; }
.build-message { margin: 9px 1px 0; color: #5f6067; font-size: 10px; line-height: 1.5; }
.build-message:empty { display: none; }
.build-message[data-state="error"] { color: #ad403b; }
.build-message[data-state="success"] { color: #37775a; }
.build-history { margin: 10px 0 14px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px; }
.build-history-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.build-history-head strong { font-size: 11px; }
.build-history-head button { display: grid; width: 25px; height: 25px; padding: 0; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #73747a; cursor: pointer; transition: color 140ms var(--ease), background 140ms var(--ease), transform 120ms var(--ease); }
.build-history-head button:hover { background: #f0f0f1; color: var(--ink); }
.build-history-head button:active { transform: scale(.95); }
.build-history-head svg { width: 14px; height: 14px; }
.build-row { display: grid; grid-template-columns:minmax(0,1fr) auto; gap: 5px 12px; padding: 10px 0; border-top: 1px solid #eeeeef; }
.build-row:first-child { border-top: 0; }
.build-row strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.build-row small { color: #85868c; font-size: 9px; }
.build-stage { grid-column: 1 / -1; line-height: 1.45; }
.build-status { align-self: start; padding: 3px 6px; border-radius: 10px; background: #eeeef0; color: #686970; font-size: 8px; font-weight: 700; text-transform: capitalize; }
.build-status { display: inline-flex; align-items: center; gap: 4px; }
.build-status svg { width: 10px; height: 10px; }
.build-status[data-status="ready"] { background: #e6f5ec; color: #307151; }
.build-status[data-status="failed"] { background: #fbe9e7; color: #a43e38; }
.build-status[data-status="building"] { background: #ece9ff; color: #5447bb; }
.build-links { display: flex; flex-wrap: wrap; gap: 9px; grid-column: 1 / -1; }
.build-links a { color: #5147aa; font-size: 9px; font-weight: 680; text-decoration: none; }
.build-links a:hover { text-decoration: underline; }
.build-retry { display: inline-flex; align-items: center; gap: 4px; border: 0; padding: 0; background: transparent; color: #1d4ed8; font: 680 9px Inter,ui-sans-serif,system-ui; cursor: pointer; }
.build-retry:hover { text-decoration: underline; }
.build-retry:focus-visible { outline: 2px solid #93c5fd; outline-offset: 3px; border-radius: 2px; }
.build-retry svg { width: 11px; height: 11px; }
.export-divider { display: flex; align-items: center; gap: 9px; margin: 16px 0; color: #96969b; font-size: 9px; }
.export-divider:before, .export-divider:after { height: 1px; flex: 1; background: var(--line); content: ""; }
.secondary-download { background: #5d50e7; }
.activity-dialog[hidden] { display: none; }
.activity-dialog { position: fixed; z-index: 55; inset: 0; display: grid; padding: 20px; place-items: center; }
.activity-backdrop { position: absolute; inset: 0; background: rgba(20,20,23,.36); backdrop-filter: blur(5px); animation: activity-fade 160ms ease-out; }
.activity-card { position: relative; width: min(680px,100%); max-height: min(760px,calc(100vh - 40px)); overflow: auto; border: 1px solid rgba(255,255,255,.72); border-radius: 16px; padding: 28px; background: #fff; box-shadow: 0 24px 70px rgba(18,18,22,.22); animation: activity-enter 220ms var(--ease); }
.activity-close { position: absolute; top: 13px; right: 13px; display: grid; width: 29px; height: 29px; padding: 0; place-items: center; border: 0; border-radius: 7px; background: #f3f3f4; color: #77787e; font-size: 19px; cursor: pointer; }
.activity-heading { display: flex; align-items: flex-start; gap: 13px; padding-right: 34px; }
.activity-heading-icon { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border-radius: 11px; background: #efedff; color: #5548ca; }
.activity-heading-icon svg { width: 22px; height: 22px; }
.activity-kicker { color: #6b5de2; font-size: 9px; font-weight: 780; letter-spacing: 1.2px; }
.activity-heading h2 { margin: 5px 0 5px; font-size: 24px; letter-spacing: -1px; }
.activity-heading p { margin: 0; color: #76777d; font-size: 12px; line-height: 1.55; }
.activity-profile { display: flex; align-items: center; gap: 10px; margin: 22px 0 18px; padding: 11px 12px; border: 1px solid #e6e4ef; border-radius: 9px; background: #faf9ff; }
.activity-profile > svg { width: 20px; height: 20px; flex: none; color: #584cc8; }
.activity-profile strong,.activity-profile small { display: block; }
.activity-profile strong { font-size: 11px; }
.activity-profile small { margin-top: 3px; color: #818188; font-size: 9px; }
.activity-profile button { margin-left: auto; border: 0; background: transparent; color: #5147aa; font: 680 10px Inter,ui-sans-serif,system-ui; cursor: pointer; }
.activity-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3px; }
.activity-toolbar strong { font-size: 11px; }
.activity-toolbar button { display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 6px; padding: 6px 8px; background: transparent; color: #707178; font: 650 10px Inter,ui-sans-serif,system-ui; cursor: pointer; transition: background 140ms var(--ease),color 140ms var(--ease),transform 120ms var(--ease); }
.activity-toolbar button:hover { background: #f2f2f3; color: #252529; }
.activity-toolbar button:active { transform: scale(.96); }
.activity-toolbar svg { width: 13px; height: 13px; }
.activity-list { border-top: 1px solid #ececef; }
.activity-item { display: grid; grid-template-columns:38px minmax(0,1fr) auto; gap: 4px 11px; padding: 14px 0; border-bottom: 1px solid #eeeeef; }
.activity-item-icon { display: grid; width: 38px; height: 38px; grid-row: 1 / 3; place-items: center; border-radius: 9px; background: #f0effa; color: #5548c8; }
.activity-item-icon svg { width: 20px; height: 20px; }
.activity-item-copy strong { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.activity-item-copy small { display: block; margin-top: 4px; color: #83848a; font-size: 9px; }
.activity-actions { display: flex; align-items: center; gap: 6px; grid-column: 2 / -1; margin-top: 5px; }
.activity-actions a { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #dddde1; border-radius: 6px; padding: 6px 8px; color: #4f4f57; font-size: 9px; font-weight: 680; text-decoration: none; transition: border-color 140ms var(--ease),background 140ms var(--ease),transform 120ms var(--ease); }
.activity-actions a:hover { border-color: #c7c7cd; background: #fafafa; }
.activity-actions a:active { transform: scale(.96); }
.activity-actions svg { width: 11px; height: 11px; }
.activity-actions .build-retry { border: 1px solid #bfdbfe; border-radius: 6px; padding: 6px 8px; background: #f8fbff; }
.activity-actions .build-retry:hover { background: #eff6ff; text-decoration: none; }
.activity-empty,.activity-loading { padding: 44px 18px; color: #7d7e84; font-size: 11px; line-height: 1.6; text-align: center; }
.activity-empty svg { display: block; width: 30px; height: 30px; margin: 0 auto 11px; color: #77727f; }
.activity-empty strong { display: block; margin-bottom: 4px; color: #303034; font-size: 12px; }
@keyframes activity-fade { from { opacity: 0; } }
@keyframes activity-enter { from { opacity: 0; transform: translateY(9px) scale(.985); } }
@media(max-width:560px){.activity-card{padding:24px 20px}.activity-heading-icon{display:none}.activity-item{grid-template-columns:34px minmax(0,1fr)}.activity-item>.build-status{grid-column:2}.activity-actions{grid-column:2}.activity-profile{align-items:flex-start}.activity-profile button{white-space:nowrap}}
@media (hover: none) { .build-button:hover { background: var(--ink); } .build-history-head button:hover { background: transparent; color: #73747a; } .build-links a:hover { text-decoration: none; } }

/* Blue is reserved for product-level state; a generated app still uses its own chosen brand color. */
.cloud-build{border-color:#dbeafe;background:linear-gradient(145deg,#fbfdff,#f0f7ff)}
.cloud-build-icon{background:#dbeafe;color:#2563eb}.cloud-badge{border-color:#dbeafe;color:#64748b}
.build-status[data-status="building"]{background:#dbeafe;color:#1d4ed8}.build-links a,.activity-profile button{color:#1d4ed8}.secondary-download{background:#2563eb}
.activity-heading-icon{background:#eff6ff;color:#2563eb}.activity-kicker{color:#2563eb}
.activity-profile{border-color:#dbeafe;background:#f8fbff}.activity-profile>svg{color:#2563eb}
.activity-item-icon{background:#eff6ff;color:#2563eb}

.admin-dialog[hidden]{display:none}.admin-dialog{position:fixed;z-index:57;inset:0;display:grid;padding:20px;place-items:center}.admin-backdrop{position:absolute;inset:0;background:rgba(20,20,23,.36);backdrop-filter:blur(5px);animation:activity-fade 160ms ease-out}.admin-card{position:relative;width:min(680px,100%);max-height:calc(100dvh - 40px);overflow:auto;border:1px solid rgba(255,255,255,.72);border-radius:16px;padding:28px;background:#fff;box-shadow:0 24px 70px rgba(18,18,22,.22);animation:activity-enter 220ms var(--ease)}.admin-close{position:absolute;top:13px;right:13px;display:grid;width:32px;height:32px;padding:0;place-items:center;border:0;border-radius:8px;background:#f3f3f4;color:#77787e;font-size:20px;cursor:pointer}.admin-kicker{color:#2563eb;font-size:9px;font-weight:780;letter-spacing:1.2px}.admin-card h2{margin:7px 38px 3px 0;font-size:24px;letter-spacing:-1px}.admin-intro{margin:0;color:#74757b;font-size:12px;line-height:1.55}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:22px 0}.stat-card{min-height:102px;padding:13px;border:1px solid #dbeafe;border-radius:10px;background:#f8fbff}.stat-card strong,.stat-card>span:last-child{display:block}.stat-card strong{margin:9px 0 2px;font-size:22px;letter-spacing:-1px}.stat-card>span:last-child{color:#64748b;font-size:10px;font-weight:650;line-height:1.35}.stat-icon{display:block;width:18px;height:18px;color:#2563eb}.stat-icon svg{display:block;width:18px;height:18px}.stats-loading{grid-column:1/-1;padding:22px;color:#74757b;font-size:12px;text-align:center}.stats-table-wrap{overflow-x:auto;border:1px solid #e8e8eb;border-radius:10px}.stats-table-wrap table{width:100%;border-collapse:collapse;font-size:11px}.stats-table-wrap caption{padding:12px 13px 8px;color:#55565c;font-weight:700;text-align:left}.stats-table-wrap th,.stats-table-wrap td{padding:10px 13px;border-top:1px solid #eeeeef;text-align:right;white-space:nowrap}.stats-table-wrap th:first-child,.stats-table-wrap td:first-child{text-align:left}.stats-table-wrap thead{color:#74757b;font-size:9px;text-transform:uppercase;letter-spacing:.05em}.stats-table-wrap tbody th{color:#343438;font-weight:650}.stats-table-wrap tbody td{color:#5f6067}.stats-table-wrap tbody tr:last-child>*{border-bottom:0}
.operations-panel{margin:0 0 18px;padding:14px;border:1px solid #e8e8eb;border-radius:10px;background:#fcfcfd}.operations-panel h3{margin:0;font-size:12px}.operations-panel p{margin:4px 0 12px;color:#74757b;font-size:10px;line-height:1.45}.operations-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.operation-card{min-width:0;padding:10px;border:1px solid #e5e7eb;border-radius:8px;background:#fff}.operation-card>span{display:block;width:16px;height:16px;color:#2563eb}.operation-card svg{display:block;width:16px;height:16px}.operation-card strong,.operation-card small{display:block}.operation-card strong{margin:7px 0 2px;font-size:16px;letter-spacing:-.5px}.operation-card small{color:#74757b;font-size:9px;line-height:1.3}
@media(max-width:560px){.admin-card{padding:24px 20px}.stats-grid{gap:7px}.stat-card{min-height:92px;padding:11px}.stat-card strong{font-size:19px}.stat-card>span:last-child{font-size:9px}.stats-table-wrap th,.stats-table-wrap td{padding:9px 10px}}
@media(max-width:560px){.operations-summary{gap:6px}.operation-card{padding:9px}.operation-card strong{font-size:14px}}
