:root { color: #213047; background: #f4f7fb; font-family: "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif; }
* { box-sizing: border-box; } body { min-width: 320px; margin: 0; } button, input { font: inherit; } button { cursor: pointer; }
.app-shell { width: min(100% - 36px, 1040px); min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: center; margin: auto; padding: 36px 0; }
.preview, .controls { border-radius: 28px; }.preview { min-height: 650px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 54px 30px; text-align: center; color: #fff; background: #19263a; overflow: hidden; }
.eyebrow { margin: 0 0 11px; color: #7796c8; font-size: .72rem; font-weight: 800; letter-spacing: .14em; }.preview h1, h2 { margin: 0; letter-spacing: -.04em; }.preview h1 { font-size: clamp(2.45rem, 5vw, 3.7rem); }.subtitle { max-width: 290px; margin: 14px 0 43px; color: #c6d0df; line-height: 1.7; }
.spinner { --spin-duration: 3s; --spinner-colors: #ff5b73, #ffcc58, #55c7ae; width: clamp(210px, 28vw, 330px); aspect-ratio: 1; position: relative; border-radius: 50%; background: conic-gradient(var(--spinner-colors)); animation: spin var(--spin-duration) linear infinite; box-shadow: 0 0 0 13px rgba(255, 255, 255, .06), 0 22px 55px rgba(0, 0, 0, .35); }.spinner::before { content: ""; position: absolute; inset: 19%; z-index: 1; border-radius: 50%; background: #19263a; box-shadow: inset 0 0 30px rgba(0,0,0,.2); }.spinner span { position: absolute; top: 8%; left: 50%; z-index: 2; width: 22px; height: 22px; border-radius: 50%; background: #fff; transform: translateX(-50%); box-shadow: 0 2px 8px rgba(0,0,0,.22); } @keyframes spin { to { transform: rotate(360deg); } }.speed-readout { margin: 40px 0 0; color: #c6d0df; font-size: .9rem; }
.controls { padding: 26px; background: #fff; box-shadow: 0 12px 36px rgba(39, 62, 92, .08); }.control-heading, .color-title-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; }.control-heading { padding-bottom: 24px; }.control-heading h2 { font-size: 1.8rem; }.controls .eyebrow { color: #6b84ad; }.text-button { border: 0; padding: 8px; color: #587097; background: transparent; font-size: .85rem; font-weight: 800; }.text-button:hover { color: #1f487f; text-decoration: underline; }.control-card { margin-top: 15px; padding: 20px; border-radius: 16px; background: #f5f8fc; }.control-card > label, .color-title-row label { font-size: .96rem; font-weight: 800; }.range-row { display: grid; grid-template-columns: 26px 1fr 26px; align-items: center; gap: 11px; margin-top: 17px; color: #7a8ca7; font-size: .74rem; } input[type="range"] { width: 100%; accent-color: #4f74d9; }.color-title-row span { color: #7a8ca7; font-size: .8rem; }.color-list { display: grid; gap: 9px; margin-top: 16px; }.color-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 11px; background: #fff; }.color-row input[type="color"] { width: 38px; height: 34px; padding: 2px; border: 0; border-radius: 8px; background: transparent; }.color-code { flex: 1; color: #52637c; font-family: ui-monospace, Consolas, monospace; font-size: .88rem; }.remove-color { width: 31px; height: 31px; border: 0; border-radius: 8px; color: #71839d; background: #edf2f8; font-size: 1.2rem; line-height: 1; }.remove-color:hover { color: #be4357; background: #ffecee; }.remove-color:disabled { cursor: not-allowed; opacity: .4; }.add-color-button { width: 100%; margin-top: 13px; border: 1.5px dashed #aac0e4; border-radius: 11px; padding: 11px; color: #5171ac; background: #fff; font-size: .9rem; font-weight: 800; }.add-color-button:hover { background: #f5f8ff; }
@media (max-width: 760px) { .app-shell { grid-template-columns: 1fr; padding: 18px 0; }.preview { min-height: 465px; padding: 45px 25px; }.subtitle { margin-bottom: 30px; }.spinner { width: 210px; }.speed-readout { margin-top: 30px; }.controls { padding: 21px; } }
