:root {
	--bg: #f7f4f0;
	--surface: #ffffff;
	--surface-2: #faf8f5;
	--ink: #24201c;
	--ink-2: #5d564e;
	--muted: #8d857b;
	--line: #e8e2da;
	--line-2: #d9d1c6;
	--accent: #8a4f3d;
	--accent-ink: #ffffff;
	--accent-soft: #f4e8e3;
	--ok: #2f7a55;
	--ok-soft: #e5f2ea;
	--warn: #9a6200;
	--warn-soft: #fbf0d9;
	--danger: #b3392f;
	--danger-soft: #fbe7e5;
	--info-soft: #eaf0f7;
	--radius: 14px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(36, 32, 28, .05), 0 4px 16px rgba(36, 32, 28, .05);
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--side: 248px;
	--tabbar: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }

.gk-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gk-muted { color: var(--muted); }
.gk-link { color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.gk-link:hover { text-decoration: underline; }

/* Layout */
.gk-side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 20px 14px; z-index: 20; }
.gk-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 4px 8px 22px; }
.gk-brand__mark { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 18px; flex: none; }
.gk-brand__logo { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; flex: none; }
.gk-brand__name { font-weight: 650; line-height: 1.2; }
.gk-nav { display: flex; flex-direction: column; gap: 4px; }
.gk-nav__item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink-2); font-weight: 500; }
.gk-nav__item:hover { background: var(--surface-2); color: var(--ink); }
.gk-nav__item.is-active { background: var(--accent-soft); color: var(--accent); }
.gk-nav__item--new { margin-top: 10px; background: var(--accent); color: var(--accent-ink); }
.gk-nav__item--new:hover { background: #77412f; color: var(--accent-ink); }
.gk-side__foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding: 12px 8px 0; border-top: 1px solid var(--line); font-size: 14px; }

.gk-main { margin-left: var(--side); min-height: 100vh; }
.gk-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 14px 28px; background: rgba(247, 244, 240, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.gk-top__title { font-size: 22px; font-weight: 650; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gk-top__back { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); text-decoration: none; flex: none; }
.gk-top__search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; width: 280px; color: var(--muted); }
.gk-top__search input { border: 0; outline: 0; background: transparent; padding: 9px 0; width: 100%; color: var(--ink); }
.gk-content { padding: 8px 28px 48px; max-width: 1100px; }

.gk-tabbar { display: none; }

