:root {
  --bg: #fdf8f3;
  --card: #fffdf9;
  --line: #eee6da;
  --green: #3f5a2e;
  --green-d: #2f4522;
  --green-l: #8a9a6b;
  --sage: #e9ecdf;
  --gold: #c9a34e;
  --text: #2b2b26;
  --muted: #6f6c63;
  --warn-bg: #fff4dc;
  --warn: #8a6410;
  --radius: 18px;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; color: var(--green-d); }
a { color: var(--green); }
button { font: inherit; cursor: pointer; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: 1180px; margin: 0 auto; gap: 16px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 74px; mix-blend-mode: multiply; }
nav.main { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
nav.main a { text-decoration: none; color: var(--text); padding: 8px 14px; border-bottom: 2px solid transparent; }
nav.main a.active { color: var(--green); border-color: var(--green); font-weight: 600; }
.user-pill { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: var(--card); }

/* Hero */
.hero { position: relative; border-radius: 28px; overflow: hidden; min-height: 230px; display: grid; grid-template-columns: 1.1fr 1fr; background: linear-gradient(110deg, #fbf3e8 0%, #f3e5d3 100%); margin-top: 6px; }
.hero .greet { padding: 36px 40px; }
.hero h1 { font-size: 46px; margin: 0 0 8px; }
.hero p { font-size: 20px; margin: 0; color: #4a4a42; max-width: 340px; }
.hero .rule { width: 60px; height: 2px; background: var(--gold); margin-top: 18px; }
.hero .us { position: relative; background: #111 center/cover no-repeat; color: #fff; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-end; padding: 26px; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.hero .us::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.05), rgba(0,0,0,.55)); }
.hero .us > * { position: relative; }
.hero .us .lbl { font-size: 17px; }
.hero .us .sub { opacity: .9; margin-bottom: 14px; }
.btn-ghost-light { border: 1px solid rgba(255,255,255,.8); background: transparent; color: #fff; border-radius: 30px; padding: 8px 18px; text-decoration: none; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 2px 10px rgba(80,60,30,.04); }
.card h2 { font-size: 22px; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.card .hint { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.grid { display: grid; gap: 18px; margin: 18px 0; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: 1fr 1fr 1fr; }
.g-55-45 { grid-template-columns: 1.25fr 1fr; }

/* Week strip */
.week-strip { display: grid; grid-template-columns: 1.2fr auto 1fr; align-items: center; gap: 30px; }
.week-strip .big { font-family: var(--serif); font-size: 38px; color: var(--green-d); line-height: 1.1; }
.week-strip .vsep { width: 1px; height: 80px; background: var(--line); }
.progress { position: relative; height: 6px; background: #eadfcd; border-radius: 4px; margin: 16px 8px 6px; }
.progress .fill { position: absolute; inset: 0 auto 0 0; background: var(--green); border-radius: 4px; }
.progress .dot { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--card); border: 2px solid #d9cbb4; transform: translate(-50%,-50%); }
.progress .dot.on { border-color: var(--green); }
.progress .dot.done { background: var(--green); border-color: var(--green); }
.tri-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding: 0 2px; }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin: 18px 0; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 8px; text-align: center; text-decoration: none; color: var(--text); font-family: var(--serif); font-size: 15px; transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(80,60,30,.08); }
.tile svg { width: 42px; height: 42px; display: block; margin: 0 auto 10px; color: var(--green); }

/* Tables / lists */
.mtable { width: 100%; border-collapse: collapse; }
.mtable td { padding: 10px 4px; border-bottom: 1px solid var(--line); }
.mtable td.v { text-align: right; font-weight: 700; white-space: nowrap; }
.mtable td.p { color: var(--muted); white-space: nowrap; }
.info { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--green); color: var(--green); background: none; font-size: 12px; font-weight: 700; padding: 0; }
.art { display: grid; grid-template-columns: 110px 1fr 20px; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); }
.art .thumb { height: 64px; border-radius: 10px; background: var(--sage); display: grid; place-items: center; color: var(--green); }
.art .thumb svg { width: 36px; height: 36px; }
.art b { display: block; }
.art small { color: var(--muted); }
.art .why { font-size: 12px; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); position: relative; }
.timeline .c { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cdbd9f; background: var(--card); margin-top: 2px; }
.timeline .c.done { background: var(--green); border-color: var(--green); }
.timeline .row { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; }
.timeline .row span:last-child { font-weight: 400; }
.timeline small { color: var(--muted); }

/* Book card */
.book-card { background: linear-gradient(135deg, #f1f2e6, #e7ead9); display: grid; grid-template-columns: 1fr 120px; gap: 10px; align-items: center; }
.book { width: 120px; height: 160px; background: #fbf5ea; border-radius: 4px 10px 10px 4px; box-shadow: 4px 6px 14px rgba(0,0,0,.15), inset 6px 0 0 #eee3cf; transform: rotate(6deg); display: grid; place-items: center; text-align: center; font-family: var(--serif); color: var(--green-d); padding: 10px; font-size: 15px; }
.book img { width: 40px; mix-blend-mode: multiply; display: block; margin: 0 auto 6px; }

/* Buttons & forms */
.btn { background: var(--green); color: #fff; border: none; border-radius: 30px; padding: 10px 22px; text-decoration: none; display: inline-block; }
.btn:hover { background: var(--green-d); }
.btn-o { background: transparent; color: var(--green); border: 1px solid var(--green); border-radius: 30px; padding: 8px 18px; text-decoration: none; display: inline-block; }
.btn-sm { padding: 6px 14px; font-size: 14px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=time], textarea, select { font: inherit; border: 1px solid #ddd2c0; border-radius: 12px; padding: 10px 12px; background: #fff; width: 100%; }
textarea { min-height: 80px; resize: vertical; }
label { display: block; font-size: 14px; color: var(--muted); margin: 10px 0 4px; }
.row-input { display: flex; gap: 10px; }
.row-input input { flex: 1; }

/* Page sections */
.page { display: none; padding-bottom: 50px; }
.page.active { display: block; }
.page-head { margin: 26px 0 6px; }
.page-head h1 { font-size: 34px; margin: 0; }
.page-head p { color: var(--muted); margin: 6px 0 0; max-width: 720px; }
.back { display: inline-block; margin-top: 18px; color: var(--muted); text-decoration: none; font-size: 14px; }

.qlist { list-style: none; padding: 0; margin: 12px 0 0; }
.qlist li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.qlist li.answered span { text-decoration: line-through; color: var(--muted); }
.qlist .x { background: none; border: none; color: var(--muted); font-size: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 6px 12px; font-size: 14px; }
.chip:hover { border-color: var(--green); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 7px 0 7px 28px; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 16px; height: 16px; border-radius: 50%; background: var(--sage); border: 2px solid var(--green-l); }
.check-list.done li::before { background: var(--green); border-color: var(--green); }

.placeholder-note { background: var(--warn-bg); color: var(--warn); border: 1px dashed #e2c37a; border-radius: 12px; padding: 10px 14px; font-size: 14px; margin: 12px 0; }
.tag-ph { display: inline-block; background: var(--warn-bg); color: var(--warn); font-size: 11px; border-radius: 8px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; font-family: var(--sans); }

.moods { display: flex; gap: 10px; flex-wrap: wrap; }
.mood { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 12px 16px; text-align: center; min-width: 92px; }
.mood .e { font-size: 28px; display: block; }
.mood.sel { border-color: var(--green); background: var(--sage); }
.mood-log { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.mood-log span { font-size: 20px; }

.quiz-q { padding: 12px 0; border-bottom: 1px solid var(--line); }
.quiz-q .opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.quiz-q .opts label { margin: 0; display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 20px; padding: 5px 12px; background: #fff; color: var(--text); cursor: pointer; }
.result-box { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--sage); }

.contacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.contact { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; }
.contact .ph { font-size: 22px; font-family: var(--serif); color: var(--green-d); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 14px; }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; position: relative; }
.gallery img { width: 100%; height: 170px; object-fit: cover; display: block; background: #222; }
.gallery figcaption { padding: 8px 12px; font-size: 14px; }
.gallery .del { position: absolute; top: 6px; right: 6px; background: rgba(255,255,255,.85); border: none; border-radius: 50%; width: 28px; height: 28px; }
.badge { display: inline-block; font-size: 11px; background: var(--green); color: #fff; border-radius: 8px; padding: 1px 8px; }

.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 10px; }
.shop a { border: 1px dashed var(--green-l); border-radius: 12px; padding: 12px; text-decoration: none; color: var(--text); background: #fff; font-size: 14px; }

.modal-bg { position: fixed; inset: 0; background: rgba(30,30,20,.45); display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal-bg.open { display: flex; }
.modal { background: var(--card); border-radius: 20px; padding: 26px 28px; max-width: 640px; width: 100%; max-height: 86vh; overflow: auto; }
.modal h2 { margin-top: 0; }

footer { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 20px 40px; border-top: 1px solid var(--line); margin-top: 20px; }

/* Chart */
.chart svg { width: 100%; height: auto; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 16px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }

/* Print book */
#printBook { display: none; }
@media print {
  body > *:not(#printBook) { display: none !important; }
  #printBook { display: block !important; }
  .bp { page-break-after: always; padding: 30mm 20mm; font-family: var(--serif); color: #2f4522; }
  .bp img { mix-blend-mode: multiply; }
}
.bp-preview { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 30px; margin: 14px 0; }

@media (max-width: 960px) {
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .g2, .g3, .g-55-45 { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero .us { clip-path: none; min-height: 200px; }
  .week-strip { grid-template-columns: 1fr; }
  .week-strip .vsep { display: none; }
  nav.main a { padding: 6px 8px; font-size: 14px; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .brand img { height: 52px; }
  .hero h1 { font-size: 34px; }
  header.top { flex-direction: column; }
}

/* v2: kalbos pasirinkimas, nav be laužymo */
nav.main { flex-wrap: nowrap; }
.lang { width: auto; border: 1px solid var(--line); border-radius: 20px; padding: 6px 10px; background: var(--card); color: var(--text); font-size: 14px; cursor: pointer; margin-left: 6px; }
.brand img { mix-blend-mode: normal; }
.hero .us { background-color: #000; background-position: center 40%; }
@media (max-width: 960px) { nav.main { flex-wrap: wrap; justify-content: center; } }

/* v2: hero kaip makete – ultragarsas susilieja su kreminiu fonu */
.hero { display: block; min-height: 300px; background: linear-gradient(100deg, #fbf3e8 0%, #f6eadb 100%); }
.hero .greet { position: relative; z-index: 2; max-width: 50%; padding: 48px 44px; }
.hero .greet p { max-width: 380px; font-size: 19px; line-height: 1.45; }
.hero .us { position: absolute; top: 0; right: 0; bottom: 0; width: 66%; clip-path: none; background-size: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 22%, #000 42%);
          mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 22%, #000 42%); }
.hero .us::before { background: linear-gradient(90deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.45)); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 46px; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 60px at 70% 0, var(--bg) 60%, transparent 61%); opacity: .0; }
@media (max-width: 960px) {
  .hero .greet { max-width: none; padding: 30px 24px 140px; }
  .hero .us { width: 100%; top: 40%; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%); mask-image: linear-gradient(to bottom, transparent, #000 40%); }
}

/* v3: apatinė juosta su lapeliais ir bangomis */
.footer-band { position: relative; height: 170px; margin-top: 30px; overflow: hidden; }
.footer-band .waves { position: absolute; inset: 0; width: 100%; height: 100%; }
.footer-band .branch { position: absolute; left: 24px; bottom: 10px; width: 200px; height: 165px; }
footer { background: #a9b886; border-top: none; margin-top: 0; color: #24361a; padding-top: 10px; }
footer b { color: #1d2c14; }
@media print { .footer-band { display: none; } }

/* v4: demonstracinės versijos juosta, prisijungimas, gydytojos skydelis */
.demo-banner { background: var(--warn-bg); color: var(--warn); text-align: center; font-size: 14px; padding: 6px 12px; }
.auth-wrap { max-width: 460px; margin: 30px auto 60px; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tabs button { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px; }
.tabs button.on { background: var(--green); color: #fff; border-color: var(--green); }
.err { color: #a3321c; font-size: 14px; min-height: 20px; margin-top: 8px; }
.ok-msg { color: var(--green); font-size: 14px; }
.code-box { font-family: ui-monospace, Consolas, monospace; font-size: 30px; letter-spacing: 2px; text-align: center; background: var(--sage); border-radius: 14px; padding: 16px; margin: 10px 0; color: var(--green-d); }
table.list { width: 100%; border-collapse: collapse; font-size: 15px; }
table.list th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 8px 6px; border-bottom: 1px solid var(--line); }
table.list td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list tr.click { cursor: pointer; } table.list tr.click:hover { background: #faf4ea; }
.pill { display: inline-block; font-size: 12px; border-radius: 10px; padding: 1px 8px; background: var(--sage); color: var(--green-d); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.rows .r { display: grid; gap: 8px; margin-bottom: 8px; align-items: center; }
.rows .r button { background: none; border: none; color: var(--muted); font-size: 18px; }
.sticky-save { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; z-index: 5; }
.brand img { height: 88px; }
@media (max-width: 560px) { .brand img { height: 60px; } }

/* v5: viešas puslapis, sutikimas, kalendorius */
.step { width: 38px; height: 38px; border-radius: 50%; background: var(--sage); color: var(--green-d); display: grid; place-items: center; font-family: var(--serif); font-size: 18px; margin-bottom: 8px; }
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 10px; }
.feat div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.feat b { display: block; font-family: var(--serif); color: var(--green-d); font-weight: 400; margin-bottom: 4px; }
.feat span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .feat { grid-template-columns: 1fr; } }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 720px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(60,50,30,.18); padding: 14px 18px; display: flex; gap: 14px; align-items: center; z-index: 100; font-size: 14px; }
.consent p { margin: 0; flex: 1; }
@media (max-width: 560px) { .consent { flex-direction: column; align-items: stretch; } }

.tl-card { margin-top: 18px; }
.tl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tl-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; margin: 14px 0 10px; align-items: start; }
.tl-img { margin: 0; background: #000; border-radius: 16px; overflow: hidden; position: relative; aspect-ratio: 3 / 2; }
.tl-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .25s; }
.tl-img figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font-size: 13px; }
.tl-img figcaption .hint { color: #ddd; }
.tl-week { font-family: var(--serif); font-size: 28px; color: var(--green-d); }
.tl-week small { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.tl-size { font-size: 17px; margin: 6px 0 10px; }
.tl-info p { margin: 6px 0; }
.tl-events { margin-top: 10px; padding: 10px 12px; background: var(--sage); border-radius: 12px; font-size: 14px; line-height: 1.8; }
.tl-slider { display: grid; grid-template-columns: 36px 1fr 36px; gap: 10px; align-items: center; }
.tl-step { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--green); font-size: 20px; line-height: 1; }
.tl-track { position: relative; height: 34px; }
#tlMarks { position: absolute; left: 9px; right: 9px; top: 0; bottom: 0; pointer-events: none; }
.tl-mark { position: absolute; top: 3px; width: 10px; height: 10px; border-radius: 50%; transform: translateX(-50%); background: var(--green-l); }
.tl-mark.img { background: var(--green); box-shadow: 0 0 0 3px #e3ead3; }
.tl-mark.plan { background: #fff; border: 2px solid var(--gold); }
.tl-now { position: absolute; top: 0; bottom: 6px; width: 2px; background: var(--gold); transform: translateX(-50%); }
#tlRange { -webkit-appearance: none; appearance: none; position: absolute; left: 0; right: 0; bottom: 4px; width: 100%; height: 8px; border-radius: 6px; padding: 0; border: none;
  background: linear-gradient(90deg, var(--green) var(--p, 0%), #eadfcd var(--p, 0%)); }
#tlRange::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--green); box-shadow: 0 2px 6px rgba(0,0,0,.15); cursor: grab; }
#tlRange::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--green); cursor: grab; }
.tl-scale { padding: 0 46px; margin-top: 4px; }
@media (max-width: 860px) { .tl-body { grid-template-columns: 1fr; } }

/* ---------- v6: administravimo skydelis ---------- */
.adm { display: grid; grid-template-columns: 230px 1fr; gap: 26px; max-width: 1320px; margin: 0 auto; padding: 22px 22px 60px; }
.adm-side { position: sticky; top: 16px; align-self: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.adm-side a { display: block; padding: 10px 14px; border-radius: 12px; color: var(--text); text-decoration: none; font-size: 15px; }
.adm-side a:hover { background: var(--sage); }
.adm-side a.on { background: var(--green); color: #fff; }
.adm-main { min-width: 0; }
.adm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.adm-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.adm-tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; font-size: 14px; }
.adm-tabs a.on { background: var(--green); border-color: var(--green); color: #fff; }
.adm-tabs.small a { padding: 5px 11px; font-size: 13px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 4px; }
.kpi b { font-family: var(--serif); font-size: 30px; color: var(--green-d); }
.kpi span { color: var(--muted); font-size: 14px; }
.kpi.warn { background: var(--warn-bg); border-color: #ecd9a8; }
.kpi.warn b { color: var(--warn); }
.todo { display: flex; flex-direction: column; gap: 8px; }
.todo a { display: block; padding: 10px 12px; border-radius: 12px; background: var(--sage); color: var(--text); text-decoration: none; font-size: 14px; }
.feed { display: flex; flex-direction: column; gap: 10px; max-height: 380px; overflow: auto; font-size: 14px; }
.feed > div { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.hbars { display: flex; flex-direction: column; gap: 7px; }
.hb { display: grid; grid-template-columns: minmax(90px, 38%) 1fr 48px; gap: 10px; align-items: center; font-size: 14px; }
.hb-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-b { background: #f3eee5; border-radius: 6px; height: 12px; overflow: hidden; }
.hb-b i { display: block; height: 100%; border-radius: 6px; }
.hb-v { text-align: right; color: var(--muted); }
.lc { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.inq-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.inq-note { width: 100%; min-height: 60px; margin-top: 10px; }
.serp { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; font-family: Arial, sans-serif; margin: 10px 0; }
.serp-u { color: #202124; font-size: 13px; }
.serp-t { color: #1a0dab; font-size: 19px; margin: 3px 0; }
.serp-d { color: #4d5156; font-size: 14px; line-height: 1.5; }
.checks { display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.allow-row { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.lnk { background: none; border: 0; padding: 0; color: #a14a3c; text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; }
.perm { display: inline-flex; align-items: center; gap: 6px; margin: 2px 12px 2px 0; font-size: 13px; white-space: nowrap; }
.perm input { width: auto; margin: 0; }
.ev-list { max-height: 520px; overflow: auto; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.hm-wrap { position: relative; width: 100%; max-height: 80vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.hm-wrap iframe { display: block; width: 1200px; height: 900px; border: 0; pointer-events: none; }
.hm-wrap canvas { position: absolute; left: 0; top: 0; width: 1200px; pointer-events: none; }
table.list tr.warn td { background: var(--warn-bg); }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--sage); }
@media (max-width: 860px) {
  .adm { grid-template-columns: 1fr; padding: 14px; }
  .adm-side { position: static; flex-direction: row; overflow-x: auto; }
  .adm-side a { white-space: nowrap; }
}

/* ---------- v7: kalbos vėliavėlės ---------- */
.flag-sw { position: relative; display: inline-block; }
.flag-cur { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; cursor: pointer; line-height: 0; }
.flag-cur svg, .flag-list svg { border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.flag-cur .caret { font-style: normal; font-size: 11px; color: var(--muted); line-height: 1; }
.flag-list { display: none; position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.08); z-index: 50; min-width: 150px; }
.flag-sw.open .flag-list { display: block; }
.flag-list button { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 8px 10px; border-radius: 10px; cursor: pointer; font: inherit; font-size: 14px; color: var(--text); }
.flag-list button:hover { background: var(--sage); }
input[type=date], input[type=time] { cursor: pointer; }
/* Kalendorius atsidaro paspaudus bet kur datos laukelyje (Chrome / Edge) */
input[type=date], input[type=time] { position: relative; padding-right: 40px; background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f5a2e' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
input[type=time] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f5a2e' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
input[type=date]::-webkit-calendar-picker-indicator, input[type=time]::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
/* ---------- v8: pacientės meniu viena eilute + paskyros meniu ---------- */
nav.main a { white-space: nowrap; }
.acct { position: relative; }
.acct-btn { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; font: inherit; font-size: 14px; color: var(--text); white-space: nowrap; }
.acct-btn i { font-style: normal; font-size: 11px; color: var(--muted); }
.acct-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.08); z-index: 50; min-width: 180px; }
.acct.open .acct-menu { display: block; }
.acct-menu a { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: 14px; border: 0 !important; }
.acct-menu a:hover { background: var(--sage); }
@media (max-width: 1180px) { nav.main a { padding: 8px 9px; font-size: 15px; } }
