.gd-labs { max-width: 1050px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.gd-labs h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin: .5rem 0; }
.gd-labs header p, .gd-panel p { color: var(--os-text-secondary, #b7c4d6); }
.gd-eyebrow { color: #77dbc8; text-transform: uppercase; font-size: .75rem; letter-spacing: .13em; }
.gd-tabs { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.75rem 0; }
.gd-tabs a, .gd-actions a { color: #b3d6ff; padding: .65rem .9rem; border: 1px solid #33465c; border-radius: 8px; text-decoration: none; }
.gd-panel { color: #eef4fc; background: #101925; border: 1px solid #304457; border-radius: 16px; padding: 1.5rem; margin: 1.5rem 0; scroll-margin-top: 90px; }
.gd-panel [hidden] { display: none !important; }
.gd-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.gd-heading h2 { color: #eef4fc; font-size: 1.5rem; margin: .35rem 0 .6rem; }
.gd-panel a { color: #90c4ff; overflow-wrap: anywhere; }
.gd-panel label { display: block; font-weight: 600; font-size: .9rem; margin: 1rem 0 .4rem; }
.gd-panel textarea, .gd-panel input[type=file] { display: block; width: 100%; box-sizing: border-box; background: #08111c; color: #eef4fc; border: 1px solid #3b5066; border-radius: 8px; padding: .8rem; font: inherit; }
.gd-panel textarea { resize: vertical; }
.gd-panel textarea:focus, .gd-panel button:focus-visible, .gd-panel a:focus-visible { outline: 2px solid #77dbc8; outline-offset: 3px; }
.gd-panel .gd-code { font: .85rem/1.5 ui-monospace, monospace; }
.gd-muted { color: #9bafc3 !important; font-size: .85rem; }
.gd-status { border-left: 3px solid #77dbc8; padding: .5rem .8rem; background: #162532; min-height: 1.5rem; }
.gd-status[data-error=true] { border-color: #ff9191; color: #ffc4c4; }
.gd-actions { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; margin: 1rem 0; }
.gd-panel button { cursor: pointer; background: #1b3044; color: #edf5ff; border: 1px solid #45657c; border-radius: 8px; padding: .7rem 1rem; font: inherit; font-weight: 600; }
.gd-panel button[type=submit] { background: #77dbc8; color: #081a18; border-color: #77dbc8; }
.gd-panel button:disabled { opacity: .45; cursor: wait; }
.gd-preview { display: block; max-width: 100%; max-height: 280px; margin: 1rem 0; border-radius: 8px; object-fit: contain; }
.gd-result { border-top: 1px solid #304457; margin-top: 1.25rem; padding-top: 1rem; }
.gd-answer { white-space: pre-wrap; line-height: 1.65; overflow-wrap: anywhere; }
.gd-result pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: .9rem; border-radius: 8px; background: #08111c; font: .85rem/1.5 ui-monospace, monospace; }
.gd-result img { display: block; width: 100%; max-height: 600px; object-fit: contain; border-radius: 10px; }
.gd-result audio { width: 100%; margin: .8rem 0; }
.gd-comparison { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.gd-comparison figure { margin: .5rem 0; }
.gd-comparison figcaption { color: #9bafc3; margin: .5rem 0; }
.gd-history { margin-top: 1.25rem; }
.gd-history summary { cursor: pointer; color: #a5c9f4; }
.gd-history button { display: block; text-align: left; width: 100%; margin-top: .6rem; font-weight: 400; }
.gd-suggestions { width: 100%; height: 160px; border: 0; margin: .75rem 0; background: white; border-radius: 8px; }
@media(max-width: 600px) { .gd-panel { padding: 1rem; } .gd-comparison { grid-template-columns: 1fr; } .gd-heading { align-items: flex-start; } }
