/* Mockup zlatý rez – plátno grafického editora: pravítka, fí‑mriežka, kompozícia krajiny, kóty; zlatá + bridlicová */
.cform[data-tool="golden-ratio"], #res { --gr-gold: #b8862b; --gr-gold2: #e0b04f; --gr-ink: #263238; --gr-mut: #66737a; --gr-desk: #e9ecee; --gr-rul: #fbf7ec; --gr-line: #cfd6da; }
@media (prefers-color-scheme: dark) {
  .cform[data-tool="golden-ratio"], #res { --gr-gold: #e7b75a; --gr-gold2: #f3cd7c; --gr-ink: #e8edf0; --gr-mut: #a9b6bd; --gr-desk: #232a35; --gr-rul: #313a48; --gr-line: #46515f; }
}
/* pole ako vstup v paneli vlastností editora */
.cform[data-tool="golden-ratio"] .field { position: relative; }
.cform[data-tool="golden-ratio"] .field > label { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--gr-mut); }
.cform[data-tool="golden-ratio"] .field input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.25rem; border: 1.5px solid var(--gr-line);
  border-bottom: 3px solid var(--gr-gold); border-radius: 6px 6px 2px 2px; background: repeating-linear-gradient(90deg, transparent 0 9px, color-mix(in srgb, var(--gr-gold) 14%, transparent) 9px 10px) bottom / 100% 6px no-repeat, var(--card); }
.cform[data-tool="golden-ratio"] .field input:focus { outline: 2px solid var(--gr-gold2); outline-offset: 1px; }
.cform[data-tool="golden-ratio"] .chip { border-color: var(--gr-gold); color: var(--gr-gold); }

#res { border-top-color: var(--gr-gold); }
.gr { margin: .3rem 0 .9rem; padding: .6rem .4rem .2rem; border-radius: 12px; background: radial-gradient(circle, color-mix(in srgb, var(--gr-ink) 9%, transparent) 1px, transparent 1.4px) 0 0 / 14px 14px, var(--gr-desk); }
.gr-svg { display: block; width: 100%; max-width: 500px; height: auto; margin: 0 auto; }
.gr-rul { fill: var(--gr-rul); stroke: var(--gr-line); }
.gr-tk { stroke: var(--gr-mut); stroke-width: 1; }
.gr-rmark { fill: var(--gr-gold); }
.gr-rl { font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; fill: var(--gr-ink); }
.gr-ra { fill: var(--gr-gold); }
.gr-shadow { fill: rgba(0, 0, 0, .18); }
.gr-sundisc { fill: #fff1c4; }
.gr-mtn2 { fill: #7e8fa3; opacity: .75; }
.gr-mtn { fill: #4b5d6e; }
.gr-glint { stroke: #ffe3a6; stroke-width: 2; stroke-linecap: round; opacity: .8; }
.gr-boat { fill: #1d2c33; }
.gr-grid { fill: none; stroke: #fff; stroke-width: 1.2; stroke-dasharray: 5 4; opacity: .85; }
.gr-nest { stroke: var(--gr-gold2); stroke-width: 1.6; stroke-dasharray: 2 3; }
.gr-frame { fill: none; stroke: var(--gr-ink); stroke-width: 1.2; }
.gr-cut { stroke: var(--gr-gold2); stroke-width: 3; }
.gr-knob { fill: var(--gr-gold); stroke: #fff; stroke-width: 1.5; }
.gr-hd { fill: #fff; stroke: #2f7bd8; stroke-width: 1.3; }
.gr-phi { font: italic 700 15px/1 Georgia, "Times New Roman", serif; fill: #fff; paint-order: stroke; stroke: rgba(20, 40, 50, .45); stroke-width: 3px; }
.gr-dim { fill: none; stroke: var(--gr-ink); stroke-width: 1.3; }
.gr-db { stroke: var(--gr-gold); }
.gr-ds { stroke: var(--gr-mut); }
.gr-dn { font: 600 11.5px/1 system-ui, sans-serif; fill: var(--gr-mut); }
.gr-dv { font: 800 16px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; fill: var(--gr-ink); }
.gr-vb { fill: var(--gr-gold); }
.gr-ex { font: italic 700 13px/1 system-ui, sans-serif; fill: #fff; opacity: 0; paint-order: stroke; stroke: rgba(0, 0, 0, .35); stroke-width: 3px; }
.gr.is-example .gr-ex { opacity: .95; }
.gr.is-example .gr-pic { opacity: .5; filter: saturate(.55); }
.gr.is-example .gr-dims, .gr.is-example .gr-rl:not(.gr-r0) { opacity: .55; }
.gr.is-example .gr-dv { font-style: italic; font-weight: 600; }
@media (max-width: 560px) { .gr { padding: .4rem 0 0; } .gr-dn { font-size: 15px; } .gr-dv { font-size: 19px; } .gr-rl { font-size: 14px; } .gr-phi { font-size: 18px; } }
.gr.is-snap .gr-cut, .gr.is-snap .gr-knob { animation: gr-snap .6s ease-out; }
@keyframes gr-snap { 0% { stroke: #fff; stroke-width: 7; } 100% { stroke-width: 3; } }
@media (prefers-reduced-motion: reduce) { .gr.is-snap .gr-cut, .gr.is-snap .gr-knob { animation: none; } }

/* dlaždice ako štítky kót: monospace hodnota, zlatý zárez */
#res #out .tile { position: relative; background: var(--gr-rul); border: 1px solid var(--gr-line); border-radius: 4px; text-align: left; padding-left: 1.1rem; }
#res #out .tile::before { content: ""; position: absolute; left: 0; top: 50%; width: 9px; height: 18px; margin-top: -9px; background: var(--gr-gold); clip-path: polygon(0 0, 100% 50%, 0 100%); }
#res #out .tile dt { text-transform: uppercase; letter-spacing: .07em; font-size: .72rem; color: var(--gr-mut); }
#res #out .tile dd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--gr-ink); }
