/* GITECHY Design – app. Colours from the logo: charcoal #2F2F2D, blue #4F86E8, red #D9534F, green #3F8F4F, amber #F0B040, blueprint cyan #5FB3C4. */
* { box-sizing: border-box; }
html, body { margin: 0; }
body.gd { font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1f2937; background: #f3f5f8; }
a { color: #2f6bd8; }
.gd-muted { color: #6b7280; }
.gd-top { display: flex; align-items: center; gap: 22px; padding: 0 20px; height: 58px; background: #2F2F2D; color: #fff; position: sticky; top: 0; z-index: 20; }
.gd-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.gd-brand b { color: #5FB3C4; }
.gd-logo-sq { width: 34px; height: 34px; border-radius: 8px; }
.gd-nav { display: flex; gap: 4px; }
.gd-nav a { color: #d1d5db; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; }
.gd-nav a.is-on, .gd-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.gd-who { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; color: #d1d5db; }
.gd-who form { margin: 0; }
.gd-link { background: none; border: 0; color: #fff; text-decoration: underline; cursor: pointer; font: inherit; }
.gd-msg { max-width: 1100px; margin: 16px auto 0; padding: 10px 14px; border-radius: 10px; background: #e8f1ff; border: 1px solid #b9d0f7; }
.gd-msg.is-err { background: #fdecec; border-color: #f2b8b6; color: #8a1c1c; }
.gd-main { max-width: 1100px; margin: 0 auto; padding: 24px 20px 60px; }
.gd-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; margin-bottom: 14px; }
.gd-head h1, .gd-main h1 { margin: 0; font-size: 26px; }
.gd-card { background: #fff; border: 1px solid #e3e7ee; border-radius: 12px; padding: 16px; }
.gd-new { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.gd-new input, .gd-new select { flex: 1 1 200px; }
input, select, textarea { font: inherit; padding: 9px 11px; border: 1px solid #cfd6e0; border-radius: 8px; background: #fff; color: inherit; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid #4F86E8; outline-offset: 0; border-color: #4F86E8; }
.gd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 8px; border: 1px solid #cfd6e0; background: #fff; color: #1f2937; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.gd-btn:hover { border-color: #9aa6b5; }
.gd-btn-primary { background: #2F2F2D; border-color: #2F2F2D; color: #fff; }
.gd-btn-primary:hover { background: #111; }
.gd-btn-sm { padding: 5px 10px; font-size: 13px; }
.gd-danger { color: #b42318; border-color: #f2b8b6; }
.gd-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gd-row form { margin: 0; }
.gd-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; }
.gd-tabs a { padding: 6px 12px; border-radius: 999px; text-decoration: none; color: #374151; font-weight: 600; }
.gd-tabs a.is-on { background: #2F2F2D; color: #fff; }
.gd-search { margin-left: auto; }
.gd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.gd-proj { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; border-left: 4px solid #4F86E8; }
.gd-proj:hover { border-color: #2f6bd8; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.gd-proj span { color: #4b5563; font-size: 14px; }
.gd-proj small { color: #6b7280; }
.gd-empty { padding: 30px; text-align: center; color: #6b7280; background: #fff; border: 1px dashed #cfd6e0; border-radius: 12px; }
.gd-proj-head { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; }
.gd-h1-input { font-size: 20px; font-weight: 700; }
.gd-upload { margin-bottom: 16px; }
.gd-upload.is-over { border-color: #4F86E8; background: #f3f7ff; }
.gd-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px; border: 2px dashed #b9c3d0; border-radius: 10px; cursor: pointer; text-align: center; }
.gd-drop input { display: none; }
.gd-progress p { margin: 6px 0 0; font-size: 14px; }
.gd-progress .is-err { color: #b42318; }
.gd-sheet { display: flex; flex-direction: column; gap: 8px; }
.gd-thumb { display: block; aspect-ratio: 4 / 3; background: #f3f5f8; border-radius: 8px; overflow: hidden; border: 1px solid #e3e7ee; }
.gd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gd-sheet .gd-row input { flex: 1; }
.gd-foot { margin-top: 30px; padding-top: 16px; border-top: 1px solid #e3e7ee; justify-content: space-between; }
.gd-table { width: 100%; border-collapse: collapse; }
.gd-table th, .gd-table td { text-align: left; padding: 8px; border-bottom: 1px solid #eef1f5; }
.gd-form { display: grid; gap: 12px; max-width: 520px; margin-bottom: 16px; }
.gd-form label, .gd-auth label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.gd-auth { min-height: calc(100vh - 58px); display: flex; align-items: center; justify-content: center; padding: 20px; background: #2F2F2D url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M40 0H0v40' fill='none' stroke='%235FB3C4' stroke-opacity='.18'/%3E%3C/svg%3E"); }
.gd-auth-card { width: 100%; max-width: 400px; background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.gd-auth-card h1 { font-size: 22px; margin: 6px 0 16px; }
.gd-auth-card form { display: grid; gap: 12px; }
.gd-auth-logo { width: 64px; height: 64px; }
.gd-check { display: flex !important; align-items: center; gap: 8px; font-weight: 400 !important; }

/* ---------- editor ---------- */
.gd-v-sheet { overflow: hidden; }
.gd-editor { position: fixed; inset: 58px 0 0 0; display: grid; grid-template-columns: 230px 1fr; grid-template-rows: auto 1fr; background: #e9edf2; }
.gd-ebar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; background: #fff; border-bottom: 1px solid #dfe4ea; }
.gd-ebar select { max-width: 200px; padding: 5px 8px; }
.gd-tools { display: inline-flex; gap: 2px; padding: 3px; background: #f1f3f6; border-radius: 10px; }
.gd-tools button { width: 38px; height: 34px; border: 0; background: none; border-radius: 8px; cursor: pointer; font-size: 17px; }
.gd-tools button.is-on { background: #2F2F2D; color: #fff; }
.gd-tools button:hover:not(.is-on) { background: #e2e6ec; }
.gd-scale { font-size: 13px; color: #0e7490; font-weight: 600; }
.gd-scale.is-warn { color: #b45309; }
.gd-save { margin-left: auto; font-size: 13px; color: #6b7280; }
.gd-save.is-ok { color: #3F8F4F; }
.gd-save.is-err { color: #b42318; }
.gd-palette { overflow-y: auto; background: #fff; border-right: 1px solid #dfe4ea; padding: 10px; }
.gd-palette[hidden] { display: none; }
.gd-palette input[type=search] { width: 100%; margin-bottom: 6px; padding: 7px 9px; }
.gd-palette h4 { margin: 12px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.gd-syms { display: grid; gap: 4px; }
.gd-syms button { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border: 1px solid transparent; background: none; border-radius: 8px; cursor: pointer; text-align: left; font: inherit; font-size: 13px; }
.gd-syms button:hover { background: #f3f5f8; }
.gd-syms button.is-on { border-color: #2F2F2D; background: #eef2f7; }
.gd-sb { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 2px solid; border-radius: 50%; background: #fff; }
.gd-sb.is-box { border-radius: 7px; }
.gd-sb svg { width: 20px; height: 20px; }
.gd-sl { line-height: 1.2; }
.gd-size { display: grid; gap: 4px; margin-top: 14px; font-size: 13px; font-weight: 600; }
.gd-canvas { position: relative; overflow: hidden; touch-action: none; background: #e9edf2; }
.gd-v-sheet:not(:has(.gd-palette:not([hidden]))) .gd-editor { grid-template-columns: 1fr; }
.gd-props { position: absolute; top: 60px; right: 12px; width: 280px; max-height: calc(100% - 76px); overflow-y: auto; background: #fff; border: 1px solid #dfe4ea; border-radius: 12px; padding: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); display: grid; gap: 8px; z-index: 5; }
.gd-props[hidden] { display: none; }
.gd-props label { display: grid; gap: 3px; font-size: 13px; font-weight: 600; }
.gd-props input, .gd-props textarea { padding: 6px 8px; }
.gd-props h4 { margin: 6px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; }
.gd-ph { display: flex; align-items: center; gap: 8px; }
.gd-ph button { margin-left: auto; border: 0; background: none; color: #6b7280; cursor: pointer; text-decoration: underline; }
.gd-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.gd-layers { position: absolute; left: 242px; bottom: 12px; background: rgba(255,255,255,.96); border: 1px solid #dfe4ea; border-radius: 12px; padding: 10px 12px; font-size: 13px; display: grid; gap: 4px; z-index: 4; min-width: 200px; }
.gd-v-sheet:not(:has(.gd-palette:not([hidden]))) .gd-layers { left: 12px; }
.gd-lay { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gd-lay label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.gd-lay small { color: #6b7280; }
.gd-hint { position: absolute; left: 50%; top: 64px; transform: translateX(-50%); background: #2F2F2D; color: #fff; padding: 7px 14px; border-radius: 999px; font-size: 13px; z-index: 6; pointer-events: none; }
.gd-hint[hidden] { display: none; }

@media (max-width: 900px) {
	.gd-top { gap: 12px; padding: 0 12px; }
	.gd-who span { display: none; }
	.gd-brand span { display: none; }
	.gd-proj-head { grid-template-columns: 1fr; }
	.gd-editor { grid-template-columns: 120px 1fr; }
	.gd-sl { display: none; }
	.gd-syms { grid-template-columns: 1fr 1fr; }
	.gd-layers { left: 132px; }
	.gd-props { width: min(280px, calc(100% - 24px)); }
}
@media (max-width: 560px) {
	.gd-nav a { padding: 6px 8px; }
	.gd-editor { grid-template-columns: 76px 1fr; }
	.gd-syms { grid-template-columns: 1fr; }
	.gd-layers { left: 86px; min-width: 0; }
	.gd-scale { display: none; }
}

/* ---------- cable runs (M2) ---------- */
.gd-warn { margin: 6px 0 0; color: #b45309; font-size: 13px; }
.gd-small { font-size: 13px; }
.gd-totals-box { position: absolute; left: 242px; top: 60px; width: 280px; max-height: 40%; overflow-y: auto; background: rgba(255,255,255,.97); border: 1px solid #dfe4ea; border-radius: 12px; padding: 10px 12px; font-size: 13px; display: grid; gap: 4px; z-index: 4; }
.gd-totals-box[hidden] { display: none; }
.gd-tot { display: flex; align-items: center; gap: 6px; }
.gd-tot b { margin-left: auto; white-space: nowrap; }
.gd-tot small { color: #6b7280; }
.gd-len b { font-size: 16px; }
.gd-totals td:not(:first-child), .gd-totals th:not(:first-child) { text-align: right; }
.gd-props select { padding: 6px 8px; }
@media (max-width: 900px) { .gd-totals-box { width: 220px; left: 132px; } }
@media (max-width: 560px) { .gd-totals-box { left: 86px; } }
.gd-v-sheet:not(:has(.gd-palette:not([hidden]))) .gd-totals-box { left: 12px; }

/* ---------- power (M3) ---------- */
.gd-power-box { position: absolute; right: 12px; bottom: 12px; width: 300px; max-height: 50%; overflow-y: auto; background: rgba(255,255,255,.97); border: 1px solid #dfe4ea; border-radius: 12px; padding: 10px 12px; font-size: 13px; display: grid; gap: 8px; z-index: 4; }
.gd-power-box[hidden] { display: none; }
.gd-src { cursor: pointer; padding: 6px; border-radius: 8px; }
.gd-src:hover { background: #f3f5f8; }
.gd-bar { height: 7px; background: #e5e7eb; border-radius: 99px; overflow: hidden; margin: 4px 0; }
.gd-bar i { display: block; height: 100%; }
.gd-bad { color: #b42318; font-weight: 600; }
.gd-near { color: #b45309; font-weight: 600; }
tr.gd-bad td, tr.gd-near td { font-weight: 600; }
.gd-tools button[data-act=power].is-on, .gd-tools button[data-act=legend].is-on { background: #2F2F2D; color: #fff; }
.gd-scroll { overflow-x: auto; }

/* ---------- proposal (M5) ---------- */
.gd-main-prop { max-width: 1000px; }
.gd-prop { background: #fff; border: 1px solid #e3e7ee; border-radius: 12px; padding: 28px; }
.gd-public .gd-prop { max-width: 1000px; margin: 24px auto; }
.gd-prop-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 20px; }
.gd-prop-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-bottom: 3px solid #2F2F2D; padding-bottom: 16px; }
.gd-prop-logo { max-height: 70px; max-width: 220px; display: block; margin-bottom: 8px; }
.gd-prop-co { margin: 0; font-size: 14px; }
.gd-prop-title { text-align: right; }
.gd-prop-title h1 { margin: 0 0 6px; font-size: 30px; letter-spacing: .02em; }
.gd-prop-title p { margin: 0 0 6px; }
.gd-prop-sec { margin-top: 26px; }
.gd-prop-sec h2 { font-size: 18px; border-bottom: 1px solid #e3e7ee; padding-bottom: 6px; }
.gd-prop-plan { margin: 0 0 18px; }
.gd-prop-plan img { width: 100%; min-height: 120px; border: 1px solid #e3e7ee; border-radius: 6px; background: #f3f5f8; display: block; }
.gd-prop-plan figcaption { font-size: 13px; color: #6b7280; margin-top: 4px; }
.gd-bom td:nth-child(n+3), .gd-bom th:nth-child(n+3) { text-align: right; }
.gd-sum td { font-weight: 600; text-align: right; }
.gd-sum td:first-child { text-align: right; }
.gd-grand td { font-size: 17px; border-top: 2px solid #2F2F2D; }
.gd-approve label { display: grid; gap: 4px; font-weight: 600; margin-bottom: 10px; max-width: 420px; }
.gd-sig { display: block; width: 100%; max-width: 600px; height: 180px; border: 2px dashed #b9c3d0; border-radius: 10px; touch-action: none; background: #fff; margin-bottom: 8px; }
.gd-sig-img { max-width: 320px; border-bottom: 1px solid #333; }
.gd-prop-foot { text-align: center; margin: 16px 0 30px; }
.gd-revs { margin-top: 12px; }
.gd-linkbox { width: 260px; font-size: 12px; padding: 4px 6px; }
.gd-st-approved { color: #3F8F4F; font-weight: 600; }
.gd-st-declined { color: #b42318; font-weight: 600; }
.gd-logo-prev { max-height: 60px; max-width: 200px; display: block; margin: 4px 0; }
.gd-form-row { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); max-width: none; }
.gd-prices input { width: 110px; padding: 5px 7px; }
.gd-cathead td { background: #f3f5f8; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
/* Snapshot frames: only the plan. */
.gd-snap .gd-top, .gd-snap .gd-ebar, .gd-snap .gd-palette, .gd-snap .gd-layers, .gd-snap .gd-props, .gd-snap .gd-totals-box, .gd-snap .gd-power-box, .gd-snap .gd-hint { display: none !important; }
.gd-snap .gd-editor { inset: 0; grid-template-columns: 1fr; grid-template-rows: 1fr; }
@media print {
	.gd-top, .gd-noprint, .gd-msg { display: none !important; }
	body.gd { background: #fff; }
	.gd-main, .gd-prop { padding: 0; border: 0; max-width: none; margin: 0; }
	.gd-prop-plan { page-break-inside: avoid; }
	.gd-prop-sec { page-break-inside: auto; }
	.gd-prop-plans { page-break-after: always; }
	tr { page-break-inside: avoid; }
}
/* Page and Download panels (0.6). */
.gd-col { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.gd-props input[type=file] { font-size: .85rem; margin-top: 4px; }
.gd-tools button.gd-tool-txt { width: auto; padding: 0 10px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.gd-tools button.gd-tool-txt span { font-size: 13px; }
.gd-tools button[data-act=page].is-on, .gd-tools button[data-act=export].is-on { background: #2F2F2D; color: #fff; }
@media (max-width: 760px) { .gd-tools button.gd-tool-txt span { display: none; } }
.gd-legshow { display: grid; gap: 4px; margin-bottom: 10px; }
.gd-legshow small { color: #6b7280; }
.gd-lblown { margin: 6px 0 10px; }
.gd-lblown summary { cursor: pointer; font-weight: 600; margin-bottom: 6px; }
.gd-check input[type=checkbox] { flex: none; }


/* =====================================================================================================================
   0.8 – professional look: one palette, calmer surfaces, consistent controls, line-icon toolbar.
   ================================================================================================================== */
:root {
	--gd-ink: #1b1f24; --gd-text: #2c333b; --gd-muted: #6a7480; --gd-line: #e2e6eb; --gd-line-2: #d3d9e0;
	--gd-bg: #f5f6f8; --gd-surface: #fff; --gd-char: #2F2F2D; --gd-accent: #2b8a9c; --gd-accent-l: #e6f4f6; --gd-cyan: #5FB3C4;
	--gd-radius: 10px; --gd-shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06); --gd-shadow-lg: 0 12px 32px rgba(16,24,40,.14);
}
body.gd { font: 14px/1.5 Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--gd-text); background: var(--gd-bg); -webkit-font-smoothing: antialiased; letter-spacing: -.003em; }
a { color: var(--gd-accent); }
h1, h2, h3 { color: var(--gd-ink); letter-spacing: -.015em; }
.gd-main h1, .gd-head h1 { font-size: 24px; font-weight: 700; }
.gd-card h2 { font-size: 16px; margin: 0 0 10px; }
.gd-muted { color: var(--gd-muted); }

/* Top bar */
.gd-top { height: 56px; background: #232422; border-bottom: 1px solid #000; box-shadow: 0 1px 0 rgba(255,255,255,.04) inset; }
.gd-brand { font-size: 15px; }
.gd-logo-sq { width: 30px; height: 30px; border-radius: 7px; }
.gd-nav a { color: #b9bfc6; font-weight: 500; padding: 7px 12px; border-radius: 7px; font-size: 14px; }
.gd-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.gd-nav a.is-on { background: rgba(95,179,196,.16); color: #fff; box-shadow: inset 0 -2px 0 var(--gd-cyan); }
.gd-who { color: #9aa3ad; }

/* Surfaces and controls */
.gd-card, .gd-prop { border: 1px solid var(--gd-line); border-radius: 12px; box-shadow: var(--gd-shadow); background: var(--gd-surface); }
.gd-card { padding: 18px 20px; }
input, select, textarea { border: 1px solid var(--gd-line-2); border-radius: 8px; padding: 8px 10px; background: #fff; transition: border-color .12s, box-shadow .12s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gd-accent); box-shadow: 0 0 0 3px rgba(43,138,156,.18); }
input:disabled, select:disabled { background: #f3f5f7; color: #8a939d; }
.gd-btn { border: 1px solid var(--gd-line-2); border-radius: 8px; padding: 8px 14px; font-weight: 600; font-size: 14px; color: var(--gd-ink); background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.05); transition: background .12s, border-color .12s; }
.gd-btn:hover { background: #f7f8fa; border-color: #b9c1cb; }
.gd-btn-primary { background: var(--gd-char); border-color: var(--gd-char); color: #fff; }
.gd-btn-primary:hover { background: #151514; border-color: #151514; }
.gd-btn-sm { padding: 5px 10px; font-size: 13px; }
.gd-danger { color: #b42318; border-color: #f4c7c3; }
.gd-danger:hover { background: #fef3f2; }
.gd-msg { border-radius: 10px; background: var(--gd-accent-l); border-color: #bfe3ea; color: #164e58; }
.gd-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--gd-muted); font-weight: 600; background: #fafbfc; }
.gd-table th, .gd-table td { border-bottom: 1px solid #edf0f3; padding: 9px 10px; }
.gd-proj { border-left: 3px solid var(--gd-cyan); }
.gd-proj:hover { box-shadow: var(--gd-shadow-lg); }
.gd-tabs a.is-on { background: var(--gd-char); }

/* Editor bar */
.gd-editor { inset: 56px 0 0 0; background: #e8ebef; }
.gd-ebar { gap: 10px; padding: 7px 12px; border-bottom: 1px solid var(--gd-line); box-shadow: 0 1px 2px rgba(16,24,40,.04); flex-wrap: nowrap; overflow-x: auto; }
.gd-ebar > .gd-btn { flex: none; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.gd-ebar select { padding: 6px 8px; font-size: 13px; }
.gd-tools { flex: none; gap: 1px; padding: 3px; background: #f1f3f5; border: 1px solid var(--gd-line); border-radius: 10px; align-items: center; }
.gd-tools button { width: 34px; height: 32px; display: inline-flex; align-items: center; justify-content: center; color: #3b434c; border-radius: 7px; font-size: 13px; }
.gd-tools button:hover:not(.is-on) { background: #e3e7eb; color: var(--gd-ink); }
.gd-tools button.is-on, .gd-tools button[data-act].is-on { background: var(--gd-char); color: #fff; }
.gd-tools button.gd-tool-txt { width: auto; gap: 6px; padding: 0 10px; font-weight: 600; }
.gd-tools button.gd-tool-main { background: var(--gd-accent); color: #fff; margin-left: 2px; }
.gd-tools button.gd-tool-main:hover:not(.is-on) { background: #23788a; color: #fff; }
.gd-tools .gd-ic { flex: none; }
.gd-sep { display: inline-block; width: 1px; height: 20px; background: var(--gd-line-2); margin: 0 4px; }
.gd-ebar-end { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.gd-ebar-end .gd-save { margin-left: 0; }
.gd-lenmode { max-width: 170px; }
.gd-scale { color: var(--gd-accent); white-space: nowrap; }

/* Side palette */
.gd-palette { padding: 12px; border-right: 1px solid var(--gd-line); }
.gd-palette h4 { font-size: 11px; letter-spacing: .08em; margin: 16px 2px 6px; }
.gd-syms button { padding: 5px 6px; border-radius: 7px; font-size: 13px; color: var(--gd-text); }
.gd-syms button:hover { background: #f1f4f6; }
.gd-syms button.is-on { border-color: var(--gd-accent); background: var(--gd-accent-l); }
.gd-sb { width: 30px; height: 30px; border-width: 1.6px; }
.gd-sb svg { width: 18px; height: 18px; }

/* Floating panels */
.gd-props, .gd-layers, .gd-totals-box, .gd-power-box { border: 1px solid var(--gd-line); border-radius: 12px; box-shadow: var(--gd-shadow-lg); background: rgba(255,255,255,.98); }
.gd-props { padding: 14px; gap: 10px; }
.gd-props label { font-weight: 600; color: var(--gd-ink); font-size: 12.5px; }
.gd-props h4, .gd-legshow + h4 { font-size: 11px; letter-spacing: .08em; color: var(--gd-muted); margin-top: 8px; }
.gd-ph { padding-bottom: 8px; border-bottom: 1px solid var(--gd-line); margin-bottom: 2px; }
.gd-ph strong { font-size: 14px; color: var(--gd-ink); }
.gd-ph button { text-decoration: none; font-size: 12px; padding: 3px 8px; border-radius: 6px; }
.gd-ph button:hover { background: #f1f3f5; color: var(--gd-ink); }
.gd-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gd-lblown { border: 1px solid var(--gd-line); border-radius: 9px; padding: 8px 10px; background: #fafbfc; }
.gd-lblown summary { font-size: 13px; }
.gd-hint { background: var(--gd-char); box-shadow: var(--gd-shadow-lg); font-weight: 500; }
@media (max-width: 900px) { .gd-lenmode { max-width: 110px; } .gd-tools button.gd-tool-txt span { display: none; } }
.gd-ebar > .gd-btn { flex: 0 1 auto; min-width: 0; }
.gd-ebar > select[data-sheetpick] { flex: none; min-width: 150px; max-width: 220px; }
.gd-lenmode { max-width: 140px; }
.gd-layers > strong { cursor: pointer; user-select: none; display: flex; align-items: center; gap: 6px; }
.gd-layers > strong::after { content: ""; width: 7px; height: 7px; border: solid var(--gd-muted); border-width: 0 2px 2px 0; transform: rotate(45deg); margin: -3px 0 0 auto; }
.gd-layers.is-shut > strong::after { transform: rotate(-135deg); margin-top: 3px; }
.gd-layers.is-shut > .gd-lay { display: none; }
.gd-ebar > .gd-btn { max-width: 210px; }
.gd-ebar-end select.gd-lenmode { width: 130px; max-width: 130px; }
.gd-ebar > .gd-btn { display: block; text-overflow: ellipsis; text-align: left; }

/* ---------- 0.8.1 settings area (company, prices, team) ---------- */
.gd-set { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; max-width: 1180px; margin: 0 auto; padding: 28px 24px 80px; align-items: start; }
.gd-set-nav { position: sticky; top: 80px; }
.gd-set-cap { margin: 0 0 10px 12px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gd-muted); }
.gd-set-nav nav { display: grid; gap: 2px; }
.gd-set-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--gd-text); text-decoration: none; font-weight: 500; }
.gd-set-nav a .gd-ic { color: var(--gd-muted); }
.gd-set-nav a:hover { background: #eceff3; }
.gd-set-nav a.is-on { background: #fff; color: var(--gd-ink); font-weight: 600; box-shadow: var(--gd-shadow); }
.gd-set-nav a.is-on .gd-ic { color: var(--gd-accent); }
.gd-set-title { margin-bottom: 18px; }
.gd-set-title h1 { margin: 0 0 4px; font-size: 26px; }
.gd-set-title p { margin: 0; color: var(--gd-muted); }
.gd-sec { background: #fff; border: 1px solid var(--gd-line); border-radius: 14px; box-shadow: var(--gd-shadow); margin-bottom: 18px; scroll-margin-top: 80px; overflow: hidden; }
.gd-sec-h { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-bottom: 1px solid #eef1f4; background: linear-gradient(180deg, #fbfcfd, #fff); }
.gd-sec-h h2 { margin: 0; font-size: 16px; }
.gd-sec-h p { margin: 2px 0 0; color: var(--gd-muted); font-size: 13px; }
.gd-sec-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--gd-accent-l); color: var(--gd-accent); }
.gd-sec-b { padding: 20px 22px; }
.gd-sec label, .gd-fields label { display: grid; gap: 5px; font-weight: 600; font-size: 13px; color: var(--gd-ink); }
.gd-sec label small { font-weight: 400; font-size: 12px; }
.gd-sec textarea { resize: vertical; }
.gd-fields { display: grid; gap: 14px; }
.gd-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.gd-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; }
.gd-sec-b.gd-grid2 { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
.gd-mt { margin-top: 16px; }
.gd-logo-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 180px; padding: 16px; border: 1px dashed var(--gd-line-2); border-radius: 12px; background: #fafbfc; text-align: center; color: var(--gd-muted); }
.gd-logo-tile img { max-width: 180px; max-height: 90px; object-fit: contain; }
.gd-logo-tile label.gd-btn { display: inline-flex; font-weight: 600; cursor: pointer; }
.gd-logo-tile em { font-style: normal; font-weight: 400; color: var(--gd-accent); }
.gd-switch { display: flex !important; align-items: center; gap: 10px; cursor: pointer; font-weight: 500 !important; }
.gd-switch input { position: absolute; opacity: 0; }
.gd-switch i { position: relative; width: 38px; height: 22px; border-radius: 99px; background: #cfd6de; transition: background .15s; flex: none; }
.gd-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.gd-switch input:checked + i { background: var(--gd-accent); }
.gd-switch input:checked + i::after { transform: translateX(16px); }
.gd-switch input:focus-visible + i { box-shadow: 0 0 0 3px rgba(43,138,156,.25); }
.gd-savebar { position: sticky; bottom: 14px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 4px 0 22px; padding: 12px 14px 12px 20px; background: rgba(35,36,34,.96); color: #d6dadf; border-radius: 12px; box-shadow: var(--gd-shadow-lg); font-size: 13px; }
.gd-savebar .gd-btn-primary { background: var(--gd-cyan); border-color: var(--gd-cyan); color: #10272c; }
.gd-savebar .gd-btn-primary:hover { background: #7cc8d6; border-color: #7cc8d6; }
.gd-sec-fold > summary { display: flex; align-items: center; gap: 10px; padding: 15px 22px; cursor: pointer; font-weight: 600; color: var(--gd-ink); list-style: none; }
.gd-sec-fold > summary::-webkit-details-marker { display: none; }
.gd-sec-fold > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border: solid var(--gd-muted); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.gd-sec-fold[open] > summary { border-bottom: 1px solid #eef1f4; }
.gd-sec-fold[open] > summary::after { transform: rotate(-135deg); }
.gd-sec-fold .gd-table { margin: 0; }
.gd-sec-fold .gd-table th:first-child, .gd-sec-fold .gd-table td:first-child { padding-left: 22px; }
.gd-prices input { width: 110px; padding: 6px 8px; }
.gd-people { list-style: none; margin: 0; padding: 6px 0; }
.gd-people li { display: flex; align-items: center; gap: 14px; padding: 12px 22px; border-bottom: 1px solid #f0f2f5; }
.gd-people li:last-child { border-bottom: 0; }
.gd-people form { margin: 0; }
.gd-people-who { display: grid; flex: 1; min-width: 0; }
.gd-people-who span { color: var(--gd-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.gd-ava { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; font-weight: 700; font-size: 13px; color: #fff; background: #5b6b80; }
.gd-ava-owner { background: var(--gd-char); }
.gd-ava-designer { background: var(--gd-accent); }
.gd-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #eef1f4; color: var(--gd-text); }
.gd-pill-owner { background: #2F2F2D; color: #fff; }
.gd-pill-ok { background: #e7f5ec; color: #1f7a3f; }
.gd-invite { display: grid; grid-template-columns: 1fr 1.3fr 160px auto; gap: 14px; align-items: end; }
.gd-plan { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-bottom: 14px; }
.gd-plan-name { display: inline-block; padding: 6px 14px; border-radius: 10px; background: var(--gd-char); color: #fff; font-weight: 700; font-size: 18px; }
.gd-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.gd-stats div { display: grid; padding: 10px 16px; border: 1px solid var(--gd-line); border-radius: 10px; min-width: 150px; }
.gd-stats b { font-size: 17px; color: var(--gd-ink); }
.gd-stats span { font-size: 12px; color: var(--gd-muted); }
@media (max-width: 900px) {
	.gd-set { grid-template-columns: 1fr; padding: 18px 14px 70px; }
	.gd-set-nav { position: static; }
	.gd-set-nav nav { display: flex; overflow-x: auto; gap: 4px; }
	.gd-set-nav a { white-space: nowrap; }
	.gd-set-cap { display: none; }
	.gd-grid3, .gd-grid2, .gd-sec-b.gd-grid2, .gd-invite { grid-template-columns: 1fr; }
}
.gd-sec input, .gd-sec select, .gd-sec textarea, .gd-props input, .gd-props select, .gd-props textarea { font-weight: 400; }
.gd-sb.is-plain { border-color: transparent !important; background: #f3f4f6; border-radius: 6px; }
.gd-new { align-items: end; }
.gd-new label, .gd-proj-head label { display: grid; gap: 5px; flex: 1 1 200px; font-size: 13px; font-weight: 600; color: var(--gd-ink); }
.gd-new label input, .gd-proj-head label input { width: 100%; font-weight: 400; }
.gd-proj-head { align-items: end; }
.gd-proj-head .gd-h1-input { font-weight: 700; }
.gd-switches { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.gd-sublabel { margin: 4px 0 8px; font-weight: 600; font-size: 13px; color: var(--gd-ink); }
.gd-prop-pick { display: grid; gap: 10px; padding: 14px 16px; margin: -6px 0 20px; background: #f7f9fb; border: 1px solid var(--gd-line); border-radius: 12px; }
.gd-prop-pick strong { font-size: 13px; }
.gd-prop-pick .gd-btn { justify-self: start; }
.gd-syms button[hidden], .gd-palette h4[hidden], .gd-syms[hidden] { display: none !important; }
.gd-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gd-colors > span { width: 100%; font-size: 12.5px; font-weight: 600; color: var(--gd-ink); }
.gd-colors button[data-col]:not(.gd-link-btn), .gd-colors button[data-lc]:not(.gd-link-btn) { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--gd-line-2); cursor: pointer; padding: 0; }
.gd-colors button[data-col].is-on:not(.gd-link-btn), .gd-colors button[data-lc].is-on:not(.gd-link-btn) { box-shadow: 0 0 0 2px var(--gd-ink); }
.gd-colors input[type=color] { width: 30px; height: 26px; padding: 0 2px; border-radius: 6px; cursor: pointer; }
.gd-colors .gd-link-btn { border: 0; background: none; color: var(--gd-accent); font-size: 12px; cursor: pointer; text-decoration: underline; padding: 0 4px; }
.gd-sheets-head { align-items: center; } .gd-sheets-head h2 { margin: 0; } .gd-sheets-head .gd-ic { vertical-align: -4px; }
/* Demo companies (0.9.5): badge in the top bar; watermark over proposals – on screen and in print. */
.gd-demo-badge { padding: 2px 9px; border-radius: 99px; background: #d9534f; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.gd-demo-wm { position: relative; }
.gd-demo-wm::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='260'%3E%3Ctext x='20' y='160' transform='rotate(-30 210 130)' font-family='Arial,sans-serif' font-size='34' font-weight='700' fill='%23d9534f' fill-opacity='0.16'%3EDEMO %C2%B7 GITECHY Design%3C/text%3E%3C/svg%3E") repeat; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
