/* Discord Gradient Colors ([discord_colors]). Loaded after tools.css; the code box reuses its .gg-output styles. */
.dc-layout { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 24px; }
.dc-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px 20px; border: 1px solid #EDEDF2; border-radius: 24px; background: #fff; }
.dc-field > label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6E6E78; }
.dc-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dc-row input[type="color"] { width: 44px !important; height: 44px !important; padding: 0 !important; border: 0 !important; border-radius: 14px !important; background: none !important; cursor: pointer; flex-shrink: 0; }
.dc-row input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.dc-row input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.dc-card input[type="text"] { flex: 1; min-width: 0; width: 100%; box-sizing: border-box; padding: 11px 12px !important; border-radius: 14px !important; font-size: 15px !important; font-weight: 600 !important; }
.dc-row input[type="text"] { width: 0; font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace !important; text-transform: uppercase; }
.dc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px !important; margin: 0 !important;
	border: 1px solid #E2E2E8 !important; border-radius: 999px !important; background: #fff !important; color: #222 !important;
	font-size: 13px !important; font-weight: 600 !important; line-height: 1.3 !important; cursor: pointer; box-shadow: none !important;
}
.dc-btn:hover { border-color: #111 !important; }
.dc-btn .tg-i { width: 15px; height: 15px; }
.dc-copy { flex-shrink: 0; height: 44px; }
.dc-row > #dc-swap, .dc-row > #dc-random { flex: 1; }
.dc-warn { margin: 0 !important; padding: 10px 14px; border-radius: 14px; background: #FEF3C7; color: #7A4B00; font-size: 13px; line-height: 1.45; }
.dc-warn[hidden] { display: none; }
.dc-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: #F4F4F7; }
.dc-seg button { padding: 8px 4px !important; margin: 0 !important; border: 0 !important; border-radius: 999px !important; background: transparent !important; font-size: 13px !important; font-weight: 600 !important; color: #45454F !important; cursor: pointer; box-shadow: none !important; white-space: nowrap; }
.dc-seg button[aria-pressed="true"] { background: #fff !important; color: #111 !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .1) !important; }

/* The sample chat: a plain two-pane mock. Dark and light backgrounds are the ones the readability check measures against. */
.dc-side { min-width: 0; }
.dc-view { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.dc-view .dc-seg { width: 180px; }
.dc-view span { font-size: 12.5px; color: #6E6E78; }
.dc-preview {
	--dc-bg: #313338; --dc-side: #2B2D31; --dc-text: #DBDEE1; --dc-muted: #949BA4; --dc-line: rgba(255, 255, 255, .07); --dc-pill: rgba(88, 101, 242, .3);
	display: grid; grid-template-columns: minmax(0, 1fr) 190px; border-radius: 24px; overflow: hidden; background: var(--dc-bg); color: var(--dc-text);
	border: 1px solid rgba(127, 127, 127, .25); font-size: 15px; line-height: 1.4;
}
.dc-preview[data-theme="light"] { --dc-bg: #FFFFFF; --dc-side: #F2F3F5; --dc-text: #313338; --dc-muted: #5C5E66; --dc-line: rgba(0, 0, 0, .08); --dc-pill: rgba(88, 101, 242, .15); }
.dc-chat { padding: 22px 20px; display: grid; gap: 18px; align-content: start; min-width: 0; }
.dc-msg { display: flex; gap: 14px; min-width: 0; }
.dc-msg p { margin: 0 !important; color: var(--dc-text); overflow-wrap: anywhere; }
.dc-msg small { margin-left: 8px; font-size: 12px; color: var(--dc-muted); }
.dc-av { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--dc-grad); }
.dc-av.is-plain { background: var(--dc-muted); opacity: .55; }
.dc-grad { background-image: var(--dc-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.dc-name { font-weight: 600; font-size: 16px; }
.dc-plain { font-weight: 600; font-size: 16px; color: var(--dc-text); }
.dc-mention { padding: 0 3px; border-radius: 4px; background: var(--dc-pill); font-weight: 600; }
.dc-members { padding: 20px 14px; background: var(--dc-side); border-left: 1px solid var(--dc-line); display: grid; gap: 10px; align-content: start; min-width: 0; }
.dc-members em { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--dc-muted); }
.dc-member { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dc-member .dc-av { width: 32px; height: 32px; }
.dc-member b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }

.dc-checks { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0 !important; padding: 0 !important; list-style: none !important; }
.dc-checks li { margin: 0 !important; padding: 7px 14px; border-radius: 999px; font-size: 13px; background: #E6F4EA; color: #1F6B40; }
.dc-checks li.is-ok { background: #FEF3C7; color: #7A4B00; }
.dc-checks li.is-poor { background: #FEE2E2; color: #9B1C1C; }
.dc-checks small { margin-left: 4px; opacity: .8; }

.dc-h { margin: 0 0 10px !important; font-size: 12px !important; font-weight: 700 !important; letter-spacing: .08em; text-transform: uppercase; color: #6E6E78 !important; }
.dc-output { margin-bottom: 12px; }
.dc-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; padding-right: 80px; }
.dc-tabs button { padding: 6px 13px !important; margin: 0 !important; border: 1px solid #E6E6EC !important; border-radius: 999px !important; background: #fff !important; color: #333 !important; font-size: 12.5px !important; font-weight: 600 !important; cursor: pointer; box-shadow: none !important; }
.dc-tabs button[aria-pressed="true"] { background: #111 !important; border-color: #111 !important; color: #fff !important; }
.dc-more { margin: 0 0 36px !important; font-size: 14px; color: #55555F; }
.dc-more a { color: #4B3CC9; font-weight: 700; }

/* Ready-made pairs */
.dc-h2 { margin: 0 0 8px !important; font-size: clamp(20px, 2.4vw, 26px) !important; font-weight: 800 !important; letter-spacing: -.01em; color: #0A0A0A !important; scroll-margin-top: 90px; }
.dc-lede { max-width: 720px; margin: 0 0 14px !important; font-size: 15px; line-height: 1.6; color: #55555F; }
.dc-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.dc-jump a { padding: 6px 13px; border: 1px solid #E6E6EC; border-radius: 999px; background: #fff; color: #333 !important; font-size: 12.5px; font-weight: 600; text-decoration: none !important; }
.dc-jump a:hover { border-color: #111; }
.dc-h3 { margin: 26px 0 10px !important; font-size: 15px !important; font-weight: 700 !important; color: #111 !important; scroll-margin-top: 90px; }
.dc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.dc-pre {
	display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 8px; justify-items: start; padding: 14px 16px !important; margin: 0 !important; border: 2px solid transparent !important; border-radius: 18px !important;
	background: #313338 !important; cursor: pointer; text-align: left; box-shadow: none !important; transition: none !important; min-width: 0;
}
.dc-pre:hover { border-color: #8B8FF8 !important; }
.dc-pre[aria-pressed="true"] { border-color: #5865F2 !important; }
.dc-pre b { font-size: 16px; font-weight: 600; line-height: 1.3; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.dc-pre i { display: block; width: 100%; height: 8px; border-radius: 999px; }
.dc-pre code { padding: 0 !important; background: none !important; border: 0 !important; color: #B5BAC1 !important; font: 500 11.5px/1.2 'SF Mono', 'Fira Code', ui-monospace, monospace !important; white-space: nowrap; }
.dc-legal { margin: 30px 0 0 !important; font-size: 12.5px; color: #6E6E78; }
.dc-toast { position: fixed; left: 50%; bottom: 24px; z-index: 9999; transform: translate(-50%, 20px); padding: 10px 18px; border-radius: 999px; background: #111; color: #fff; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.dc-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 860px) {
	.dc-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
	.dc-preview { grid-template-columns: minmax(0, 1fr); }
	.dc-members { border-left: 0; border-top: 1px solid var(--dc-line); }
	.dc-view span { display: none; }
	.dc-view .dc-seg { width: 100%; }
	.dc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dc-pre code { font-size: 10px !important; }
}

/* The site's own dark theme (the sample chat keeps its own colours) */
html[data-theme="dark"] .tg-tool .dc-card { background: #15151D !important; border-color: rgba(255, 255, 255, .09) !important; color: #EDEDF2 !important; }
html[data-theme="dark"] .tg-tool .dc-seg { background: #1D1D27 !important; }
html[data-theme="dark"] .tg-tool .dc-seg button { color: #B9B9C6 !important; }
html[data-theme="dark"] .tg-tool .dc-seg button[aria-pressed="true"] { background: #262633 !important; color: #EDEDF2 !important; }
html[data-theme="dark"] .tg-tool .dc-field > label, html[data-theme="dark"] .tg-tool .dc-view span, html[data-theme="dark"] .tg-tool .dc-h, html[data-theme="dark"] .tg-tool .dc-lede, html[data-theme="dark"] .tg-tool .dc-more, html[data-theme="dark"] .tg-tool .dc-legal { color: #9393A3 !important; }
html[data-theme="dark"] .tg-tool .dc-h2, html[data-theme="dark"] .tg-tool .dc-h3 { color: #EDEDF2 !important; }
html[data-theme="dark"] .tg-tool .dc-more a { color: #C4B5FD; }
html[data-theme="dark"] .tg-tool .dc-btn, html[data-theme="dark"] .tg-tool .dc-tabs button, html[data-theme="dark"] .tg-tool .dc-jump a { background: #1D1D27 !important; border-color: rgba(255, 255, 255, .16) !important; color: #EDEDF2 !important; }
html[data-theme="dark"] .tg-tool .dc-tabs button[aria-pressed="true"] { background: #fff !important; border-color: #fff !important; color: #111 !important; }
html[data-theme="dark"] .tg-tool .dc-toast { background: #EDEDF2; color: #111; }