/* Cards and common blocks */
.gk-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.gk-card--flush { padding: 4px 0; }
.gk-card__title { font-size: 17px; font-weight: 650; margin-bottom: 12px; }
.gk-narrow { max-width: 760px; }
.gk-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.gk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, opacity .15s; }
.gk-btn:hover { background: #77412f; }
.gk-btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.gk-btn--ghost:hover { background: var(--surface-2); }
.gk-btn--danger { background: var(--surface); color: var(--danger); border-color: #e6bdb8; }
.gk-btn--danger:hover { background: var(--danger-soft); }
.gk-btn--sm { min-height: 34px; padding: 6px 12px; font-size: 14px; }
.gk-btn--lg { min-height: 52px; padding: 12px 26px; font-size: 17px; }
.gk-btn--block { width: 100%; }
.gk-btn.is-busy { opacity: .6; pointer-events: none; }
.gk-iconbtn { border: 0; background: rgba(255, 255, 255, .92); color: var(--danger); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.gk-iconbtn .gk-icon { width: 16px; height: 16px; }

.gk-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); text-decoration: none; font-weight: 500; font-size: 15px; }
.gk-pill .gk-icon { width: 17px; height: 17px; }
.gk-pill--ghost { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }

.gk-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.gk-tag--pirmas { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.gk-tag--konsultacija { background: var(--info-soft); border-color: transparent; color: #3b5a80; }
.gk-badge { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--line); font-size: 12px; text-align: center; color: var(--ink-2); }

.gk-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 650; font-size: 15px; flex: none; letter-spacing: .02em; }
.gk-avatar--lg { width: 64px; height: 64px; font-size: 22px; }

.gk-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); margin: 12px 0; font-size: 15px; }
.gk-alert--error { background: var(--danger-soft); color: var(--danger); }
.gk-alert--warn { background: var(--warn-soft); color: #6f4600; }
.gk-alert--info { background: var(--info-soft); color: #2d4a6b; }
.gk-alert .gk-icon { margin-top: 1px; }

.gk-flash { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); z-index: 50; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; box-shadow: 0 8px 30px rgba(0, 0, 0, .18); transition: opacity .4s, transform .4s; max-width: calc(100% - 32px); }
.gk-flash--warn { background: #7a4d00; }
.gk-flash.is-hiding { opacity: 0; transform: translate(-50%, -12px); pointer-events: none; }

.gk-empty { text-align: center; padding: 56px 20px; color: var(--ink-2); }
.gk-empty h2 { margin-bottom: 8px; }
.gk-empty--inline { padding: 28px 16px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* Dashboard */
.gk-hero-search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: var(--shadow); margin: 8px 0 18px; color: var(--muted); }
.gk-hero-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 17px; padding: 10px 0; color: var(--ink); min-width: 0; }
.gk-hero-search--compact { margin: 0; flex: 1; padding: 4px 18px; }
.gk-toolbar { display: flex; gap: 12px; align-items: center; margin: 8px 0 12px; }
.gk-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.gk-action { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; box-shadow: var(--shadow); }
.gk-action .gk-icon { width: 26px; height: 26px; }
.gk-action span { display: flex; flex-direction: column; }
.gk-action small { color: var(--muted); }
.gk-action--primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.gk-action--primary small { color: rgba(255, 255, 255, .78); }
.gk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.gk-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; }
.gk-stat__num { font-size: 28px; font-weight: 700; line-height: 1.1; }
.gk-stat__label { color: var(--muted); font-size: 14px; }

/* Lists */
.gk-list { list-style: none; margin: 0; padding: 0; }
.gk-list li + li { border-top: 1px solid var(--line); }
.gk-list__row { display: flex; align-items: center; gap: 12px; padding: 12px 6px; text-decoration: none; border-radius: var(--radius-sm); }
.gk-card--flush .gk-list__row { padding: 12px 18px; border-radius: 0; }
a.gk-list__row:hover { background: var(--surface-2); }
.gk-list__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gk-list__main strong { font-weight: 600; }
.gk-list__main small, .gk-list__meta small { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gk-list__meta { display: flex; flex-direction: column; align-items: flex-end; font-size: 14px; color: var(--ink-2); text-align: right; flex: none; }
.gk-count { margin: 4px 2px 8px; font-size: 14px; }
.gk-pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.gk-pager__item { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.gk-pager__item.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Profile */
.gk-profile__id { display: flex; align-items: center; gap: 16px; }
.gk-profile__name { font-size: 24px; font-weight: 700; }
.gk-profile__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 14px; margin-top: 2px; }
.gk-profile__contact { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.gk-profile__notes { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 14px; margin: 12px 0 0; color: var(--ink-2); font-size: 15px; }
.gk-status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.gk-status__item { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); text-decoration: none; background: var(--surface-2); }
.gk-status__item span { display: flex; flex-direction: column; min-width: 0; }
.gk-status__item small { font-size: 13px; color: var(--muted); }
.gk-status__item.is-done .gk-icon { color: var(--ok); }
.gk-status__item.is-todo { border-color: #ecd3a3; background: var(--warn-soft); }
.gk-status__item.is-todo .gk-icon { color: var(--warn); }
.gk-status__item--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.gk-status__item--primary small { color: rgba(255, 255, 255, .8); }

.gk-tabs__nav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 8px 0 16px; overflow-x: auto; scrollbar-width: none; }
.gk-tabs__nav button { border: 0; background: none; padding: 12px 14px; cursor: pointer; color: var(--ink-2); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.gk-tabs__nav button.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.gk-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }

.gk-timeline { list-style: none; margin: 0; padding: 0 0 0 20px; position: relative; }
.gk-timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.gk-timeline__item { position: relative; }
.gk-timeline__item::before { content: ""; position: absolute; left: -19px; top: 24px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.gk-visit { display: block; text-decoration: none; margin-bottom: 12px; padding: 16px 18px; }
.gk-visit:hover { border-color: var(--line-2); }
.gk-visit__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.gk-visit__date { font-weight: 650; margin-right: 4px; }
.gk-visit__title { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.gk-visit__line { font-size: 15px; color: var(--ink-2); }
.gk-visit__by { font-size: 13px; margin-top: 8px; }

.gk-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gk-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.gk-thumbs__more { width: 64px; height: 64px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); font-weight: 600; }
.gk-thumbs--edit { margin: 0 0 12px; }
.gk-thumbs__item { position: relative; }
.gk-thumbs__item img { width: 96px; height: 96px; }
.gk-thumbs__item .gk-iconbtn { position: absolute; top: 4px; right: 4px; }
.gk-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gk-gallery figure { margin: 0; }
.gk-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); }
.gk-gallery figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; display: flex; justify-content: space-between; align-items: center; }
.gk-gallery figcaption form { margin: 0; }
.gk-upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gk-file { position: relative; overflow: hidden; }
.gk-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.gk-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.gk-preview:empty { display: none; }
.gk-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }

