:root {
  --ink: #17251f;
  --muted: #67736e;
  --line: #dce5df;
  --paper: #f5f7f3;
  --white: #fff;
  --mint: #a8f3d1;
  --mint-strong: #31c98a;
  --lime: #dff56b;
  --amber: #f4a844;
  --danger: #e46363;
  --shadow: 0 18px 70px rgba(23, 37, 31, 0.12);
}

[hidden] { display: none !important; }

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
html.dialog-open, body.dialog-open { overflow: hidden; overscroll-behavior: none; }
body {
  margin: 0;
  color: var(--ink);
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 5%, rgba(168,243,209,.26), transparent 28%),
    radial-gradient(circle at 94% 18%, rgba(223,245,107,.18), transparent 24%),
    #f3f6f2;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select { font: inherit; }
button { color: inherit; }
.noise {
  position: fixed; inset: 0; pointer-events: none; opacity: .1; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.11'/%3E%3C/svg%3E");
}
.topbar {
  height: 68px; padding: 0 max(24px, calc((100vw - 1240px) / 2)); display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(220,229,223,.78); background: rgba(247,249,246,.78); backdrop-filter: blur(18px);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { width: 31px; height: 31px; border: 2px solid var(--ink); border-radius: 10px; position: relative; transform: rotate(-5deg); }
.brand-mark i { position: absolute; width: 9px; height: 9px; background: var(--lime); border: 2px solid var(--ink); border-radius: 50%; }
.brand-mark i:first-child { top: -5px; right: -4px; }
.brand-mark i:last-child { bottom: -5px; left: -4px; background: var(--mint); }
.topbar-actions, .service-status { display: flex; align-items: center; gap: 12px; }
.service-status { font-size: 13px; color: var(--muted); }
.service-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint-strong); box-shadow: 0 0 0 4px rgba(49,201,138,.12); }
.avatar { border: 1px solid var(--line); background: var(--white); width: 38px; height: 38px; border-radius: 50%; font-weight: 800; font-size: 12px; }
.shell { width: min(1240px, calc(100vw - 48px)); margin: 0 auto; padding: 52px 0 100px; }
.hero { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 34px; }
.hero h1 { font-size: clamp(46px, 5.2vw, 68px); line-height: 1; letter-spacing: -.062em; margin: 13px 0 17px; max-width: 720px; }
.hero p { color: var(--muted); font-size: 15px; line-height: 1.75; max-width: 680px; margin: 0; }
.eyebrow { font-size: 11px; letter-spacing: .18em; font-weight: 850; color: #3d6a56; }
.primary-button, .secondary-button, .ghost-button { cursor: pointer; border-radius: 12px; padding: 13px 18px; font-weight: 750; border: 1px solid var(--ink); transition: transform .18s, box-shadow .18s, background .18s; }
.primary-button { color: white; background: var(--ink); box-shadow: 4px 4px 0 var(--mint); white-space: nowrap; }
.primary-button:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--mint); }
.secondary-button { background: var(--mint); }
.ghost-button { background: transparent; border-color: var(--line); }
.workspace { background: transparent; }
.section-heading { padding: 0 2px 18px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-heading h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.04em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.search { min-width: 285px; display: flex; align-items: center; gap: 9px; background: rgba(255,255,255,.8); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; box-shadow: 0 7px 20px rgba(23,37,31,.035); }
.search:focus-within { border-color: #70cfa3; background: white; box-shadow: 0 0 0 4px rgba(88,196,147,.1); }
.search input { border: 0; outline: 0; background: transparent; min-width: 0; width: 100%; }
.preview-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.preview-card { min-width: 0; padding: 21px; border: 1px solid rgba(215,224,218,.92); border-radius: 19px; background: rgba(255,255,255,.88); box-shadow: 0 12px 34px rgba(23,37,31,.055); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.preview-card:hover { transform: translateY(-3px); border-color: #bed7ca; box-shadow: 0 19px 44px rgba(23,37,31,.085); }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.project-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.project-icon { flex: 0 0 auto; width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(145deg, #19352a, #10251d); color: var(--mint); font-weight: 900; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.project-name > div { min-width: 0; }
.project-name h3, .project-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-name h3 { margin: 0; font-size: 15px; letter-spacing: -.02em; }
.project-name small { color: var(--muted); margin-top: 5px; font-size: 11px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 17px 0 13px; }
.project-meta span { max-width: 100%; padding: 5px 8px; border-radius: 7px; background: #f1f5f2; color: #607068; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-link { display: grid; gap: 8px; min-width: 0; padding: 13px 14px; border: 1px solid #dbe8e0; border-radius: 12px; background: linear-gradient(135deg, #f6fbf8, #f2f6f3); color: inherit; text-decoration: none; transition: border-color .18s, background .18s; }
.preview-link:hover { border-color: #83cba8; background: #f8fffb; }
.preview-link[aria-disabled="true"] { pointer-events: none; opacity: .58; filter: grayscale(.25); }
.preview-link-label { color: #4a7a64; font-size: 12px; font-weight: 900; letter-spacing: .13em; }
.preview-link-value { display: flex; align-items: center; gap: 10px; min-width: 0; }
.preview-link-value code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #264d3c; font: 11px/1.5 ui-monospace, monospace; }
.preview-link-value b { color: #1b7e55; font-size: 16px; }
.copy-button, .edit-button, .delete-button, .icon-button, .card-copy-button { cursor: pointer; background: transparent; border: 0; }
.copy-button { margin-left: auto; padding: 2px 5px; font-size: 15px; }
.status-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; width: max-content; font-size: 10px; font-weight: 850; border-radius: 99px; padding: 6px 9px; background: #e4f7ed; color: #167a53; }
.card-badges { flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.origin-pill { display: inline-flex; align-items: center; width: max-content; padding: 6px 9px; border: 1px solid #dce5df; border-radius: 99px; background: #f5f7f5; color: #6b7871; font-size: 10px; font-weight: 800; }
.origin-pill.ide { border-color: #bfe7d1; background: #eaf9f1; color: #167a53; }
.origin-pill.web { border-color: #dbe2de; background: #f5f7f5; color: #5f6d66; }
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(22,122,83,.1); }
.status-pill.expiring { background: #fff1dc; color: #a85d08; }
.status-pill.expired { background: #ffe7e7; color: #b43838; }
.status-pill.ide-online { background: #e2f8ec; color: #10764d; }
.status-pill.ide-online i { animation: ide-pulse 1.8s ease-out infinite; }
.status-pill.ide-offline { background: #eef1ef; color: #68746e; }
.project-meta .ide-source { background: #e9f8f0; color: #167a53; font-weight: 750; }
@keyframes ide-pulse { 0% { box-shadow: 0 0 0 0 rgba(16,118,77,.32); } 70%, 100% { box-shadow: 0 0 0 7px rgba(16,118,77,0); } }
.card-footer { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-top: 16px; padding-top: 15px; border-top: 1px solid #e7ece8; }
.relay-info { min-width: 0; display: grid; gap: 4px; }
.relay-info span { color: #8a9790; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.relay-info code { max-width: 285px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #69766f; font: 10px/1.4 ui-monospace, monospace; }
.card-actions { flex: 0 0 auto; display: flex; gap: 7px; }
.card-copy-button, .edit-button, .delete-button { padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font-weight: 750; font-size: 14px; }
.card-copy-button { background: #f6f8f6; }
.card-copy-button:disabled { cursor: not-allowed; opacity: .58; }
.edit-button { color: white; border-color: var(--ink); background: var(--ink); }
.edit-button:disabled { cursor: wait; opacity: .62; }
.edit-button.awaiting-login { color: var(--ink); border-color: #57c494; background: var(--mint); }
.delete-button { color: #a63d3d; border-color: #efcaca; background: #fff7f7; }
.delete-button:disabled { cursor: wait; opacity: .55; }
.card-copy-button:hover { border-color: #9bb8aa; background: white; }
.edit-button:hover { background: #244438; }
.edit-button.awaiting-login:hover { background: #8fe8bf; }
.delete-button:hover { border-color: #d99393; background: #ffeded; }
.inline-regeneration { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 10px; }
.inline-regeneration input { width: 100%; min-width: 0; padding: 9px 11px; border: 1px solid #d8e2dc; border-radius: 9px; outline: none; color: var(--ink); background: #fafcfb; font-size: 12px; }
.inline-regeneration input:focus { border-color: #58c493; box-shadow: 0 0 0 3px rgba(88,196,147,.12); background: white; }
.inline-regeneration input[aria-invalid="true"] { border-color: #df6b6b; background: #fff7f7; box-shadow: 0 0 0 3px rgba(223,107,107,.1); }
.inline-regeneration input:disabled { cursor: not-allowed; opacity: .58; }
.replace-link-button { min-width: 88px; padding: 8px 11px; border: 1px solid #89d7b0; border-radius: 9px; color: #126f49; background: #e9f9f1; font-size: 12px; font-weight: 800; cursor: pointer; }
.replace-link-button:hover { border-color: #57c494; background: #dff7ea; }
.replace-link-button:disabled { cursor: not-allowed; opacity: .58; }
.latest-preview-link { display: flex; align-items: center; gap: 5px; min-width: 0; margin-top: 8px; color: #839088; font-size: 10px; }
.latest-preview-link span { flex: 0 0 auto; }
.latest-preview-link code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #65736b; font: 10px/1.4 ui-monospace, monospace; }
.latest-preview-link button { flex: 0 0 auto; padding: 4px 8px; border: 1px solid #d8e2dc; border-radius: 7px; color: #315b49; background: #f6faf8; font-size: 10px; font-weight: 800; cursor: pointer; }
.latest-preview-link button:hover { border-color: #8fc9ac; background: #ebf8f1; }
.empty-state { text-align: center; padding: 70px 20px 76px; border: 1px dashed #cad8d0; border-radius: 20px; background: rgba(255,255,255,.7); }
.empty-icon { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 22px; background: var(--mint); border: 1px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); font-size: 28px; }
.empty-state h3 { margin: 0 0 8px; font-size: 22px; }.empty-state p { color: var(--muted); margin: 0 auto 24px; max-width: 520px; line-height: 1.7; }
dialog { width: min(80vw, calc(100vw - 48px)); max-width: calc(100vw - 48px); height: 85vh; max-height: none; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; margin: auto; border: 0; border-radius: 22px; padding: 0; box-shadow: 0 28px 100px rgba(0,0,0,.25); }
dialog::-webkit-scrollbar { width: 0; height: 0; display: none; }
dialog::backdrop { background: rgba(19,31,26,.64); backdrop-filter: blur(5px); }
dialog form { width: 100%; min-width: 0; max-width: 100%; overflow-x: hidden; padding: 30px; }
.is-generating .setup-step, .is-generating .dialog-header, .is-generating .dialog-footer { opacity: .58; }
.is-generating .cli-panel { opacity: 1; }
.is-generating button:disabled, .is-generating input:disabled, .is-generating select:disabled { cursor: not-allowed; }
.is-resolving-store .setup-step ~ .setup-step, .is-resolving-store .dialog-footer, .is-resolving-store .dialog-header .icon-button { opacity: .58; }
.is-resolving-store button:disabled, .is-resolving-store input:disabled, .is-resolving-store select:disabled { cursor: not-allowed; }
.is-reading-branches .dialog-header, .is-reading-branches .dialog-footer { opacity: .58; }
.is-reading-branches button:disabled, .is-reading-branches input:disabled, .is-reading-branches select:disabled { opacity: .58; cursor: not-allowed; }
.is-switching-git-profile .dialog-header, .is-switching-git-profile .dialog-footer { opacity: .58; }
.is-switching-git-profile button:disabled, .is-switching-git-profile input:disabled, .is-switching-git-profile select:disabled { opacity: .58; cursor: not-allowed; }
.dialog-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 28px; }
.dialog-header h2 { margin: 7px 0 0; font-size: 28px; letter-spacing: -.04em; }
.icon-button { width: 34px; height: 34px; border-radius: 50%; background: var(--paper); font-size: 23px; line-height: 1; }
.setup-step { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.setup-step:first-of-type { border-top: 0; padding-top: 0; }
.step-number { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: var(--ink); color: var(--mint); font-size: 12px; font-weight: 900; }
.step-content { width: 100%; min-width: 0; max-width: 100%; }
.step-title { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.step-title b { font-size: 14px; }.step-title small { color: var(--muted); font-size: 11px; text-align: right; }
.action-field { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.action-field input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: #fafbf9; padding: 12px 13px; outline: none; }
.action-field input:focus { border-color: #58c493; box-shadow: 0 0 0 3px rgba(88,196,147,.12); background: white; }
.action-field input[aria-invalid="true"] { border-color: #e17070; background: #fffafa; box-shadow: 0 0 0 3px rgba(225,112,112,.1); }
.action-field .secondary-button { padding: 11px 15px; }
.resolved-store { display: flex; align-items: center; gap: 9px; margin-top: 10px; padding: 9px 11px; border-radius: 9px; background: #effaf4; font-size: 11px; }
.resolved-store span { color: #167a53; font-weight: 850; }.resolved-store b { font-family: ui-monospace, monospace; }.resolved-store small { color: var(--muted); margin-left: auto; }
.field-error { margin: 8px 0 0; padding: 8px 10px; border-left: 3px solid #df6262; border-radius: 0 7px 7px 0; color: #b44343; background: #fff2f1; font-size: 10px; font-weight: 700; line-height: 1.5; }
.manual-store-fallback { margin-top: 10px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fafbf9; }
.manual-store-fallback summary { cursor: pointer; color: #315f4e; font-size: 11px; font-weight: 800; }
.manual-store-fallback p { margin: 9px 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.manual-store-fallback code { color: var(--text); }
.final-step { padding-bottom: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.git-mode-switch { width: fit-content; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-bottom: 12px; padding: 3px; border: 1px solid #dce6e0; border-radius: 10px; background: #f2f5f3; }
.git-mode-switch button { min-width: 92px; padding: 7px 13px; border-radius: 7px; color: #6d7b74; background: transparent; font-size: 10px; font-weight: 850; }
.git-mode-switch button.active { color: var(--ink); background: white; box-shadow: 0 1px 4px rgba(20,42,33,.1); }
.git-connect-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; padding: 11px 12px; border: 1px solid #e0e8e3; border-radius: 12px; background: linear-gradient(135deg, #f7f9f7, #fbfcfb); }
.git-connect-row.connected { border-color: #cde8d9; background: linear-gradient(135deg, #f0faf5, #f9fcfa); }
.git-account-summary { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.git-account-avatar { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--mint); background: var(--ink); font-size: 10px; font-weight: 900; letter-spacing: -.04em; }
.git-account-summary > div { flex: 1 1 auto; display: grid; gap: 3px; min-width: 0; }
.git-account-summary small { color: #89958f; font-size: 10px; font-weight: 750; }
.git-profile-copy { width: auto; }
.git-profile-picker { position: static; width: 100%; min-width: 0; }
.git-profile-toggle { width: 100%; min-width: 190px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; outline: 0; padding: 1px 2px 1px 0; color: var(--ink); background: transparent; font-size: 14px; font-weight: 800; cursor: pointer; text-align: left; }
.git-profile-toggle span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.git-profile-toggle svg { flex: 0 0 auto; width: 14px; height: 14px; fill: none; stroke: #577065; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s; }
.git-profile-toggle:disabled { color: #89958f; cursor: not-allowed; }
.git-profile-picker.open .git-profile-toggle svg { transform: rotate(180deg); }
.git-profile-dropdown { position: absolute; z-index: 45; top: calc(100% + 7px); left: 0; right: 0; max-height: 238px; overflow-y: auto; padding: 6px; border: 1px solid #d7e2dc; border-radius: 12px; background: rgba(255,255,255,.98); box-shadow: 0 16px 40px rgba(23,37,31,.17); }
.git-profile-option { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; border-radius: 8px; padding: 10px; background: transparent; color: var(--ink); cursor: pointer; text-align: left; font-size: 13px; }
.git-profile-option-main { display: flex; align-items: center; gap: 9px; min-width: 0; }
.git-profile-option-avatar { flex: 0 0 auto; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; color: var(--mint); background: var(--ink); font-size: 8px; font-weight: 900; }
.git-profile-option-copy { min-width: 0; display: grid; gap: 1px; }
.git-profile-option-copy b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.git-profile-option-copy small { color: #849189; font-size: 10px; font-weight: 700; }
.git-profile-option:hover:not(:disabled), .git-profile-option:focus { outline: 0; background: #edf8f2; }
.git-profile-option.selected { color: #14764f; background: #e5f7ed; }
.git-profile-option > b { color: #159c67; }
.git-profile-option:disabled { opacity: .48; cursor: not-allowed; }
.git-account-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; }
.git-login-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 1px solid #cde8d9; border-radius: 12px; background: linear-gradient(135deg, #f0faf5, #f9fcfa); }
.git-login-card > div { display: grid; gap: 3px; }
.git-login-card b { font-size: 12px; }
.git-login-card small { color: #89958f; font-size: 9px; font-weight: 750; }
.git-local-account-list { display: grid; gap: 7px; margin-top: 8px; }
.git-local-account { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border: 1px solid #e0e8e3; border-radius: 10px; background: #fbfcfb; }
.git-local-account > div { display: flex; align-items: center; gap: 9px; min-width: 0; }
.git-local-account-copy > span:last-child { min-width: 0; display: grid; gap: 2px; }
.git-local-account-copy small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.git-local-account b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.git-local-account .git-account-avatar { width: 28px; height: 28px; border-radius: 8px; font-size: 9px; }
.git-local-account .danger-button { flex: 0 0 auto; padding: 6px 9px; font-size: 9px; }
.git-local-account-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; }
.git-local-account-actions .secondary-button { padding: 7px 10px; font-size: 9px; }
.git-local-account-empty { padding: 13px; border: 1px dashed #d5dfd9; border-radius: 10px; color: var(--muted); background: #fafbf9; text-align: center; font-size: 10px; }
.git-login-note { margin: 9px 2px 13px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.ide-token-panel { display: grid; gap: 10px; margin: 0 0 13px; padding: 13px; border: 1px solid #83d9b1; border-radius: 11px; background: #effaf4; }
.ide-token-panel[hidden] { display: none; }
.ide-token-heading, .ide-token-command-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ide-token-heading > div { display: grid; gap: 3px; }
.ide-token-heading b, .ide-token-command-heading b { color: #116b49; font-size: 11px; }
.ide-token-heading small { color: #6f7f77; font-size: 9px; }
.ide-token-value { display: block; overflow-wrap: anywhere; padding: 10px 11px; border-radius: 8px; color: #dff8e9; background: #122019; font: 11px/1.5 ui-monospace, monospace; user-select: all; }
.ide-token-panel pre { overflow: auto; margin: 0; padding: 10px 11px; border-radius: 8px; color: #dff8e9; background: #122019; font: 10px/1.55 ui-monospace, monospace; white-space: pre-wrap; }
.ide-token-panel button { flex: 0 0 auto; }
.danger-button { color: #a64343; border-color: #e6caca; background: #fffafa; }
.danger-button:hover { border-color: #cf8585; background: #fff1f1; }
.git-connect-row .secondary-button { flex: 0 0 auto; padding: 8px 11px; border-color: #cbd8d1; background: white; font-size: 10px; box-shadow: 0 3px 10px rgba(23,37,31,.035); }
.git-connect-row .secondary-button:hover { border-color: #70cfa3; background: #f7fffa; }
.git-connect-row .ghost-button { padding: 8px 11px; font-size: 10px; }
.git-fields { align-items: start; gap: 14px; padding: 0 1px; }
.git-fields > .field { align-content: start; }
.git-fields > .field > span { line-height: 14px; }
.git-fields > .field > select { height: 43px; padding-top: 0; padding-bottom: 0; }
.git-auth-panel { margin: 0 0 13px; padding: 12px; border-radius: 10px; background: #f5f7f3; border: 1px solid var(--line); }
.git-auth-panel b { display: block; font-size: 12px; margin-bottom: 8px; }
.git-auth-panel a { display: inline-block; color: #0969da; font-size: 12px; font-weight: 750; }
.git-auth-panel code { display: inline-block; margin-left: 10px; padding: 5px 8px; border-radius: 6px; background: var(--ink); color: var(--lime); font-weight: 800; letter-spacing: .08em; }
.git-auth-panel pre { max-height: 90px; overflow: auto; margin: 9px 0 0; color: var(--muted); font: 10px/1.45 ui-monospace, monospace; white-space: pre-wrap; }
.span-2 { grid-column: span 2; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 12px; font-weight: 800; }
.field input, .field select, .slug-input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: #fafbf9; padding: 12px 13px; outline: none; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23577065' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 6 4.5 4 4.5-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px 14px; }
.field input:focus, .field select:focus, .slug-input:focus-within, .store-input:focus-within { border-color: #58c493; box-shadow: 0 0 0 3px rgba(88,196,147,.12); background: white; }
.field select:disabled { color: #98a29d; cursor: wait; }
.field small { font-size: 11px; color: var(--muted); }
.repository-field { align-content: start; }
.repository-combobox { position: relative; min-width: 0; }
.repository-select-control { display: flex; align-items: center; gap: 8px; min-width: 0; height: 43px; border: 1px solid var(--line); border-radius: 10px; background: #fafbf9; padding: 0 7px 0 12px; transition: border-color .18s, box-shadow .18s, background .18s; }
.repository-combobox.open .repository-select-control, .repository-select-control:focus-within { border-color: #58c493; box-shadow: 0 0 0 3px rgba(88,196,147,.12); background: white; }
.repository-select-control svg { flex: 0 0 auto; width: 16px; height: 16px; fill: none; stroke: #718078; stroke-width: 1.7; stroke-linecap: round; }
.repository-select-control input { flex: 1; min-width: 0; height: 100%; border: 0; border-radius: 0; background: transparent; padding: 0; box-shadow: none !important; font-size: 14px; }
.repository-select-control input[type="search"] { appearance: textfield; -webkit-appearance: none; }
.repository-select-control input[type="search"]::-webkit-search-cancel-button { display: none; -webkit-appearance: none; }
.repository-select-control input:disabled { cursor: not-allowed; }
.repository-actions { flex: 0 0 auto; display: flex; align-items: center; align-self: stretch; gap: 0; }
.repository-clear, .repository-toggle { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 100%; padding: 0; border: 0; border-radius: 7px; background: transparent; cursor: pointer; color: #718078; }
.repository-clear svg, .repository-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.repository-clear:hover { color: #245c44; background: #edf5f0; }
.repository-toggle { transition: transform .18s, background .18s; }
.repository-toggle:hover:not(:disabled) { background: #edf5f0; }
.repository-toggle:disabled { opacity: .38; cursor: not-allowed; }
.repository-combobox.open .repository-toggle { transform: rotate(180deg); }
.repository-dropdown { position: absolute; z-index: 40; top: calc(100% + 7px); left: 0; right: 0; max-height: 238px; overflow-y: auto; padding: 6px; border: 1px solid #d7e2dc; border-radius: 12px; background: rgba(255,255,255,.98); box-shadow: 0 16px 40px rgba(23,37,31,.17); }
.repository-option { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; border-radius: 8px; padding: 10px; background: transparent; color: var(--ink); cursor: pointer; text-align: left; font-size: 13px; }
.repository-option-main { display: flex; align-items: center; gap: 9px; min-width: 0; }
.repository-option-main i { flex: 0 0 auto; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; background: #eff4f1; color: #517060; font-style: normal; font-size: 11px; }
.repository-option-main span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repository-option:hover, .repository-option:focus { outline: 0; background: #edf8f2; }
.repository-option.selected { color: #14764f; background: #e5f7ed; font-weight: 800; }
.repository-option b { color: #159c67; }
.repository-no-results { padding: 23px 12px; color: var(--muted); text-align: center; font-size: 11px; }
.branch-field { align-content: start; }
.branch-combobox { position: relative; min-width: 0; }
.branch-select-control { width: 100%; min-width: 0; height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 0 11px 0 13px; color: var(--ink); background: #fafbf9; outline: 0; text-align: left; cursor: pointer; font-size: 14px; transition: border-color .18s, box-shadow .18s, background .18s; }
.branch-select-control span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.branch-select-control svg { flex: 0 0 auto; width: 14px; height: 14px; fill: none; stroke: #577065; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s; }
.branch-select-control:disabled { color: #98a29d; cursor: not-allowed; }
.branch-combobox.open .branch-select-control { border-color: #58c493; box-shadow: 0 0 0 3px rgba(88,196,147,.12); background: white; }
.branch-combobox.open .branch-select-control svg { transform: rotate(180deg); }
.branch-dropdown { position: absolute; z-index: 40; top: calc(100% + 7px); left: 0; right: 0; max-height: 238px; overflow-y: auto; padding: 6px; border: 1px solid #d7e2dc; border-radius: 12px; background: rgba(255,255,255,.98); box-shadow: 0 16px 40px rgba(23,37,31,.17); }
.slug-input { display: flex; align-items: center; padding: 0; overflow: hidden; }
.slug-input b { padding-left: 13px; font-family: ui-monospace, monospace; font-size: 12px; color: var(--muted); white-space: nowrap; }
.slug-input input { border: 0; background: transparent; box-shadow: none !important; }
.store-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fafbf9; overflow: hidden; }
.store-input input { border: 0; border-radius: 0; background: transparent; box-shadow: none !important; padding-right: 5px; }
.store-input b { color: var(--muted); font-size: 11px; padding-right: 12px; white-space: nowrap; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; margin: 22px 0; padding: 16px; background: var(--paper); border-radius: 12px; cursor: pointer; }
.toggle-row b, .toggle-row small { display: block; }.toggle-row b { font-size: 13px; }.toggle-row small { color: var(--muted); margin-top: 4px; }
.toggle-row input { display: none; }.toggle-row i { width: 42px; height: 24px; background: #bac4bf; border-radius: 20px; position: relative; transition: .2s; }
.toggle-row i::after { content: ""; width: 18px; height: 18px; border-radius: 50%; background: white; position: absolute; top: 3px; left: 3px; transition: .2s; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.toggle-row input:checked + i { background: var(--mint-strong); }.toggle-row input:checked + i::after { transform: translateX(18px); }
.live-preview { border-left: 3px solid var(--mint-strong); background: #effaf4; padding: 12px 14px; display: grid; gap: 6px; border-radius: 0 9px 9px 0; }
.live-preview span { color: #3f6856; font-size: 11px; font-weight: 800; }.live-preview code { overflow-wrap: anywhere; font-size: 11px; line-height: 1.5; }
.cli-panel { width: 100%; min-width: 0; max-width: 100%; overflow: hidden; margin-top: 16px; padding: 15px; border-radius: 12px; color: #dff8e9; background: #122019; border: 1px solid #263a30; }
.cli-panel.failed { border-color: #75413f; background: #211817; }
.cli-panel.failed .cli-dot { color: #ff9292; background: #ff7d7d; box-shadow: 0 0 0 4px rgba(255,125,125,.1); }
.cli-heading, .cli-heading > div { display: flex; justify-content: space-between; align-items: center; gap: 9px; }
.cli-heading b { font-size: 12px; }
.cli-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(223,245,107,.1); }
.cli-panel .compact { color: #dff8e9; border-color: #43584d; padding: 5px 9px; font-size: 11px; }
.login-button { display: block; margin-top: 13px; padding: 11px 13px; color: #102018; background: var(--mint); border-radius: 9px; text-align: center; text-decoration: none; font-size: 12px; font-weight: 850; }
.login-button[hidden] { display: none; }
.shopify-login-hint { display: block; margin-top: 8px; color: #b9c9c0; font-size: 10px; line-height: 1.5; }
.shopify-login-hint[hidden] { display: none; }
.cli-panel > small { display: block; margin-top: 9px; color: var(--lime); font-family: ui-monospace, monospace; }
.cli-command { display: block; margin-top: 12px; color: #dff8e9; font: 11px/1.5 ui-monospace, monospace; overflow-wrap: anywhere; }
.cli-panel pre { width: 100%; min-width: 0; max-width: 100%; max-height: 180px; overflow: auto; margin: 13px 0 0; padding: 13px 0 5px; border-top: 1px solid #2a3d33; color: #aebdb5; font: 11px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; overflow-wrap: normal; word-break: normal; scrollbar-gutter: stable; }
.cli-next-steps { display: grid; gap: 7px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #2a3d33; }
.cli-next-steps > b { color: #dff8e9; font: 11px/1.5 ui-monospace, monospace; }
.cli-next-steps a { color: #b9e8cf; font: 11px/1.5 ui-monospace, monospace; text-decoration: none; overflow-wrap: anywhere; }
.cli-next-steps a:hover { color: var(--lime); text-decoration: underline; }
.cli-next-steps kbd { display: inline-grid; place-items: center; min-width: 19px; margin-right: 6px; padding: 1px 5px; border: 1px solid #43584d; border-radius: 5px; color: var(--lime); background: #1b2b23; font: inherit; }
.generation-failure { display: grid; grid-template-columns: 30px 1fr; gap: 11px; margin-top: 14px; padding: 13px 14px; border: 1px solid #f0c3c0; border-radius: 11px; background: #fff6f5; color: #7d302d; }
.failure-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: #ffe1df; color: #bc4843; font-size: 14px; font-weight: 900; }
.generation-failure b { display: block; font-size: 12px; }
.generation-failure p { margin: 5px 0 0; color: #89534f; font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.generation-failure ul { margin: 8px 0 0; padding-left: 17px; color: #704b48; font-size: 10px; line-height: 1.7; }
.result-panel { width: 100%; min-width: 0; max-width: 100%; overflow: hidden; margin-top: 16px; padding: 14px; border: 1px solid #8eddb8; border-radius: 12px; background: #effaf4; }
.result-panel > span { display: block; margin-bottom: 9px; color: #167a53; font-size: 11px; font-weight: 850; }
.result-panel > div { display: flex; align-items: center; gap: 8px; }
.result-panel a { min-width: 0; flex: 1; color: var(--ink); font: 11px/1.5 ui-monospace, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-panel small { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.form-error { min-height: 20px; color: var(--danger); font-size: 12px; margin: 10px 0 0; }
.dialog-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.toast { position: fixed; inset: 22px auto auto 50%; width: max-content; max-width: min(520px, calc(100vw - 32px)); display: flex; align-items: center; gap: 10px; margin: 0; border: 1px solid rgba(168,243,209,.72); transform: translate(-50%, -18px); opacity: 0; color: white; background: #142b22; padding: 13px 18px; border-radius: 12px; box-shadow: 0 18px 55px rgba(0,0,0,.32), 0 0 0 5px rgba(168,243,209,.13); pointer-events: none; transition: opacity .22s, transform .22s; z-index: 100; font-size: 13px; font-weight: 750; }
.toast::before { content: ""; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(223,245,107,.14); }
.toast.success { border-color: rgba(118,230,174,.9); background: #113f2e; }
.toast.success::before { background: #72eba9; box-shadow: 0 0 0 4px rgba(114,235,169,.16); }
.toast.error { border-color: rgba(255,143,143,.9); background: #4a1e1e; }
.toast.error::before { background: #ff8585; box-shadow: 0 0 0 4px rgba(255,133,133,.16); }
.toast.show, .toast:popover-open { opacity: 1; transform: translate(-50%, 0); }
.quick-regeneration-busy { cursor: progress; }
.quick-regeneration-busy button:disabled, .quick-regeneration-busy input:disabled, .quick-regeneration-busy select:disabled, .quick-regeneration-busy textarea:disabled { cursor: not-allowed; opacity: .55; }
.quick-interaction-locked { pointer-events: none !important; cursor: not-allowed !important; opacity: .58; }

@media (max-width: 850px) {
  .shell { padding-top: 38px; }.hero { align-items: start; flex-direction: column; }.hero h1 { font-size: 52px; }
  .preview-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  dialog { width: calc(100vw - 24px); max-width: calc(100vw - 24px); height: 90vh; }
  .topbar { padding: 0 20px; }.service-status { display: none; }.shell { width: calc(100vw - 28px); }
  .hero h1 { font-size: 43px; }.hero .primary-button { width: 100%; }.section-heading { align-items: stretch; flex-direction: column; }.search { min-width: 0; }
  .preview-card { padding: 18px; }.card-heading { align-items: start; }.card-footer { align-items: stretch; flex-direction: column; }.relay-info code { max-width: 100%; }.card-actions { width: 100%; }.card-actions button { flex: 1; }.form-grid { grid-template-columns: 1fr; }.span-2 { grid-column: span 1; } dialog form { padding: 22px; }
  .setup-step { grid-template-columns: 1fr; }.step-title { display: grid; }.step-title small { text-align: left; }.action-field { grid-template-columns: 1fr; }.resolved-store { align-items: start; flex-wrap: wrap; }.resolved-store small { width: 100%; margin-left: 0; }
  .git-connect-row, .git-login-card { align-items: stretch; flex-direction: column; }.git-login-card button { width: 100%; }.git-profile-copy { width: 100%; }.git-profile-toggle { min-width: 0; }.git-account-actions { width: 100%; }.git-account-actions button { flex: 1; }
}
