/* Design on the phone (phone-design.js): the same quiet look as the rest of the app. */
.dg-body { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.dg-body > * { flex: none; } /* a scrolling column: nothing in it may shrink */
.dg-hero { padding: 18px 2px 6px; }
.dg-hero h1 { font-size: 26px; font-weight: 600; letter-spacing: -.025em; margin: 0 0 8px; }
.dg-hero p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.dg-hint { margin: 0; color: var(--faint); font-size: 13.5px; }
.dg-label { font-size: 13px; font-weight: 500; color: var(--faint); padding: 6px 2px 0; }
.dg-list { display: flex; flex-direction: column; gap: 2px; margin: 0 -8px; }
.dg-item { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px; border-radius: 14px; text-align: left; color: var(--text); }
.dg-item:active { background: var(--surface); }
.dg-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--surface); box-shadow: var(--edge); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); flex: none; }
.dg-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dg-t b { font-weight: 500; font-size: 16px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-t small { font-size: 13px; color: var(--faint); }

/* kind chips above the box: one row that scrolls sideways */
.dg-kinds { display: flex; gap: 6px; overflow-x: auto; padding: 0 2px 10px; margin: 0 -12px; padding-left: 14px; padding-right: 14px; scrollbar-width: none; }
.dg-kinds::-webkit-scrollbar { display: none; }
.dg-kinds[hidden] { display: none; }
.dg-kind { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 11px; border-radius: 999px; background: var(--surface); box-shadow: var(--edge); color: var(--muted); font-size: 14px; font-weight: 500; }
.dg-kind.on { background: var(--surface-2); color: var(--text); }
.dg-kind:active { transform: scale(.97); }
.dg-note { flex: 1; min-width: 0; font-size: 13px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 4px; }
.dg-note.bad { color: var(--danger); white-space: normal; }
.dg-composer .box-row { min-height: 36px; }

/* one design */
.dg-stage { display: flex; justify-content: center; min-height: 120px; }
.dg-frame { overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--rim), 0 12px 32px rgba(0, 0, 0, .35); flex: none; }
.dg-frame iframe { display: block; border: 0; background: #fff; transform-origin: top left; }
.dg-wait { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 240px; border-radius: 14px; background: var(--surface); color: var(--faint); font-size: 14.5px; text-align: center; padding: 0 24px; }
.dg-actions { display: flex; align-items: center; gap: 8px; }
.dg-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); box-shadow: var(--edge); }
.dg-seg button { height: 30px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.dg-seg button.on { background: var(--surface-2); color: var(--text); }
.dg-kindtag { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.dg-build { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px; border-radius: 999px; background: var(--accent); color: var(--accent-text); font-size: 14px; font-weight: 600; box-shadow: inset 0 -1.5px 0 rgba(0, 0, 0, .14); }
.dg-build:active { transform: scale(.97); }
.dg-chat { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 8px; }
.dg-reply { font-size: 16px; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; }
.dg-reply p { margin: 0 0 8px; } .dg-reply p:last-child { margin: 0; }
.dg-err { color: var(--danger); font-size: 15px; }
.dg-status { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.dg-status .shine, .dg-wait .shine { background: linear-gradient(90deg, var(--faint) 0%, var(--text) 50%, var(--faint) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: dg-shine 1.8s linear infinite; }
@keyframes dg-shine { from { background-position: 100% 0; } to { background-position: -100% 0; } }
