/* FTC brand: exact colours from funkcinesterapijoscentras.lt (Shopify theme
   colour schemes) and the logo. Nothing else is used.
   #FFFFFF page   #121212 text   #00BEC3 buttons   #1676BF blue sections
   #334FB4 indigo sections   #F5F8FC light sections   #F3F3F3 grey sections
   logo: #09CBF8 squares, #666666 wordmark.
   Lighter text and borders are #121212 at lower opacity, as the site does. */
:root {
  --bg: #F5F8FC;
  --card: #FFFFFF;
  --ink: #121212;
  --muted: rgba(18, 18, 18, .7);
  --line: rgba(18, 18, 18, .14);
  --ok: #121212;
  --ok-bg: #F5F8FC;
  --warn: #121212;
  --warn-bg: #F3F3F3;
  --bad: #CA2912;        /* site's error colour */
  --bad-bg: #F3F3F3;
  --brand: #00BEC3;
  --blue: #1676BF;
  --indigo: #334FB4;
  --logo-cyan: #09CBF8;
  --logo-grey: #666666;
  --accent: var(--brand);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(18, 18, 18, .05), 0 6px 18px rgba(18, 18, 18, .05);
  font-family: Asap, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: 0; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 20px 16px 60px; }

/* top bar: white with the FTC logo, location in its colour */
.bar { display: flex; align-items: center; gap: 16px; padding: 12px 20px;
       background: #fff; color: var(--ink); border-bottom: 4px solid var(--accent);
       box-shadow: 0 1px 0 rgba(0,0,0,.03); }
.bar .logo { height: 30px; width: auto; display: block; }
.bar .sep { width: 1px; align-self: stretch; background: var(--line); margin: 2px 0; }
.bar .place { font-size: 21px; font-weight: 600; color: var(--accent); line-height: 1.15; }
.bar .co { font-size: 13.5px; color: var(--muted); }
.bar .grow { flex: 1; }
.bar a, .bar .barbtn { color: var(--ink); text-decoration: none; font: inherit; font-size: 15px;
         padding: 8px 14px; border-radius: 10px; background: #fff;
         border: 1.5px solid var(--line); cursor: pointer; }