.gk-dl { display: grid; grid-template-columns: minmax(160px, 32%) 1fr; gap: 8px 16px; margin: 0; }
.gk-dl dt { color: var(--muted); font-size: 14px; padding-top: 1px; }
.gk-dl dd { margin: 0; }
.gk-dl mark { background: var(--warn-soft); color: #6f4600; padding: 0 4px; border-radius: 4px; }
.gk-dl__section + .gk-dl__section { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.gk-dl__section h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: 10px; }
.gk-drawing { max-width: 220px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.gk-sig-mini { display: inline-block; height: 40px; width: auto; vertical-align: middle; }

.gk-consent-view__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.gk-consent-view__sig { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.gk-consent-view__sig img { height: 56px; width: auto; }
.gk-consent-text { white-space: normal; color: var(--ink-2); font-size: 15px; margin-top: 8px; }
.gk-consent-text--big { font-size: 17px; line-height: 1.65; color: var(--ink); }

.gk-danger { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid #efd2ce; border-radius: var(--radius); background: #fffafa; margin-top: 24px; }
.gk-danger p { margin: 2px 0 0; font-size: 14px; }

/* Forms */
.gk-form .gk-field__label, .gk-field__label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 14px 0 6px; }
.gk-field__hint { font-size: 13px; color: var(--muted); margin: -2px 0 8px; }
.gk-input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; outline: 0; transition: border-color .15s, box-shadow .15s; }
.gk-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.gk-input { resize: vertical; line-height: 1.5; }
.gk-input--sm { min-height: 40px; padding: 8px 12px; font-size: 15px; margin-top: 8px; max-width: 420px; }
.gk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.gk-form__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.gk-form__actions--sticky { position: sticky; bottom: 0; padding: 12px 0; margin: 8px 0 0; background: linear-gradient(transparent, var(--bg) 30%); z-index: 5; }
.gk-check { display: flex; align-items: center; gap: 8px; margin: 14px 0; font-size: 15px; cursor: pointer; }
.gk-check input { width: 18px; height: 18px; accent-color: var(--accent); }

.gk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gk-chip { position: relative; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.gk-chip input { position: absolute; opacity: 0; pointer-events: none; }
.gk-chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 15px; transition: background .12s, border-color .12s, color .12s; }
.gk-chip:hover span { border-color: var(--muted); }
.gk-chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.gk-chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }
.gk-chip--alert input:checked + span { background: #a0570b; border-color: #a0570b; }
.gk-chips--seg { margin-bottom: 4px; }

.gk-field { padding: 4px 0 12px; }
.gk-field + .gk-field { border-top: 1px solid var(--line); padding-top: 12px; }
.gk-field--inline { border-top: 0 !important; padding-top: 0 !important; }
.gk-field--inline .gk-input { max-width: 420px; }
.gk-sub { margin: 10px 0 0 4px; padding: 4px 0 0 14px; border-left: 3px solid var(--accent-soft); }
.gk-sub .gk-field { border-top: 0; padding: 0 0 8px; }

.gk-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow); }
.gk-section__head { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; font-weight: 650; font-size: 17px; }
.gk-section__head::-webkit-details-marker { display: none; }
.gk-section__head::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-left: 8px; transition: transform .2s; }
.gk-section[open] > .gk-section__head::after { transform: rotate(-135deg); }
.gk-section__head span:first-child { flex: 1; }
.gk-section__count:not(:empty) { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 0 9px; font-size: 13px; }
.gk-section__body { padding: 0 20px 12px; }
.gk-section__body .gk-field:first-child { padding-top: 0; }
.gk-section__body .gk-field__label { margin-top: 4px; }

