.gnow-app {
    --gnow-blue: #1769e0;
    --gnow-ink: #15233d;
    --gnow-muted: #5d6b80;
    --gnow-border: #d9e1ec;
    width: 100%;
    max-width: 1200px;
    margin: 28px auto;
    color: var(--gnow-ink);
    font-family: inherit;
}
.gnow-app * { box-sizing: border-box; }
.gnow-intro { margin: 0 0 20px; text-align: center; }
.gnow-heading { margin: 0 0 8px; font-size: clamp(1.65rem, 4vw, 2.5rem); line-height: 1.2; font-weight: 750; color: var(--gnow-ink); }
.gnow-description { max-width: 760px; margin: 0 auto; color: var(--gnow-muted); font-size: 1.05rem; line-height: 1.65; }
.gnow-shell { overflow: hidden; border: 1px solid var(--gnow-border); border-radius: 14px; background: #fff; box-shadow: 0 8px 28px rgba(18, 42, 76, .07); }
.gnow-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid var(--gnow-border); background: #fbfcff; }
.gnow-tool-group, .gnow-options, .gnow-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.gnow-tool-group { flex: 1 1 360px; }
.gnow-options { flex: 1 1 230px; gap: 8px; }
.gnow-actions { flex: 1 1 100%; justify-content: flex-end; }
.gnow-tool, .gnow-action {
    min-height: 38px; padding: 8px 12px; border: 1px solid #d5deeb; border-radius: 8px;
    background: #fff; color: #243653; font: inherit; font-size: .9rem; line-height: 1.2;
    cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.gnow-tool:hover, .gnow-action:hover { border-color: var(--gnow-blue); color: var(--gnow-blue); }
.gnow-tool.is-active { border-color: var(--gnow-blue); background: #eaf2ff; color: #0756c5; box-shadow: inset 0 0 0 1px rgba(23, 105, 224, .08); }
.gnow-action:disabled { opacity: .45; cursor: not-allowed; }
.gnow-action:focus-visible, .gnow-tool:focus-visible, .gnow-color:focus-visible, .gnow-size:focus-visible { outline: 3px solid rgba(23, 105, 224, .35); outline-offset: 2px; }
.gnow-action[data-action="save"] { background: var(--gnow-blue); border-color: var(--gnow-blue); color: #fff; }
.gnow-action[data-action="save"]:hover { background: #0d55bd; }
.gnow-control-label { color: var(--gnow-muted); font-size: .82rem; }
.gnow-color { width: 38px; height: 34px; padding: 2px; border: 1px solid var(--gnow-border); border-radius: 7px; background: #fff; cursor: pointer; }
.gnow-size { width: 95px; accent-color: var(--gnow-blue); cursor: pointer; }
.gnow-size-value { min-width: 35px; color: var(--gnow-muted); font-size: .82rem; }
.gnow-canvas-wrap { position: relative; padding: 12px; background: #f4f7fb; }
.gnow-canvas { display: block; width: 100%; height: clamp(380px, 62vw, 620px); border: 1px solid #dfe6ef; border-radius: 8px; background: #fff; touch-action: none; cursor: crosshair; }
.gnow-canvas-hint { margin: 8px 3px 0; color: #66758a; font-size: .8rem; line-height: 1.5; }
.gnow-status { padding: 10px 15px; border-top: 1px solid var(--gnow-border); color: #4e6079; font-size: .84rem; background: #fff; }
.gnow-app noscript { display: block; padding: 10px; }
@media (min-width: 900px) {
    .gnow-actions { flex: 1 1 auto; }
}
@media (max-width: 600px) {
    .gnow-app { margin: 18px auto; }
    .gnow-toolbar { padding: 10px; gap: 10px; }
    .gnow-tool-group { flex-basis: 100%; }
    .gnow-tool { flex: 1 1 auto; padding: 8px 9px; font-size: .82rem; }
    .gnow-options { flex-basis: 100%; }
    .gnow-actions { justify-content: stretch; }
    .gnow-action { flex: 1 1 calc(50% - 7px); }
    .gnow-canvas-wrap { padding: 7px; }
    .gnow-canvas { height: 440px; }
}