.bar.neutral { border-bottom-color: var(--logo-grey); }
.bar.neutral .place { color: var(--ink); }
@media (max-width: 600px) {
  .bar { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .bar .logo { height: 24px; }
  .bar .sep { display: none; }
  .bar > div:not(.grow) { flex-basis: 100%; order: 2; }
  .bar .place { font-size: 19px; }
}

/* buttons and inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
       min-height: 52px; padding: 0 22px; border-radius: 12px; border: 0;
       font: inherit; font-size: 18px; font-weight: 600; cursor: pointer;
       background: var(--accent); color: #fff; text-decoration: none; }
.btn.secondary { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn:not(.secondary):not(:disabled):hover { filter: brightness(.94); }
.btn.small { min-height: 42px; font-size: 15px; padding: 0 14px; }
.btn.big { min-height: 64px; font-size: 21px; padding: 0 30px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
label { display: block; font-size: 15px; color: var(--muted); margin: 0 0 6px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=time],
input[type=password], input[type=search] {
  width: 100%; min-height: 56px; padding: 0 16px; font: inherit; font-size: 20px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field { margin-bottom: 18px; }
.field .err { color: var(--bad); font-size: 15px; margin-top: 6px; display: none; }
.field.has-err input { border-color: var(--bad); }
.field.has-err .err { display: block; }
.check { display: flex; align-items: center; gap: 12px; font-size: 17px; color: var(--ink); margin: 4px 0 18px; }
.check input { width: 26px; height: 26px; accent-color: var(--accent); }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .grid2 { grid-template-columns: 1fr; } }

/* home: two location cards */
.locs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
@media (max-width: 760px) { .locs { grid-template-columns: 1fr; } }
.loc { display: block; text-decoration: none; border-radius: 18px; overflow: hidden;
       background: #fff; box-shadow: var(--shadow); border-top: 10px solid var(--c); }
.loc .in { padding: 26px 24px 22px; }
.loc .name { font-size: 30px; font-weight: 700; color: var(--c); }
.loc .co { font-size: 17px; margin-top: 4px; color: var(--muted); }
.loc .stats { margin-top: 22px; font-size: 18px; }
.loc .go { margin-top: 20px; width: 100%; background: var(--c); }

/* notices */
.note { padding: 12px 16px; border-radius: 12px; font-size: 16px; margin: 14px 0; }
.note.warn { background: var(--warn-bg); color: var(--warn); }
.note.bad { background: var(--bad-bg); color: var(--bad); }
.note.ok { background: var(--ok-bg); color: var(--ok); }

/* today's list */
.list { margin-top: 16px; }
.row { display: grid; grid-template-columns: 64px 1fr auto auto; align-items: center; gap: 14px;
       padding: 14px 16px; background: #fff; border-radius: 12px; margin-bottom: 8px;
       box-shadow: var(--shadow); }
.row .t { font-size: 18px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.row .n { font-size: 19px; font-weight: 600; }
.row .s { font-size: 14px; color: var(--muted); margin-top: 2px; }
.row .acts { display: flex; gap: 8px; }
.row form { margin: 0; }
@media (max-width: 700px) {
  .row { grid-template-columns: 52px 1fr; }
  .row .chip, .row .acts { grid-column: 2; justify-self: start; }
}
.chip { display: inline-block; padding: 6px 12px; border-radius: 99px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.chip.signed { background: var(--brand); color: #fff; }
.chip.unsigned { background: #fff; color: var(--bad); box-shadow: inset 0 0 0 1.5px var(--bad); }
.chip.link { background: var(--blue); color: #fff; }
.empty { color: var(--muted); font-size: 17px; padding: 26px 4px; }

.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
details.add { margin-top: 18px; }
details.add summary { cursor: pointer; font-size: 17px; font-weight: 600; padding: 10px 0; color: var(--accent); }

/* dashboard */
.dash { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; }
@media (max-width: 900px) { .dash { grid-template-columns: 1fr; } }
.col h2 { display: flex; align-items: center; gap: 10px; font-size: 21px; padding-bottom: 10px;
          border-bottom: 4px solid var(--c); color: var(--c); }
.col h2 small { font-size: 14px; color: var(--muted); font-weight: 400; }
table.res { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
table.res th, table.res td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 15px; }
table.res th { background: #F5F8FC; color: var(--muted); font-weight: 600; }

/* login keypad */
.pinbox { max-width: 380px; margin: 60px auto; text-align: center; }
.dots { display: flex; justify-content: center; gap: 14px; margin: 24px 0; }
.dots span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); }
.dots span.on { background: var(--ink); }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.keys button { min-height: 72px; font: inherit; font-size: 28px; border-radius: 16px; border: 0;
               background: #fff; box-shadow: var(--shadow); cursor: pointer; color: var(--ink); }
.keys button.fn { font-size: 18px; background: transparent; box-shadow: none; color: var(--muted); }

/* signing flow */
.steps { display: flex; gap: 8px; margin: 4px 0 22px; }
.steps span { flex: 1; height: 6px; border-radius: 6px; background: var(--line); }
.steps span.on { background: var(--accent); }
.step { display: none; }
.step.on { display: block; }
.step h1 { font-size: 30px; margin-bottom: 6px; }
.step .lead { font-size: 18px; color: var(--muted); margin: 0 0 22px; }
.docframe { width: 100%; height: calc(100vh - 330px); min-height: 420px; border: 1.5px solid var(--line);
            border-radius: 12px; background: #fff; }
.scrollhint { font-size: 16px; color: var(--muted); margin: 12px 0; }
.foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.foot > div { display: flex; gap: 12px; }
@media (max-width: 600px) {
  .wrap { padding: 16px 12px 40px; }
  .step h1 { font-size: 26px; }
  .step .lead { font-size: 16px; }
  .foot { flex-direction: column-reverse; }
  .foot > div { flex-direction: column-reverse; }
  .foot .btn, .foot > div .btn { width: 100%; }
  .foot > span:empty { display: none; }
  .docframe { height: calc(100vh - 360px); min-height: 360px; }
  #pad { height: 260px; }
  .confirm-email { font-size: 17px; }
}
.pad-wrap { position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; }
#pad { display: block; width: 100%; height: 320px; touch-action: none; cursor: crosshair; }
.pad-line { position: absolute; left: 6%; right: 6%; bottom: 70px; border-bottom: 2px dashed rgba(18,18,18,.25); pointer-events: none; }
.pad-name { position: absolute; left: 6%; bottom: 40px; font-size: 16px; color: var(--muted); pointer-events: none; }
.pad-msg { min-height: 26px; color: var(--bad); font-size: 16px; margin-top: 10px; }
.confirm-email { font-size: 22px; font-weight: 600; word-break: break-all; }
.done { text-align: center; padding: 50px 10px; }
.done .tick { width: 96px; height: 96px; border-radius: 50%; background: var(--brand); color: #fff;
              display: grid; place-items: center; font-size: 54px; margin: 0 auto 20px; }
.done h1 { font-size: 32px; }
.done p { font-size: 19px; color: var(--muted); }
.lockbtn { position: fixed; right: 14px; bottom: 14px; opacity: .35; font-size: 14px; }
.overlay { position: fixed; inset: 0; background: rgba(20,20,15,.55); display: none; align-items: center; justify-content: center; z-index: 10; }
.overlay.on { display: flex; }
.overlay .card { width: min(420px, 92vw); }
.spinner { width: 34px; height: 34px; border: 4px solid var(--line); border-top-color: var(--accent);
           border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
.muted { color: var(--muted); }
.kv { display: grid; grid-template-columns: 210px 1fr; gap: 8px 16px; font-size: 16px; }
.kv div:nth-child(odd) { color: var(--muted); }
code { font-size: 13px; word-break: break-all; }

/* ---------- patient pages: design C "friendly, confirm and sign" ---------- */
.pt { max-width: 720px; margin: 0 auto; padding: 36px 40px 28px; min-height: 100vh;
      display: flex; flex-direction: column; }
.pt-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pt-head img { height: 34px; width: auto; display: block; }
.pt-headr { display: flex; align-items: center; gap: 14px; }
.pt-stepno { font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.pt-staff { font: inherit; font-size: 14px; color: var(--muted); background: transparent;
            border: 1.5px solid var(--line); border-radius: 10px; padding: 7px 12px; cursor: pointer; }
.pt .step { flex: none; }
.pt-h1 { margin: 56px 0 0; font-size: 44px; font-weight: 600; line-height: 1.1; }
.pt-lead { margin: 12px 0 0; font-size: 20px; line-height: 1.5; color: rgba(18,18,18,.75); }
.pt-card { background: #fff; border-radius: 18px; }
.pt form { margin: 0; }
.pt-rows { margin-top: 36px; padding: 6px 28px; }
.pt-row { margin: 0; padding: 18px 0; border-bottom: 1px solid #F3F3F3; }
.pt-row:last-child { border-bottom: 0; }
.pt-view { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pt-view > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pt-label { display: block; font-size: 14px; color: var(--muted); }
.pt-val { font-size: 20px; font-weight: 500; overflow-wrap: anywhere; }
.pt-edit { font: inherit; font-size: 16px; font-weight: 500; color: var(--blue); background: none;
           border: 0; padding: 8px 0 8px 12px; cursor: pointer; }
.pt-edit:hover { color: var(--indigo); }
.pt-input { display: none; margin: 0; }
.pt-input .pt-label { margin-bottom: 8px; }
.pt-row.editing .pt-view { display: none; }
.pt-row.editing .pt-input { display: block; }
.pt-row input { min-height: 54px; font-size: 19px; background: #F5F8FC; border-color: rgba(18,18,18,.15); }
.pt-code { margin-top: 22px; padding: 26px 28px 10px; box-shadow: inset 0 0 0 2px var(--brand); }
.pt-code .field { margin-bottom: 14px; }
.pt-codelabel { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.pt-code input[type=text], .pt-code input[type=date] { min-height: 64px; font-size: 24px;
  letter-spacing: .08em; background: #F5F8FC; border-color: rgba(18,18,18,.15); }
.pt-code .check { font-size: 16px; margin: 0 0 16px; }
.pt-code .check input { width: 22px; height: 22px; }
.btn.pt-go { width: 100%; min-height: 68px; margin-top: 32px; border-radius: 14px; font-size: 22px; }
.pt-foot { display: flex; gap: 12px; margin-top: 24px; align-items: stretch; }
.pt-foot .btn { min-height: 68px; border-radius: 14px; font-size: 19px; }
.pt-foot .btn.pt-go { margin-top: 0; flex: 1; }
.pt-doc { margin-top: 28px; padding: 6px; overflow: hidden; }
.pt-doc .docframe { border: 0; border-radius: 14px; height: calc(100vh - 420px); min-height: 420px; display: block; }
.pt .pad-wrap { margin-top: 28px; border: 0; box-shadow: inset 0 0 0 2px var(--brand); }
.pt-done { text-align: center; padding-top: 30px; }
.pt-done .tick { width: 96px; height: 96px; border-radius: 50%; background: var(--brand); color: #fff;
                 display: grid; place-items: center; font-size: 54px; margin: 40px auto 0; }
.pt-done .pt-h1 { margin-top: 28px; }
.pt-return { margin-top: 28px; font-size: 20px; font-weight: 600; }
.pt-legal { margin: auto 0 0; padding-top: 28px; text-align: center; font-size: 13px; color: rgba(18,18,18,.6); }
@media (max-width: 600px) {
  .pt { padding: 20px 16px 20px; }
  .pt-head img { height: 26px; }
  .pt-h1 { margin-top: 32px; font-size: 32px; }
  .pt-lead { font-size: 17px; }
  .pt-rows { margin-top: 24px; padding: 4px 18px; }
  .pt-val { font-size: 18px; }
  .pt-code { padding: 20px 18px 6px; }
  .pt-code input[type=text] { font-size: 21px; }
  .btn.pt-go { min-height: 60px; font-size: 19px; margin-top: 24px; }
  .pt-foot { flex-wrap: wrap; }
  .pt-foot .btn { min-height: 56px; font-size: 17px; flex: 1; }
  .pt-foot .btn.pt-go { flex-basis: 100%; order: -1; }
  .pt-doc .docframe { height: calc(100vh - 380px); min-height: 340px; }
  #pad { height: 260px; }
}