.gk-switch { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; cursor: pointer; box-shadow: var(--shadow); }
.gk-switch input { appearance: none; -webkit-appearance: none; width: 48px; height: 28px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; cursor: pointer; transition: background .2s; margin: 0; }
.gk-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.gk-switch input:checked { background: var(--accent); }
.gk-switch input:checked::after { transform: translateX(20px); }
.gk-switch input:disabled { opacity: .7; }
.gk-switch span { display: flex; flex-direction: column; }
.gk-switch small { color: var(--muted); font-size: 14px; }

.gk-clientline { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; justify-content: space-between; }
.gk-clientline > strong { margin-right: auto; }
.gk-clientline__link { display: flex; align-items: center; gap: 10px; text-decoration: none; }

/* Signature and drawing pads */
.gk-pad { border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; overflow: hidden; margin-top: 10px; }
.gk-pad canvas { display: block; width: 100%; height: 220px; touch-action: none; cursor: crosshair; background-image: linear-gradient(transparent calc(100% - 46px), var(--line) calc(100% - 46px), var(--line) calc(100% - 45px), transparent calc(100% - 45px)); }
.gk-pad--draw { max-width: 420px; }
.gk-pad--draw canvas { height: 360px; background: none; }
.gk-pad--small canvas { height: 150px; }
.gk-pad__bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; border-top: 1px solid var(--line); background: var(--surface-2); }
.gk-pad__hint { font-size: 13px; color: var(--muted); }
.gk-sign-block p { margin: 0 0 6px; }

/* Client-facing (tablet) mode */
.gk-bare { max-width: 860px; margin: 0 auto; padding: 0 20px 40px; }
.gk-bare__top { display: flex; align-items: center; gap: 12px; padding: 16px 0; }
.gk-bare__brand { font-weight: 650; color: var(--ink-2); }
.gk-client-mode__intro { margin: 8px 0 16px; }
.gk-client-mode__intro h1 { font-size: 28px; margin-bottom: 6px; }
.gk-client-mode .gk-chip span { min-height: 48px; font-size: 16px; padding: 10px 18px; }

.gk-login { min-height: 80vh; display: grid; place-items: center; }
.gk-login__card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; box-shadow: var(--shadow); }
.gk-login__card h2 { font-size: 26px; }
.gk-login__card .gk-btn { margin-top: 6px; }
.gk-login__lost { margin-top: 16px; font-size: 14px; }

.gk-logo-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gk-logo-preview { max-height: 56px; width: auto; border: 1px solid var(--line); border-radius: 8px; padding: 4px; }

/* Print */
.gk-print { background: #ecebe8; }
.gk-print__bar { position: sticky; top: 0; display: flex; justify-content: space-between; gap: 10px; padding: 12px 20px; background: rgba(236, 235, 232, .95); z-index: 5; }
.gk-sheet { background: #fff; max-width: 210mm; margin: 0 auto 40px; padding: 16mm 15mm; font-size: 12.5px; line-height: 1.45; color: #111; }
.gk-sheet__head { display: flex; align-items: center; gap: 14px; padding-bottom: 10px; border-bottom: 2px solid #222; margin-bottom: 14px; }
.gk-sheet__logo { max-height: 48px; width: auto; }
.gk-sheet__biz div { color: #555; font-size: 11.5px; }
.gk-sheet__title { text-align: center; font-size: 18px; text-transform: uppercase; letter-spacing: .06em; margin: 6px 0 14px; }
.gk-sheet__table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.gk-sheet__table th, .gk-sheet__table td { border: 1px solid #999; padding: 5px 7px; text-align: left; vertical-align: top; }
.gk-sheet__table th { background: #eef1f5; font-weight: 600; width: 22%; }
.gk-sheet__table--log th { width: auto; }
.gk-sheet__block { margin: 16px 0; break-inside: auto; }
.gk-sheet__block h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; background: #eef1f5; border: 1px solid #999; padding: 5px 8px; margin-bottom: 8px; }
.gk-sheet .gk-dl { grid-template-columns: 34% 1fr; gap: 3px 12px; }
.gk-sheet .gk-dl dt { color: #444; font-size: 12px; }
.gk-sheet .gk-dl__section h4 { color: #111; font-size: 11.5px; margin-bottom: 4px; }
.gk-sheet .gk-dl__section + .gk-dl__section { margin-top: 10px; padding-top: 8px; }
.gk-sheet .gk-consent-text { font-size: 12px; color: #222; }
.gk-sheet .gk-drawing { max-width: 160px; }
.gk-sheet__sign { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.gk-sheet__sign img { height: 48px; width: auto; }
.gk-sheet__photos { display: flex; flex-wrap: wrap; gap: 6px; }
.gk-sheet__photos img { width: 31%; height: auto; }
.gk-sheet__foot { margin-top: 18px; color: #888; font-size: 10.5px; text-align: right; }

@media print {
	@page { size: A4; margin: 12mm; }
	.gk-print { background: #fff; }
	.gk-print__bar { display: none; }
	.gk-sheet { margin: 0; padding: 0; max-width: none; }
	.gk-sheet__block h2, .gk-sheet__table tr { break-inside: avoid; }
}

/* Responsive */
@media (max-width: 1100px) and (min-width: 901px), (max-width: 640px) {
	.gk-status { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	.gk-side { display: none; }
	.gk-main { margin-left: 0; padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
	.gk-top { padding: 12px 16px; }
	.gk-top__search { display: none; }
	.gk-top__title { font-size: 19px; }
	.gk-content { padding: 4px 16px 32px; }
	.gk-tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--line); z-index: 30; }
	.gk-tabbar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 500; }
	.gk-tabbar__item.is-active { color: var(--accent); }
	.gk-tabbar__item--new .gk-icon { background: var(--accent); color: #fff; border-radius: 50%; width: 34px; height: 34px; padding: 7px; }
	.gk-grid-2, .gk-actions { grid-template-columns: 1fr; }
	.gk-form__actions--sticky { bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
	.gk-app--bare .gk-form__actions--sticky { bottom: 0; }
}
@media (max-width: 600px) {
	.gk-row { grid-template-columns: 1fr; }
	.gk-stats { gap: 8px; }
	.gk-stat { padding: 12px; }
	.gk-stat__num { font-size: 22px; }
	.gk-stat__label { font-size: 12px; }
	.gk-dl { grid-template-columns: 1fr; gap: 2px; }
	.gk-dl dd { margin-bottom: 8px; }
	.gk-toolbar { flex-direction: column; align-items: stretch; }
	.gk-hero-search button { display: none; }
	.gk-profile__name { font-size: 21px; }
	.gk-card { padding: 16px; }
	.gk-section__head, .gk-section__body { padding-left: 16px; padding-right: 16px; }
	.gk-danger { flex-direction: column; align-items: stretch; }
	.gk-bare { padding: 0 14px 32px; }
	.gk-client-mode__intro h1 { font-size: 23px; }
}
