:root{--bg:#f4f2ec;--paper:#fffdf9;--ink:#243128;--muted:#758078;--line:#e4e4db;--green:#315f4a;--green2:#e8f0e9;--dark:#1f2923;--gold:#aa8852;--rose:#915b61;--amber:#9c6b26;--shadow:0 14px 35px rgba(34,44,37,.08);--radius:18px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,system-ui,sans-serif;color:var(--ink);background:var(--bg);font-size:14px}button,input,select{font:inherit}.app-shell{display:grid;grid-template-columns:250px 1fr;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:#f9f8f4;border-right:1px solid var(--line);padding:22px 16px;display:flex;flex-direction:column;z-index:30}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);padding:0 8px 22px}.brand b{font-family:"Source Serif 4",serif;font-size:21px;letter-spacing:.14em}.brand small{display:block;color:var(--muted);font-size:10px;letter-spacing:.05em}.brand-mark{position:relative;width:38px;height:38px;border-radius:12px;background:var(--green);display:block;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(255,255,255,.15)}.brand-mark .trunk{position:absolute;left:18px;bottom:7px;width:3px;height:17px;background:#f0eadb;border-radius:2px}.brand-mark .root{position:absolute;left:11px;bottom:0px;color:#f0eadb;font-size:23px}.leaf{position:absolute;width:11px;height:7px;background:#dce8dc;border-radius:100% 0 100% 0}.l1{left:7px;top:9px;transform:rotate(20deg)}.l2{right:6px;top:9px;transform:rotate(65deg)}.l3{left:15px;top:5px;transform:rotate(45deg)}.nav{display:flex;flex-direction:column;gap:3px;overflow:auto}.nav-label{font-size:10px;text-transform:uppercase;letter-spacing:.13em;color:#a1aaa4;font-weight:800;padding:16px 11px 6px}.nav a,.sidebar-bottom>a{display:flex;align-items:center;gap:10px;padding:10px 11px;border-radius:10px;text-decoration:none;color:#536057;font-weight:600;position:relative}.nav a:hover,.sidebar-bottom>a:hover{background:#f0f0ea;color:var(--ink)}.nav a.active,.sidebar-bottom>a.active{background:#e5ece6;color:var(--green)}.nav i,.sidebar-bottom i{font-style:normal;width:20px;text-align:center;font-size:16px}.nav em{margin-left:auto;font-style:normal;font-size:10px;color:#98a19a}.new{margin-left:auto;background:var(--green);color:#fff;font-size:9px;padding:3px 5px;border-radius:5px}.dot{margin-left:auto;width:6px;height:6px;border-radius:50%;background:#bc713d}.sidebar-bottom{margin-top:auto;padding-top:18px;border-top:1px solid var(--line)}.storage{padding:4px 10px 12px}.storage>div:first-child{display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}.storage b{color:var(--ink)}.progress{height:5px;background:#e5e5df;border-radius:6px;overflow:hidden;margin-top:8px}.progress span{height:100%;display:block;background:var(--green);border-radius:6px}.plan-chip{margin-left:auto;font-size:9px;padding:3px 6px;background:#e5e9e5;border-radius:5px}.main{min-width:0}.topbar{height:70px;background:rgba(255,253,249,.86);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 32px;position:sticky;top:0;z-index:20}.searchbox{width:min(580px,55vw);height:40px;background:#f2f2ed;border:1px solid #e5e5df;border-radius:11px;display:flex;align-items:center;padding:0 12px;gap:8px}.searchbox input{border:0;outline:0;background:transparent;flex:1;color:var(--ink)}kbd{font-size:10px;color:#899189;border:1px solid #d7d8d1;background:#fff;border-radius:5px;padding:3px 6px}.top-actions{display:flex;align-items:center;gap:9px}.icon-btn{width:38px;height:38px;border:1px solid var(--line);background:#fff;border-radius:10px;cursor:pointer;position:relative;color:var(--ink)}.notify{position:absolute;width:7px;height:7px;border-radius:50%;background:#b36b48;right:7px;top:6px;border:2px solid white}.avatar-btn{border:0;background:transparent;display:flex;align-items:center;gap:9px;text-align:left;cursor:pointer}.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--green);color:#fff;font-weight:700;font-size:11px}.avatar-copy b,.avatar-copy small{display:block}.avatar-copy b{font-size:12px}.avatar-copy small{font-size:10px;color:var(--muted);margin-top:2px}.content{padding:36px;max-width:1500px;margin:0 auto}.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin:0 0 26px}.page-head h1{font-family:"Source Serif 4",serif;font-size:34px;margin:5px 0 6px;line-height:1.08}.page-head p{margin:0;color:var(--muted);max-width:720px;line-height:1.6}.eyebrow{text-transform:uppercase;font-size:9px;letter-spacing:.16em;font-weight:800;color:#8c968f}.head-actions{display:flex;gap:9px;flex-wrap:wrap}.btn{border:0;border-radius:10px;padding:11px 15px;font-weight:700;font-size:12px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px}.btn.primary{background:var(--green);color:#fff}.btn.primary:hover{background:#264e3d}.btn.secondary{background:#fff;color:var(--ink);border:1px solid var(--line)}.btn.dark{background:var(--dark);color:#fff}.btn.full{width:100%}.hero-grid{display:grid;grid-template-columns:2fr 1fr;gap:18px;margin-bottom:18px}.hero-card,.panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 1px 0 rgba(0,0,0,.02)}.hero-card{padding:30px;min-height:260px;position:relative;overflow:hidden}.family-card{display:flex;justify-content:space-between;background:linear-gradient(115deg,#fffdf9 0%,#f4f5ed 100%)}.hero-copy{z-index:2}.hero-copy h2{font-family:"Source Serif 4",serif;font-size:34px;margin:10px 0 8px}.hero-copy p{color:var(--muted)}.hero-meta{display:flex;gap:22px;margin:25px 0}.hero-meta span{font-size:11px;color:var(--muted)}.hero-meta b{display:block;font-size:18px;color:var(--ink)}.text-link{color:var(--green);font-weight:800;text-decoration:none}.pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 8px;background:var(--green2);color:var(--green);font-size:9px;text-transform:uppercase;letter-spacing:.08em;font-weight:800}.pill.premium{background:#efe6d8;color:#8c6330}.pill.muted{background:#efefec;color:#7e8780}.mini-tree{width:40%;min-width:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;opacity:.92}.mt-row{display:flex;justify-content:center;gap:18px}.mt-row span{background:#fff;border:1px solid #d9ddd7;border-radius:8px;padding:10px 13px;font-size:10px;font-weight:700;box-shadow:0 7px 18px rgba(53,71,61,.06)}.mt-line{height:28px;width:1px;background:#b8c4bb;position:relative}.mt-row.two:before,.mt-row.three:before{content:"";position:absolute;height:1px;background:#b8c4bb;width:125px;margin-top:-15px}.mt-line.short{height:30px}.panel{padding:22px}.membership-card{display:flex;flex-direction:column}.membership-card h3{font-family:"Source Serif 4",serif;font-size:28px;margin:4px 0}.membership-card p{color:var(--muted);margin:18px 0 6px}.membership-card .btn{margin-top:auto}.round-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#f0eadf;color:#967341}.panel-title{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.panel-title h3{font-family:"Source Serif 4",serif;font-size:21px;margin:4px 0}.panel-title>a{font-size:11px;color:var(--green);font-weight:700;text-decoration:none}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:18px}.stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:17px;display:grid;grid-template-columns:auto 1fr;column-gap:12px;align-items:center;text-decoration:none;color:var(--ink)}.stat-icon{grid-row:1/3;width:37px;height:37px;border-radius:10px;background:#edf1eb;display:grid;place-items:center;color:var(--green);font-size:18px}.stat b{font-size:20px}.stat small{display:block;color:var(--muted);font-size:10px}.stat em{grid-column:2;font-style:normal;font-size:9px;color:#939a95;margin-top:4px}.dashboard-grid{display:grid;grid-template-columns:2fr 1fr;gap:18px;margin-bottom:18px}.wide{min-width:0}.research-list{margin-top:12px}.research-item{display:grid;grid-template-columns:auto 1fr auto auto;gap:12px;align-items:center;padding:14px 0;border-top:1px solid #ecece6}.person-avatar{width:34px;height:34px;border-radius:50%;background:#e4ece6;color:var(--green);display:grid;place-items:center;font-size:10px;font-weight:800}.person-avatar.big{width:48px;height:48px}.person-avatar.small{display:inline-grid;width:30px;height:30px;margin-right:9px;font-style:normal}.research-item b,.research-item small{display:block}.research-item small{color:var(--muted);font-size:10px;margin-top:4px}.place-tag{font-size:9px;color:#69746c;background:#f3f3ef;border-radius:7px;padding:6px 8px}.status{font-size:9px;padding:5px 8px;border-radius:999px;font-weight:800;white-space:nowrap}.status.amber{background:#f5ead6;color:var(--amber)}.status.rose{background:#f4e5e6;color:var(--rose)}.status.gray{background:#eee;color:#6c746e}.status.green{background:#e3efe7;color:var(--green)}.ai-card{background:linear-gradient(145deg,#29372f,#1d2721);color:#fff}.ai-card p{color:#c6cec8;line-height:1.65}.ai-card .eyebrow{color:#9daf9f}.ai-star{font-size:23px;color:#d8c298}.credit{display:flex;justify-content:space-between;border-top:1px solid rgba(255,255,255,.12);padding:11px 0;font-size:10px}.quick-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:12px}.quick-grid a{border:1px solid var(--line);border-radius:12px;padding:16px;text-decoration:none;color:var(--ink);background:#fff}.quick-grid a:hover{box-shadow:var(--shadow);transform:translateY(-1px)}.quick-grid span{display:block;font-size:19px;margin-bottom:14px;color:var(--green)}.quick-grid b,.quick-grid small{display:block}.quick-grid small{color:var(--muted);font-size:9px;margin-top:5px}.public-preview{margin-top:18px}.locked-row{display:flex;align-items:center;gap:14px;margin-top:16px;padding:17px;border:1px dashed #d3d4cd;border-radius:13px;background:#faf9f5}.blurred{flex:1;filter:blur(4px);user-select:none}.blurred p{margin:4px 0;color:var(--muted)}.filters{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:9px;margin-bottom:14px}.filters input,.filters select{height:40px;border:1px solid var(--line);background:#fff;border-radius:9px;padding:0 11px;color:var(--ink)}.table-panel{padding:0;overflow:hidden}.table-head,.table-row{display:grid;grid-template-columns:2fr 1fr 1fr 1.3fr .6fr .8fr;gap:10px;align-items:center;padding:13px 18px}.table-head{font-size:9px;text-transform:uppercase;letter-spacing:.1em;color:#929a94;background:#f7f6f2;border-bottom:1px solid var(--line)}.table-row{width:100%;border:0;border-bottom:1px solid #ecece7;background:#fff;text-align:left;color:var(--ink);cursor:pointer}.table-row:hover{background:#fbfbf7}.table-row>span:first-child{display:flex;align-items:center}.tree-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px;padding:12px 14px}.tree-toolbar>div{display:flex;gap:6px;align-items:center}.chip{border:1px solid var(--line);background:#fff;padding:7px 10px;border-radius:8px;font-size:10px;font-weight:700;color:#606b63}.chip.active{background:var(--green);color:#fff;border-color:var(--green)}.tree-canvas{position:relative;min-height:620px;background-color:#f8f7f1;background-image:radial-gradient(#d9ddd5 .7px,transparent .7px);background-size:19px 19px;overflow:auto;display:flex;flex-direction:column;align-items:center;gap:96px;padding:60px 80px}.tree-level{display:flex;gap:26px;z-index:2}.tree-person{width:190px;background:#fff;border:1px solid #d9ddd7;border-top:3px solid #527464;border-radius:12px;padding:12px;display:flex;gap:9px;align-items:center;box-shadow:0 9px 20px rgba(41,55,47,.07)}.tree-person.female{border-top-color:#a06d73}.tree-person.ghost{border-style:dashed;border-top-width:1px;color:#7b857e}.portrait,.plus{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#e6eee8;color:#365847;font-size:10px;font-weight:800;flex:0 0 auto}.tree-person b,.tree-person small,.tree-person em{display:block}.tree-person b{font-size:11px}.tree-person small{font-size:9px;color:#747f77;margin:3px 0}.tree-person em{font-size:8px;color:#9aa19b;font-style:normal}.connector{position:absolute;width:2px;background:#bcc7bf;left:50%}.connector:before{content:"";position:absolute;height:2px;background:#bcc7bf;left:50%;transform:translateX(-50%)}.c1{top:147px;height:54px}.c1:before{top:54px;width:430px}.c2{top:344px;height:55px}.c2:before{top:55px;width:245px}.canvas-hint{position:absolute;bottom:16px;font-size:9px;color:#979e99;background:rgba(255,255,255,.8);padding:7px 10px;border-radius:8px}.tool-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:18px}.tool-card{position:relative}.tool-card .pill{position:absolute;right:18px;top:18px}.tool-card h3{font-family:"Source Serif 4",serif;font-size:20px}.tool-card p{color:var(--muted);line-height:1.6;min-height:68px}.tool-visual{width:54px;height:54px;border-radius:15px;display:grid;place-items:center;font-family:"Source Serif 4",serif;font-size:20px;background:#e9efe9;color:var(--green)}.workflow{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}.workflow span{padding:11px 13px;border:1px solid var(--line);border-radius:9px;background:#faf9f5;font-size:10px;font-weight:700}.workflow b{color:#a7aea9}.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.product-card{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}.product-card.featured{box-shadow:0 13px 34px rgba(62,72,65,.12)}.product-art{height:230px;background:#ede9df;display:flex;align-items:center;justify-content:center;flex-direction:column;position:relative;overflow:hidden}.product-copy{padding:18px}.product-copy h3{font-family:"Source Serif 4",serif;font-size:19px;margin:9px 0}.product-copy p{color:var(--muted);font-size:11px;line-height:1.55;min-height:52px}.poster{background:linear-gradient(140deg,#ddd8ca,#f2eee4)}.poster:after{content:"";position:absolute;inset:18px;border:8px solid #3f463e;box-shadow:0 8px 20px rgba(0,0,0,.14)}.art-tree{font-size:82px;color:#3f5e4d;z-index:2}.poster span{z-index:2;font-family:"Source Serif 4",serif;font-weight:700;letter-spacing:.14em}.wood{background:linear-gradient(135deg,#c7a878,#e6cfaa)}.wood-tree{position:relative;width:150px;height:145px}.wood-tree b{position:absolute;width:15px;height:80px;background:#6c4b2f;left:68px;bottom:0;border-radius:4px}.wood-tree i{position:absolute;width:85px;height:70px;background:#496f4a;border-radius:50%}.wood-tree i:nth-child(1){left:10px;top:25px}.wood-tree i:nth-child(2){right:0;top:28px}.wood-tree i:nth-child(3){left:35px;top:0}.wood span{font-family:"Source Serif 4",serif;font-weight:800;letter-spacing:.12em;color:#5e432e}.book{background:#dcd4c5}.book-cover{width:135px;height:180px;background:#263a31;color:#eadfc9;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;font-family:"Source Serif 4",serif;box-shadow:13px 10px 0 #b4a793;border-radius:2px}.book-cover b{font-size:23px}.book-cover small{margin-top:22px;font-family:Inter,sans-serif;font-size:7px;letter-spacing:.15em}.qr{background:#eeeae0}.fake-qr{font-size:80px;color:#26342c}.qr span{text-align:center;font-family:"Source Serif 4",serif;font-size:13px}.pricing-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.price-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;display:flex;flex-direction:column}.price-card.current{border-color:#76917f;box-shadow:inset 0 0 0 1px #76917f}.price-card h3{font-family:"Source Serif 4",serif;font-size:22px;margin:13px 0 2px}.price-card .price{font-size:28px;font-weight:800;margin:8px 0}.price-card .price small{font-size:10px;color:var(--muted)}.price-card p{color:var(--muted);font-size:10px;min-height:32px}.price-card ul{padding:0;margin:14px 0 22px;list-style:none;flex:1}.price-card li{font-size:10px;padding:8px 0;border-top:1px solid #ededE8}.price-card li:before{content:"✓";margin-right:8px;color:var(--green);font-weight:800}.import-zone{text-align:center;padding:65px 25px;margin-bottom:16px;border-style:dashed}.upload-icon{width:62px;height:62px;border-radius:18px;background:#e8efe9;display:grid;place-items:center;margin:0 auto;color:var(--green);font-size:27px}.import-zone h2{font-family:"Source Serif 4",serif;font-size:25px;margin:14px 0 6px}.import-zone p{color:var(--muted);margin:0 0 20px}.kanban{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.kanban-col{background:#eeece6;border-radius:14px;padding:12px;min-height:420px}.kanban-col h3{font-size:11px;margin:2px 3px 12px;display:flex;justify-content:space-between}.kanban-col h3 span{background:#dddcd6;border-radius:999px;padding:2px 7px;font-size:9px}.task{width:100%;text-align:left;border:1px solid var(--line);background:#fff;border-radius:11px;padding:15px;margin-bottom:9px;cursor:pointer}.task b,.task small{display:block}.task small{font-size:9px;color:var(--muted);margin-top:8px}.empty-state{text-align:center;padding:70px 30px}.feature-icon{width:64px;height:64px;border-radius:18px;background:#e6eee8;color:var(--green);font-size:26px;display:grid;place-items:center;margin:0 auto 14px}.empty-state h2{font-family:"Source Serif 4",serif;font-size:26px}.empty-state p{max-width:650px;margin:10px auto 24px;color:var(--muted);line-height:1.7}.placeholder-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-width:640px;margin:25px auto}.placeholder-grid div{height:76px;border-radius:10px;background:linear-gradient(90deg,#f1f0eb,#e6e7e1,#f1f0eb);background-size:200% 100%;animation:shimmer 2.2s infinite}.modal{position:fixed;inset:0;display:none;z-index:100}.modal.open{display:block}.modal-backdrop{position:absolute;inset:0;background:rgba(20,26,22,.45);backdrop-filter:blur(4px)}.modal-card{position:relative;width:min(520px,calc(100vw - 32px));margin:12vh auto;background:#fff;border-radius:18px;padding:28px;box-shadow:0 30px 70px rgba(0,0,0,.22)}.modal-card h2{font-family:"Source Serif 4",serif;font-size:27px;margin:7px 0}.modal-card p{color:var(--muted);line-height:1.7}.modal-note{background:#f3f3ee;border-radius:10px;padding:12px;font-size:10px;color:#68726b;margin:18px 0}.modal-x{position:absolute;right:14px;top:12px;width:34px;height:34px;border:0;background:#f1f1ec;border-radius:50%;font-size:20px;cursor:pointer}.mobile-only{display:none}@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
@media(max-width:1100px){.app-shell{grid-template-columns:210px 1fr}.content{padding:25px}.hero-grid,.dashboard-grid{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(2,1fr)}.quick-grid{grid-template-columns:repeat(3,1fr)}.product-grid,.pricing-grid{grid-template-columns:repeat(2,1fr)}.tool-grid{grid-template-columns:1fr 1fr}.table-head,.table-row{grid-template-columns:1.8fr 1fr 1fr 1fr .6fr}.table-head span:nth-child(5),.table-row>span:nth-child(5){display:none}}
@media(max-width:760px){.app-shell{display:block}.sidebar{position:fixed;left:-270px;width:250px;transition:.25s;box-shadow:15px 0 45px rgba(0,0,0,.15)}.sidebar.open{left:0}.mobile-only{display:block}.topbar{padding:0 13px}.searchbox{width:100%;margin:0 8px}.searchbox kbd,.avatar-copy{display:none}.content{padding:20px 13px}.page-head{align-items:flex-start;flex-direction:column}.page-head h1{font-size:29px}.hero-card.family-card{flex-direction:column}.mini-tree{width:100%;margin-top:30px}.stats-grid,.tool-grid,.product-grid,.pricing-grid,.kanban{grid-template-columns:1fr}.quick-grid{grid-template-columns:1fr 1fr}.filters{grid-template-columns:1fr}.research-item{grid-template-columns:auto 1fr}.research-item .place-tag,.research-item .status{grid-column:2}.table-head,.table-row{grid-template-columns:2fr 1fr 1fr}.table-head span:nth-child(4),.table-head span:nth-child(5),.table-head span:nth-child(6),.table-row>span:nth-child(4),.table-row>span:nth-child(5),.table-row>span:nth-child(6){display:none}.tree-canvas{padding:45px 30px;align-items:flex-start;min-width:780px}.tree-toolbar{overflow:auto}.workflow{align-items:stretch}.workflow b{display:none}.workflow span{flex:1 1 40%}}
/* v0.0.2 – databázová a pracovná vrstva */
.alert{padding:12px 14px;border-radius:10px;margin:0 0 16px;font-size:12px;border:1px solid transparent}.alert.success{background:#e8f1e9;color:#2f6848;border-color:#cfe0d2}.alert.error{background:#f7e8e8;color:#8a4545;border-color:#e8caca}.muted-copy{color:var(--muted);line-height:1.6}.form-panel{margin-top:18px}.form-stack{display:flex;flex-direction:column;gap:14px;margin-top:16px}.form-stack label{display:flex;flex-direction:column;gap:6px}.form-stack label>span{font-size:10px;text-transform:uppercase;letter-spacing:.07em;font-weight:800;color:#68756d}.form-stack input,.form-stack select,.form-stack textarea,.tree-picker select{width:100%;border:1px solid #dcded7;background:#fff;border-radius:10px;padding:11px 12px;color:var(--ink);outline:none}.form-stack input:focus,.form-stack select:focus,.form-stack textarea:focus,.tree-picker select:focus{border-color:#789482;box-shadow:0 0 0 3px rgba(49,95,74,.09)}.form-stack textarea{resize:vertical}.form-stack small{font-size:9px;color:var(--muted)}.form-grid{display:grid;gap:12px}.form-grid.two{grid-template-columns:repeat(2,1fr)}.form-grid.three{grid-template-columns:repeat(3,1fr)}.divider{display:flex;align-items:center;gap:10px;margin:6px 0}.divider:before,.divider:after{content:"";height:1px;background:var(--line);flex:1}.divider span{font-size:9px;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);font-weight:800}.security-note{margin-top:16px;background:#f1f2ed;border-radius:10px;padding:12px;font-size:10px;color:#667169}.auth-body{min-height:100vh;background:radial-gradient(circle at 10% 10%,#e6eee5 0,transparent 32%),linear-gradient(135deg,#f4f2ec,#ecebe4);display:grid;place-items:center;padding:28px}.auth-wrap{width:min(980px,100%);display:grid;grid-template-columns:.9fr 1.1fr;border:1px solid var(--line);border-radius:24px;overflow:hidden;box-shadow:0 30px 80px rgba(36,49,40,.12);background:#fff}.auth-wrap.compact{width:min(860px,100%)}.auth-brand{padding:54px;background:linear-gradient(145deg,#23342b,#345442);color:white;display:flex;flex-direction:column;justify-content:center}.auth-brand .eyebrow{color:#a9b9ad}.auth-brand h1{font-family:"Source Serif 4",serif;font-size:42px;line-height:1.04;margin:9px 0 12px}.auth-brand p{color:#c8d1cb;line-height:1.7;max-width:420px}.auth-logo{width:58px;height:58px;border-radius:17px;background:#e9e1cf;color:#2c4e3b;display:grid;place-items:center;font-size:34px;margin-bottom:28px}.auth-card{padding:48px;background:#fff}.auth-card.standalone{width:min(620px,calc(100vw - 40px));margin:auto;border-radius:18px}.auth-card h2{font-family:"Source Serif 4",serif;font-size:30px;margin:7px 0 10px}.auth-foot{font-size:11px;color:var(--muted);text-align:center;margin-top:18px}.auth-foot a{color:var(--green);font-weight:700}.setup-steps{display:flex;gap:7px;flex-wrap:wrap;margin-top:25px}.setup-steps span{font-size:9px;border:1px solid rgba(255,255,255,.18);padding:7px 9px;border-radius:999px;color:#bfc9c2}.setup-steps .active{background:#fff;color:#2d4d3b}.user-menu{display:flex;align-items:center;gap:9px}.logout-mini{width:28px;height:28px;border-radius:8px;background:#f1f1ec;display:grid;place-items:center;text-decoration:none;color:#667269;font-size:12px}.row-link{color:inherit;text-decoration:none}.research-item.row-link{grid-template-columns:auto 1fr auto}.mini-empty{text-align:center;padding:34px 18px;color:var(--muted)}.mini-empty b{display:block;color:var(--ink);font-family:"Source Serif 4",serif;font-size:18px}.mini-empty p{line-height:1.6}.people-table{margin-top:10px}.people-table .table-head,.people-table .table-row{display:grid;grid-template-columns:2.1fr 1fr 1fr 1fr 1fr .3fr;gap:10px;align-items:center;padding:12px 8px}.people-table .table-head{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#98a19b;font-weight:800;border-bottom:1px solid var(--line)}.people-table .table-row{color:var(--ink);text-decoration:none;border-bottom:1px solid #eee;min-height:58px}.people-table .table-row:hover{background:#fafaf6}.people-table .table-row>span:first-child{display:flex;align-items:center}.people-table .table-row b{font-size:11px}.people-table .table-row small{font-size:9px;color:var(--muted);margin-left:5px}.person-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:18px}.person-main{display:flex;align-items:center;gap:18px}.profile-avatar{width:76px;height:76px;border-radius:24px;background:linear-gradient(145deg,#315f4a,#223e32);color:#fff;display:grid;place-items:center;font-size:24px;font-weight:800;box-shadow:0 12px 28px rgba(49,95,74,.2)}.person-main h1{font-family:"Source Serif 4",serif;font-size:34px;margin:3px 0}.person-main p{margin:0;color:var(--muted)}.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}.relation-block{padding:12px 0;border-top:1px solid var(--line)}.relation-block:first-of-type{border-top:0}.relation-block h4{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#89938c;margin:0 0 10px}.relation-person{display:flex;gap:10px;align-items:center;text-decoration:none;color:var(--ink);padding:8px;border-radius:10px}.relation-person:hover{background:#f4f5ef}.relation-person b,.relation-person small{display:block}.relation-person b{font-size:11px}.relation-person small{font-size:9px;color:var(--muted);margin-top:3px}.timeline{position:relative;padding-left:6px}.timeline-item{display:grid;grid-template-columns:14px 1fr;gap:10px;padding:10px 0}.timeline-dot{width:10px;height:10px;border-radius:50%;background:var(--green);margin-top:4px;box-shadow:0 0 0 4px #e7eee8}.timeline-item b{font-size:11px}.timeline-item p{font-size:10px;color:var(--muted);margin:3px 0}.timeline-item small{font-size:9px;color:#8e9690}.inline-add{margin-top:12px;border-top:1px solid var(--line);padding-top:12px}.inline-add summary{cursor:pointer;color:var(--green);font-weight:800;font-size:11px}.compact-form{padding:12px;background:#f8f8f4;border-radius:12px}.split-layout{display:grid;grid-template-columns:1.5fr 1fr;gap:18px}.simple-list{display:flex;flex-direction:column}.list-item{display:flex;align-items:center;gap:12px;padding:13px 4px;border-bottom:1px solid #ecece7}.list-item>div:nth-child(2){flex:1}.list-item b,.list-item small{display:block}.list-item b{font-size:11px}.list-item small{font-size:9px;color:var(--muted);margin-top:4px}.tree-picker select{min-width:240px}.tree-workspace{overflow:auto}.tree-toolbar{display:flex;gap:7px;padding-bottom:16px;border-bottom:1px solid var(--line)}.tree-toolbar span,.tree-toolbar button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 10px;font-size:9px;font-weight:800;color:#6f7972;cursor:pointer}.tree-toolbar .active{background:var(--green);color:#fff;border-color:var(--green)}.live-tree{min-height:530px;padding:35px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(circle at center,#fff 0,#faf9f5 65%,#f6f4ef 100%)}.tree-generation{width:100%;text-align:center}.tree-generation.focus{padding:10px 0}.gen-label{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.11em;color:#9ba39d;margin-bottom:10px}.tree-cards{display:flex;justify-content:center;align-items:center;gap:14px;flex-wrap:wrap}.live-person{min-width:150px;background:#fff;border:1px solid #d8ddd8;border-radius:14px;padding:13px;text-decoration:none;color:var(--ink);box-shadow:0 8px 22px rgba(48,60,51,.07);display:flex;align-items:center;gap:10px;text-align:left}.live-person b,.live-person small{display:block}.live-person b{font-size:10px}.live-person small{font-size:8px;color:var(--muted);margin-top:3px}.main-node{border:2px solid #76927e;transform:scale(1.05)}.partner-node{background:#faf8f2}.union-mark{font-family:"Source Serif 4",serif;font-size:24px;color:#a08a61}.tree-down{font-size:30px;color:#bac4bc;line-height:1.2}.ghost-card{border:1px dashed #cbd1cb;border-radius:12px;padding:18px 25px;color:#9da59f;font-size:10px;background:rgba(255,255,255,.65)}code{background:#f1f1ec;padding:2px 5px;border-radius:5px;font-size:.9em}
@media(max-width:900px){.auth-wrap{grid-template-columns:1fr}.auth-brand{padding:32px}.auth-brand h1{font-size:34px}.auth-card{padding:30px}.profile-grid,.split-layout{grid-template-columns:1fr}.person-hero{align-items:flex-start;flex-direction:column}.form-grid.three{grid-template-columns:1fr 1fr}.people-table .table-head,.people-table .table-row{grid-template-columns:2fr 1fr 1fr}.people-table .table-head span:nth-child(4),.people-table .table-head span:nth-child(5),.people-table .table-head span:nth-child(6),.people-table .table-row>span:nth-child(4),.people-table .table-row>span:nth-child(5),.people-table .table-row>span:nth-child(6){display:none}}
@media(max-width:560px){.form-grid.two,.form-grid.three{grid-template-columns:1fr}.auth-body{padding:0}.auth-wrap{border-radius:0;min-height:100vh}.auth-brand{display:none}.auth-card{padding:28px 18px}.person-main{align-items:flex-start}.profile-avatar{width:58px;height:58px;border-radius:18px}.person-main h1{font-size:26px}.tree-picker{width:100%}.tree-picker select{min-width:0}}

/* =========================================================
   RODOPIS v0.0.3 — Heritage Premium UI
   ========================================================= */
:root{--bg:#f6f1e8;--paper:#fffdf8;--ink:#203129;--muted:#746f66;--line:#e8dece;--green:#173f31;--green-mid:#315d49;--green-soft:#e7efe7;--sage:#78866a;--gold:#c69b52;--gold-soft:#f3e6cf;--walnut:#4d3b2d;--cream:#fbf4e8;--shadow:0 14px 40px rgba(63,48,32,.08);--radius:16px}
body{font-family:"Source Sans 3",system-ui,sans-serif;background:linear-gradient(180deg,#faf6ef 0,#f4efe6 100%);color:var(--ink)}
h1,h2,h3,.page-head h1,.panel-title h3,.person-main h1,.auth-brand h1,.auth-card h2,.membership-card h3,.hero-copy h2{font-family:"Playfair Display",Georgia,serif}
.app-shell{grid-template-columns:244px 1fr}.sidebar{background:linear-gradient(180deg,#123e30 0%,#173f31 68%,#103629 100%);border-right:0;padding:18px 13px;color:#f7f0df;box-shadow:10px 0 35px rgba(17,49,38,.08)}
.brand-v3{padding:0 10px 18px;border-bottom:1px solid rgba(255,255,255,.13);color:#fff}.brand-v3 img{width:48px;height:48px;filter:drop-shadow(0 5px 12px rgba(0,0,0,.12))}.brand-v3 b{font-family:"Playfair Display",Georgia,serif;font-size:23px;letter-spacing:.02em;color:#fff}.brand-v3 small{color:#d7c8a9;font-size:9px;letter-spacing:.09em;text-transform:uppercase}.nav{padding-top:8px}.nav-label{color:#9db5a8;padding:15px 11px 5px;font-size:9px}.nav a,.sidebar-bottom>a{color:#edf1e9;border:1px solid transparent;padding:9px 11px}.nav a:hover,.sidebar-bottom>a:hover{background:rgba(255,255,255,.08);color:#fff}.nav a.active,.sidebar-bottom>a.active{background:linear-gradient(90deg,rgba(197,155,82,.25),rgba(197,155,82,.09));border-color:rgba(214,178,111,.2);color:#f6dca8}.nav i,.sidebar-bottom i{color:#e6c986}.nav em{color:#abc0b4}.new{background:#d5b16a;color:#173f31}.sidebar-bottom{border-color:rgba(255,255,255,.12)}.storage>div:first-child{color:#a9bbb1}.storage b{color:#fff}.progress{background:rgba(255,255,255,.13)}.progress span{background:#d2ad68}.plan-chip{background:#d2ad68;color:#173f31;font-weight:800}
.main{background:radial-gradient(circle at 83% 5%,rgba(198,155,82,.08),transparent 26%),linear-gradient(180deg,#fbf8f2,#f4efe7)}.topbar{height:64px;background:rgba(255,251,244,.9);border-color:#ece2d4;padding:0 26px}.searchbox{background:#fffaf3;border-color:#e8ddcf;border-radius:9px}.searchbox:focus-within{box-shadow:0 0 0 3px rgba(23,63,49,.08);border-color:#b5c2b9}.icon-btn{border-color:#eadfce;background:#fffdf9}.avatar{background:linear-gradient(145deg,#244f3c,#173f31);box-shadow:0 4px 12px rgba(23,63,49,.18)}.avatar-copy b{font-family:"Playfair Display",serif}.logout-mini{background:#f0e7d8;color:#765e42}.content{padding:26px 28px 44px;max-width:1700px}.eyebrow{color:#9a7a4a}.btn{border-radius:9px}.btn.primary{background:linear-gradient(180deg,#21503d,#173f31);box-shadow:0 6px 16px rgba(23,63,49,.12)}.btn.primary:hover{background:#113528}.btn.secondary{background:#fffdf8;border-color:#e3d7c6}.btn.small{padding:9px 12px;font-size:10px}.panel,.hero-card{background:rgba(255,253,248,.94);border-color:#e7ddcf;box-shadow:0 1px 0 rgba(71,54,36,.02),0 12px 35px rgba(71,54,36,.035)}.pill{background:#e7efe6;color:#276047}.pill.premium{background:#f2dfbd;color:#795421}.round-icon{background:#f5e8d1;color:#9c6d2c}
.v3-breadcrumb{display:flex;gap:8px;align-items:center;font-size:10px;color:#8d8275;margin:2px 0 11px}.v3-breadcrumb b{color:#bba889}.v3-head{align-items:center;margin-bottom:18px}.v3-head h1{font-size:38px;margin:2px 0 3px}.v3-head p{font-size:12px;max-width:780px}.v3-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:11px;margin-bottom:14px}.v3-stat{min-height:94px;border:1px solid #e9dfd1;border-radius:13px;padding:13px;text-decoration:none;color:var(--ink);display:grid;grid-template-columns:auto 1fr;gap:10px;align-content:center;position:relative;overflow:hidden}.v3-stat:after{content:"";position:absolute;right:-20px;bottom:-30px;width:70px;height:70px;border-radius:50%;background:rgba(255,255,255,.38)}.v3-stat.green{background:#f1f6ef}.v3-stat.sand{background:#fbf1e2}.v3-stat.sage{background:#edf3e8}.v3-stat.paper{background:#faf7f0}.v3-stat.gold{background:#fbefda}.v3-stat.cream{background:#f7f0e5}.v3-stat-icon{width:37px;height:37px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.66);color:#295a44;font-size:18px;z-index:1}.v3-stat.gold .v3-stat-icon,.v3-stat.cream .v3-stat-icon{color:#a5702d}.v3-stat b{font-family:"Playfair Display",serif;font-size:23px;line-height:1}.v3-stat small{display:block;font-size:10px;color:#776e63;margin-top:3px}.v3-stat em{grid-column:2;font-style:normal;font-size:9px;color:#34604c;margin-top:2px;z-index:1}.v3-main-grid{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(300px,.95fr);gap:14px;margin-bottom:14px}.v3-tree-card,.v3-person-card{min-height:400px;padding:16px}.v3-section-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.v3-section-head>div:first-child{display:flex;align-items:center;gap:10px}.v3-section-head h3{font-size:20px;margin:0}.v3-section-head p{font-size:10px;color:var(--muted);margin:2px 0 0}.v3-section-head>a{font-size:10px;color:#28533f;text-decoration:none;font-weight:700}.tree-mini-logo img{width:37px;height:37px}.tree-actions{display:flex;align-items:center;gap:7px}.soft-chip{font-size:9px;padding:7px 9px;border:1px solid #e4d9cb;border-radius:8px;color:#776d60;background:#fffaf2}.v3-tree-preview{min-height:325px;margin-top:12px;border-radius:12px;border:1px solid #eee4d8;background:radial-gradient(circle at 50% 35%,#fff 0,#fbf6ec 68%,#f5efe4 100%);position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;padding:22px}.tree-watermark{position:absolute;width:320px;height:260px;opacity:.055;background:url('../assets/brand/logo-icon.png') center/contain no-repeat;filter:grayscale(1)}.demo-generation{display:flex;gap:25px;z-index:1;position:relative}.demo-node{min-width:160px;padding:10px;border:1px solid #dfd4c5;background:rgba(255,253,248,.96);border-radius:10px;color:var(--ink);text-decoration:none;display:flex;align-items:center;gap:9px;box-shadow:0 8px 19px rgba(84,63,39,.06)}.demo-node>span{width:34px;height:34px;border-radius:50%;background:#eadfce;display:grid;place-items:center;font-weight:800;font-size:10px;color:#6d583f}.demo-node b,.demo-node small{display:block}.demo-node b{font-family:"Playfair Display",serif;font-size:11px}.demo-node small{font-size:8px;color:#8b8074;margin-top:2px}.demo-node.active{background:linear-gradient(145deg,#25553f,#153d2f);color:#fff;border-color:#234f3b;transform:scale(1.05);box-shadow:0 10px 24px rgba(23,63,49,.2)}.demo-node.active>span{background:#f3e5ce;color:#244d3b}.demo-node.active small{color:#d5ded9}.branch-line{height:30px;width:1px;background:#a88b61;z-index:1}.branch-line.short{height:34px}.demo-add{width:41px;height:41px;border:1px dashed #b9ab99;border-radius:50%;display:grid;place-items:center;text-decoration:none;color:#7e6f5e;background:#fffdf9;font-size:18px;align-self:center}.v3-empty-tree{text-align:center;z-index:1;max-width:380px}.v3-empty-tree img{width:58px}.v3-empty-tree h3{font-size:20px;margin:8px 0}.v3-empty-tree p{font-size:11px;color:var(--muted);line-height:1.5}.v3-person-card{display:flex;flex-direction:column}.v3-person-top{display:flex;gap:12px;align-items:center}.v3-portrait{width:76px;height:88px;border-radius:11px;background:linear-gradient(145deg,#ddcfb9,#bda688);display:grid;place-items:center;color:#4f3f2f;font-family:"Playfair Display",serif;font-size:20px;font-weight:700;box-shadow:inset 0 0 0 1px rgba(78,60,43,.13)}.v3-person-top h3{font-size:20px;margin:2px 0}.v3-person-top p{font-size:10px;color:var(--muted);margin:0}.v3-tabs{display:flex;gap:17px;border-bottom:1px solid #eadfce;margin:14px -16px 12px;padding:0 16px}.v3-tabs span{padding:9px 0 8px;font-size:9px;color:#857a6d}.v3-tabs .active{color:#1f513c;font-weight:800;border-bottom:2px solid #1f513c}.v3-family-mini{display:grid;grid-template-columns:1fr 1fr;gap:8px}.v3-family-mini>div{border-bottom:1px solid #eee4d8;padding:8px 0}.v3-family-mini .full{grid-column:1/-1}.v3-family-mini b{font-family:"Playfair Display",serif;font-size:11px}.v3-family-mini p{font-size:9px;color:var(--muted);margin:3px 0}.v3-person-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:auto 0 8px}.v3-person-actions .btn{padding:8px 4px;font-size:9px}.v3-bottom-grid{display:grid;grid-template-columns:1fr 1.08fr;gap:14px;margin-bottom:14px}.v3-module{padding:15px}.v3-card-row{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:12px}.feature-card,.product-mini{position:relative;text-decoration:none;color:var(--ink);border:1px solid #e8ddcf;border-radius:10px;background:#fffdf9;padding:8px;min-width:0}.feature-card .pill{position:absolute;top:7px;right:7px;font-size:7px;padding:3px 5px}.feature-card b,.feature-card small,.product-mini b,.product-mini small{display:block}.feature-card b,.product-mini b{font-family:"Playfair Display",serif;font-size:11px;margin-top:7px}.feature-card small,.product-mini small{font-size:8px;color:var(--muted);line-height:1.35;margin-top:2px}.feature-visual{height:67px;border-radius:7px;display:grid;place-items:center;font-family:"Playfair Display",serif;font-size:23px}.feature-visual.manuscript{background:linear-gradient(135deg,#d9bd8f,#f0ddbb);color:#654b2e}.feature-visual.photo{background:linear-gradient(135deg,#d9d4cc,#8e887d);color:#fff}.feature-visual.match{background:linear-gradient(135deg,#f2dec2,#d6a252);color:#765020}.products-mini{grid-template-columns:repeat(4,1fr)}.prod-thumb{height:68px;border-radius:7px;display:grid;place-items:center;font-size:29px;overflow:hidden}.prod-thumb.print{background:linear-gradient(145deg,#f1e1c4,#fff8e8);color:#7c5a32}.prod-thumb.moss{background:radial-gradient(circle,#8fa76f 0 18%,#45613b 19% 34%,#d6b883 35% 38%,#eee0c6 39%);color:#382f25}.prod-thumb.chronicle{background:linear-gradient(135deg,#755b43,#d4b88c);color:#f9edd7;font-family:"Playfair Display",serif}.prod-thumb.qr{background:linear-gradient(135deg,#eee6da,#d3c4b1);color:#3f342a;filter:blur(1.3px)}.product-mini.locked{overflow:hidden}.product-mini.locked .pill{position:absolute;top:34px;left:50%;transform:translate(-50%,-50%);font-size:7px}.v3-lock{margin-top:0}.public-preview .blurred{filter:blur(2.4px);opacity:.65}.locked-row{background:#fbf8f1}.auth-body{background:radial-gradient(circle at 10% 15%,rgba(196,155,82,.18),transparent 28%),linear-gradient(135deg,#f7f0e5,#e7eee7)}.auth-brand{background:linear-gradient(150deg,#113b2d,#1f513c);position:relative;overflow:hidden}.auth-brand:after{content:"";position:absolute;width:300px;height:300px;right:-90px;bottom:-120px;background:url('../assets/brand/logo-icon.png') center/contain no-repeat;opacity:.08}.auth-logo{background:transparent;width:82px;height:82px;border-radius:0}.auth-logo img{width:82px;height:82px}.auth-card{background:#fffdf9}.auth-foot a{color:#1d503b}
@media(max-width:1250px){.v3-stats{grid-template-columns:repeat(3,1fr)}.v3-main-grid{grid-template-columns:1fr}.v3-person-card{min-height:auto}.v3-bottom-grid{grid-template-columns:1fr}.v3-person-actions{margin-top:14px}}
@media(max-width:900px){.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;left:-260px;width:244px;transition:left .2s}.sidebar.open{left:0}.topbar{padding:0 14px}.content{padding:20px 14px 35px}.v3-head{align-items:flex-start}.v3-stats{grid-template-columns:repeat(2,1fr)}.v3-card-row,.products-mini{grid-template-columns:repeat(2,1fr)}.tree-actions{display:none}.demo-node{min-width:135px}}
@media(max-width:560px){.v3-stats{grid-template-columns:1fr}.v3-card-row,.products-mini{grid-template-columns:1fr}.v3-family-mini{grid-template-columns:1fr}.v3-family-mini .full{grid-column:auto}.v3-tree-preview{align-items:flex-start;overflow:auto}.demo-generation{gap:10px}.v3-head h1{font-size:31px}}

/* v0.0.4 — genealogia / anthracite identity overrides */
:root{
  --bg:#F3EBDD;
  --paper:#FFFDF8;
  --ink:#2C2F33;
  --muted:#7A7A74;
  --line:#E8DECE;
  --green:#2C2F33;
  --green-mid:#40454b;
  --green-soft:#F7F0E5;
  --sage:#7A7A74;
  --gold:#C9A96E;
  --gold-soft:#F5EAD7;
  --walnut:#4E3A2E;
  --cream:#F9F4EC;
  --shadow:0 12px 30px rgba(44,47,51,.06);
  --radius:16px;
}
html,body{font-family:"Source Sans 3",Arial,sans-serif;color:var(--ink);background:var(--bg)}
h1,h2,h3,h4,.page-head h1,.panel-title h3,.v3-section-head h3,.v3-stat b,.feature-card b,.product-mini b,.brand b,.hero-copy h2,.membership-card h3,.v3-person-top h3,.v3-empty-tree h3,.v3-title-stack h2{font-family:"Playfair Display",Georgia,serif}
.sidebar{background:linear-gradient(180deg,#2F343A 0%,#1F2328 100%);border-right:1px solid rgba(201,169,110,.24);padding:18px 14px 16px;box-shadow:inset -1px 0 0 rgba(255,255,255,.02)}
.brand.brand-v3{gap:12px;padding:2px 8px 18px;color:#fff}
.brand.brand-v3 img{width:52px;height:52px;filter:drop-shadow(0 6px 12px rgba(0,0,0,.15))}
.brand.brand-v3 span{display:flex;flex-direction:column;gap:2px}
.brand.brand-v3 b{font-size:22px;letter-spacing:.02em;color:#fff}
.brand.brand-v3 small{font-size:10px;color:#d8c9b0;letter-spacing:.02em}
.nav-label{color:#bcae96;font-size:10px;letter-spacing:.16em;padding:14px 11px 7px}
.nav a,.sidebar-bottom>a{color:#f2e8d8;font-weight:500;border:1px solid transparent}
.nav a:hover,.sidebar-bottom>a:hover{background:rgba(255,255,255,.045);color:#fff}
.nav a.active,.sidebar-bottom>a.active{background:linear-gradient(90deg,rgba(201,169,110,.32),rgba(201,169,110,.14));border-color:rgba(201,169,110,.18);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.nav i,.sidebar-bottom i{color:#f1ddb8}
.nav em{color:#e5d7bf}
.new{background:var(--gold);color:#2C2F33;font-weight:800}
.sidebar-bottom{border-top:1px solid rgba(201,169,110,.18);padding-top:16px}
.storage>div:first-child,.storage b{color:#d9cfbd}
.progress{background:rgba(255,255,255,.08)}
.progress span{background:linear-gradient(90deg,#C9A96E,#E0C58A)}
.plan-chip{background:rgba(201,169,110,.18);color:#f2dfb4;border:1px solid rgba(201,169,110,.28)}
.main{background:linear-gradient(180deg,#FCFAF6,#F5EEE2)}
.topbar{height:78px;padding:0 26px;background:rgba(255,252,247,.96);border-bottom:1px solid #E7DDCF;display:grid;grid-template-columns:minmax(300px,1fr) auto auto;gap:18px;align-items:center;position:sticky;top:0}
.topbar:before{content:"Minulosť\Aspája generácie";white-space:pre;display:block;font-family:"Playfair Display",Georgia,serif;font-style:italic;color:#826c56;line-height:1.03;font-size:15px;opacity:.95;justify-self:end;text-align:right;padding-right:24px;background:radial-gradient(circle at 80% 40%,rgba(201,169,110,.18),transparent 60%)}
.searchbox{width:100%;max-width:none;height:44px;background:#fffdf9;border:1px solid #E8DECE;border-radius:12px;padding:0 14px;color:var(--ink)}
.searchbox input{font-family:"Source Sans 3",Arial,sans-serif}
.searchbox span{color:#7d7366}
kbd{border-color:#DDD3C4;background:#fff;color:#857B6E}
.icon-btn{border-color:#E8DECE;background:#fffdf9;color:#605448}
.icon-btn .notify,.notify{background:#C9A96E;border-color:#fff}
.user-menu{display:flex;align-items:center;gap:10px}
.avatar{background:linear-gradient(180deg,#675648,#44372e);border:2px solid #F1E3CA;color:#fff;box-shadow:0 8px 18px rgba(61,45,28,.12)}
.avatar-copy b{font-family:"Source Sans 3",Arial,sans-serif;font-size:14px;color:#2C2F33}
.avatar-copy small{font-size:11px;color:#8A765D}
.logout-mini{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:10px;text-decoration:none;background:#F5EAD7;color:#7A5B35;font-weight:700}
.content{padding:26px 28px 42px;max-width:1700px}
.v3-breadcrumb{color:#9A8E80;margin-bottom:8px}
.v3-breadcrumb b{color:#B99D72}
.page-head.v3-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:24px;margin-bottom:18px}
.v3-title-stack h1{font-size:34px;margin:0 0 2px;color:#1f2328}
.v3-title-stack h2{font-size:23px;margin:0 0 6px;color:#4E3A2E;font-weight:600}
.v3-title-stack p{font-size:13px;line-height:1.55;max-width:700px;color:#746B5F;margin:0}
.v3-hero-quote{display:flex;flex-direction:column;align-items:flex-end;gap:6px;padding-top:4px;min-width:320px}
.v3-hero-quote span{font-family:"Playfair Display",Georgia,serif;font-style:italic;color:#8C7150;font-size:17px}
.v3-hero-quote strong{font-family:"Playfair Display",Georgia,serif;font-weight:500;color:#B18B5B;font-size:18px}
.v3-hero-quote .head-actions{margin-top:8px}
.btn{border-radius:12px;font-weight:700;padding:11px 16px}
.btn.primary{background:linear-gradient(180deg,#343A40,#23272C);color:#fff;border:1px solid rgba(0,0,0,.12)}
.btn.primary:hover{background:#1e2126}
.btn.secondary{background:#fffdf9;color:#2C2F33;border:1px solid #E4D9CB}
.panel,.hero-card,.v3-tree-card,.v3-person-card,.v3-module,.feature-card,.product-mini{background:#FFFDF8;border:1px solid #E8DECE;box-shadow:var(--shadow)}
.v3-stats{gap:12px}
.v3-stat{min-height:96px;border-color:#E8DECE;border-radius:14px;box-shadow:0 1px 0 rgba(0,0,0,.02)}
.v3-stat.green,.v3-stat.sage,.v3-stat.paper{background:#FAF7F1}
.v3-stat.sand,.v3-stat.gold,.v3-stat.cream{background:#FBF3E6}
.v3-stat-icon{background:#fff;border:1px solid rgba(201,169,110,.2);color:#6A5538}
.v3-stat small{color:#746A60}
.v3-stat em{color:#6F6A62}
.v3-section-head h3{font-size:22px;color:#2C2F33}
.v3-section-head p{color:#7A7A74}
.v3-section-head>a,.text-link{color:#6F5432}
.soft-chip{background:#fffdf9;border-color:#E3D8CA;color:#6D655B}
.tree-mini-logo img{width:40px;height:40px}
.v3-tree-preview{background:radial-gradient(circle at 50% 35%,#fff 0,#FBF7EF 68%,#F5EEE2 100%);border-color:#E8DECE;min-height:370px}
.tree-watermark{opacity:.05;filter:grayscale(1) sepia(.35)}
.demo-node{border-color:#E0D5C6;background:#fffdf9;box-shadow:0 8px 20px rgba(78,58,46,.05);min-width:170px}
.demo-node>span{background:#EEE3D2;color:#6C5843}
.demo-node b{font-size:12px;color:#2C2F33}
.demo-node small{color:#8C8173}
.demo-node.active{background:linear-gradient(180deg,#3B4046,#23272C);border-color:#3D434B;box-shadow:0 12px 26px rgba(44,47,51,.18)}
.demo-node.active>span{background:#F2E4CB;color:#4E3A2E}
.branch-line,.branch-line.short{background:#B29061}
.demo-add{background:#fff;border-color:#CCBCA8;color:#6E604F}
.v3-person-card{padding:18px}
.v3-person-top{align-items:flex-start}
.v3-portrait{width:92px;height:108px;border-radius:10px;background:linear-gradient(180deg,#D8C7AE,#BCA07A);color:#4E3A2E;position:relative;overflow:hidden}
.v3-portrait:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(0,0,0,.08));opacity:.65}
.v3-portrait{display:flex;align-items:center;justify-content:center;font-size:24px}
.v3-person-top h3{font-size:20px;color:#2C2F33}
.v3-tabs{gap:20px;border-bottom:1px solid #E8DECE;margin-top:16px}
.v3-tabs span{font-size:10px;color:#8C7F70;padding-bottom:9px}
.v3-tabs .active{color:#2C2F33;border-bottom:2px solid #2C2F33}
.v3-family-mini b{font-size:12px;color:#3B3129}
.v3-family-mini p{font-size:10px;color:#7A7A74}
.round-icon{background:#F5EAD7;color:#7A5B35}
.feature-card .pill,.product-mini .pill{border-radius:999px}
.feature-visual.manuscript{background:linear-gradient(135deg,#D8BC8D,#F1DFC1);color:#654B2E}
.feature-visual.photo{background:linear-gradient(135deg,#7C746C,#D4CEC7);color:#fff}
.feature-visual.match{background:linear-gradient(135deg,#F1DEC3,#D7B07B);color:#795422}
.products-mini{gap:10px}
.prod-thumb.print{background:linear-gradient(145deg,#F2E6D0,#FFF8EC);color:#7C5A32}
.prod-thumb.moss{background:radial-gradient(circle at 50% 45%,#7F9866 0 17%,#47613D 18% 34%,#D5B786 35% 39%,#EFE5D1 40%);color:#382F25}
.prod-thumb.chronicle{background:linear-gradient(145deg,#A28360,#F0DFC3);color:#fff}
.prod-thumb.qr{background:linear-gradient(145deg,#EEE5D9,#D2C4B3);color:#4E3A2E;filter:blur(1.4px)}
.locked-row{background:#FBF8F1;border:1px dashed #D8CCBC}
.public-preview .blurred{filter:blur(2.8px);opacity:.72}
.auth-body{background:linear-gradient(135deg,#F6EFE4,#EFE8DA)}
.auth-brand{background:linear-gradient(150deg,#2F343A,#1F2328)}
.auth-logo img{filter:drop-shadow(0 6px 14px rgba(0,0,0,.18))}
.auth-card{background:#FFFDF8;border:1px solid #E8DECE}
.auth-foot a,.btn-link{color:#6D5432}
@media (max-width:1200px){
  .page-head.v3-head{grid-template-columns:1fr}
  .v3-hero-quote{align-items:flex-start;min-width:0}
  .topbar{grid-template-columns:1fr auto}
  .topbar:before{display:none}
}
@media (max-width:900px){
  .topbar{display:flex;gap:12px}
}

/* v0.0.5 — genealogický pracovný vzhľad + rodinný archív */
.topbar{grid-template-columns:minmax(360px,1.1fr) minmax(180px,.55fr) auto}
.topbar .searchbox{grid-column:1;grid-row:1}
.topbar:before{grid-column:2;grid-row:1}
.topbar .top-actions{grid-column:3;grid-row:1}
.status.green{background:#F4E8D4;color:#694E2E;border:1px solid #E2CFB0}
.eyebrow{color:#9A7D59}
.form-stack label>span{color:#76685A}
.form-stack input,.form-stack select,.form-stack textarea,.tree-picker select{background:#FFFDF8;border-color:#DDD1C2;border-radius:8px}
.form-stack input:focus,.form-stack select:focus,.form-stack textarea:focus,.tree-picker select:focus{border-color:#B99A6D;box-shadow:0 0 0 3px rgba(201,169,110,.12)}
.people-table{border-top:1px solid #E8DECE}
.people-table .table-head{color:#927D65;background:#FAF6EF;padding:11px 12px}
.people-table .table-row{padding:12px;border-bottom:1px solid #EEE4D8}
.people-table .table-row:hover{background:#FBF7EF}
.person-avatar{background:#EEE3D2;color:#5A4736;border:1px solid #DDCDB7}
.person-avatar.small{font-family:"Playfair Display",Georgia,serif}
.person-hero{background:linear-gradient(110deg,#FFFDF8,#FAF3E7);position:relative;overflow:hidden}
.person-hero:after{content:"";position:absolute;right:-45px;bottom:-70px;width:240px;height:240px;background:url('../assets/brand/logo-icon.png') center/contain no-repeat;opacity:.035;filter:grayscale(1)}
.profile-avatar{width:88px;height:100px;border-radius:10px;background:linear-gradient(180deg,#443A32,#292D31);border:4px solid #F0E3CD;outline:1px solid #CCB999;color:#F8EAD2;font-family:"Playfair Display",Georgia,serif;box-shadow:0 10px 24px rgba(55,43,31,.14)}
.person-main h1{font-size:38px;color:#26292D}
.relation-block{border-color:#E9DFD2}
.relation-block h4{font-family:"Playfair Display",Georgia,serif;text-transform:none;font-size:14px;letter-spacing:0;color:#4E3A2E}
.relation-person{border:1px solid transparent}
.relation-person:hover{background:#FBF6ED;border-color:#E7DAC8}
.timeline-dot{background:#C9A96E;box-shadow:0 0 0 4px #F5EAD7}
.inline-add summary{color:#6C5232}
.compact-form{background:#FBF7F0;border:1px solid #E9DFD2}
.tree-workspace{padding:0;overflow:hidden}
.tree-toolbar{padding:13px 16px;background:#FCF8F1;border-bottom:1px solid #E6DCCF;overflow:auto}
.tree-toolbar span,.tree-toolbar button{border-color:#DED1C1;background:#FFFDF8;color:#6F6356;border-radius:8px}
.tree-toolbar .active{background:#2C2F33;color:#fff;border-color:#2C2F33}
.live-tree{min-height:590px;padding:48px 30px;background:radial-gradient(circle at 50% 42%,rgba(255,255,255,.95),rgba(250,245,236,.96)),linear-gradient(90deg,transparent 49.9%,rgba(177,144,94,.08) 50%,transparent 50.1%);position:relative}
.live-tree:before{content:"";position:absolute;inset:40px 15%;background:url('../assets/brand/logo-icon.png') center/300px no-repeat;opacity:.025;filter:grayscale(1);pointer-events:none}
.gen-label{font-family:"Playfair Display",Georgia,serif;text-transform:none;letter-spacing:.02em;font-size:12px;color:#8A745B}
.live-person{min-width:170px;border-color:#DCCFBE;border-radius:9px;background:#FFFDF8;box-shadow:0 7px 20px rgba(74,58,41,.06);position:relative;z-index:1}
.live-person .portrait{width:40px;height:46px;border-radius:50%;display:grid;place-items:center;background:#E8DBC8;border:2px solid #fff;outline:1px solid #CDB99D;color:#5C4937;font-family:"Playfair Display",Georgia,serif;font-weight:700}
.live-person b{font-family:"Playfair Display",Georgia,serif;font-size:12px}
.live-person small{font-size:9px;color:#85796C}
.main-node{border:1px solid #2C2F33;background:linear-gradient(180deg,#383D42,#24282D);color:#fff;transform:scale(1.04)}
.main-node .portrait{background:#F0E2CA;color:#4E3A2E;outline-color:#C9A96E}
.main-node small{color:#DED7CD}
.partner-node{background:#FBF5EA}
.union-mark{font-family:"Playfair Display",Georgia,serif;color:#B48B50;font-size:26px}
.tree-down{color:#AF8E60}
.ghost-card{border-color:#CDBDA9;background:#FFFDF8;color:#897B6C;border-radius:9px}

.media-page-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(300px,.72fr);gap:18px;align-items:start}
.media-library{min-height:520px}
.media-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:18px}
.media-card{display:flex;flex-direction:column;text-decoration:none;color:#2C2F33;border:1px solid #E3D8CA;border-radius:10px;background:#FFFDF8;overflow:hidden;box-shadow:0 7px 18px rgba(69,52,35,.04);transition:.15s ease}
.media-card:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(69,52,35,.09)}
.media-card-preview{aspect-ratio:4/3;background:#E9DFD2;overflow:hidden;display:grid;place-items:center}
.media-card-preview img{width:100%;height:100%;object-fit:cover;filter:saturate(.75) sepia(.08)}
.media-card-preview.document{background:linear-gradient(145deg,#F4E7D2,#E8D7BC);color:#6E5332;font-family:"Playfair Display",Georgia,serif;font-size:28px}
.media-card-copy{padding:10px}
.media-card-copy b,.media-card-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.media-card-copy b{font-family:"Playfair Display",Georgia,serif;font-size:12px}
.media-card-copy small{font-size:9px;color:#817669;margin-top:4px}
.media-upload-card{position:sticky;top:96px}
.media-upload-card h3{font-family:"Playfair Display",Georgia,serif;font-size:24px;margin:5px 0}
.archive-file{padding:14px;border:1px dashed #CDBA9F;background:#FBF5EA;border-radius:9px}
.archive-note{margin-top:18px;padding:13px;border-top:1px solid #E8DECE;color:#766A5C;font-size:10px;line-height:1.55}
.archive-note b{font-family:"Playfair Display",Georgia,serif;color:#4E3A2E;font-size:12px}
.media-empty{min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px;color:#7A7065}
.media-empty.wide{grid-column:1/-1}
.media-empty img{width:70px;height:70px;margin-bottom:10px;opacity:.9}
.media-empty b{font-family:"Playfair Display",Georgia,serif;font-size:16px;color:#4D4034}
.media-empty p{font-size:10px;max-width:340px;line-height:1.5}
.person-media-panel{margin-bottom:18px}
.media-person-layout{display:grid;grid-template-columns:300px 1fr;gap:18px;margin-top:16px}
.media-drop{margin-top:0;padding:18px;border:1px dashed #CDB99D;background:#FBF5EA;border-radius:10px;align-self:start}
.media-drop>b{font-family:"Playfair Display",Georgia,serif;font-size:15px;color:#4E3A2E}
.media-drop>p{font-size:10px;line-height:1.5;color:#7A7065;margin:0}
.upload-emblem{width:42px;height:42px;border:1px solid #CFB994;border-radius:50%;display:grid;place-items:center;color:#8A6A3F;font-size:20px;background:#FFFDF8}
.person-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.media-tile{min-width:0;text-decoration:none;color:#2C2F33;border:1px solid #E2D6C6;border-radius:9px;overflow:hidden;background:#FFFDF8}
.media-tile>img,.media-doc{width:100%;aspect-ratio:4/3;object-fit:cover;background:#EEE2D0;display:grid;place-items:center;color:#6D5433;font-family:"Playfair Display",Georgia,serif;font-size:26px;filter:saturate(.78) sepia(.06)}
.media-tile>span{display:block;padding:9px}
.media-tile b,.media-tile small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.media-tile b{font-family:"Playfair Display",Georgia,serif;font-size:11px}
.media-tile small{font-size:8px;color:#82766A;margin-top:3px}

.auth-wrap{border-color:#DCCFBE;box-shadow:0 28px 70px rgba(44,47,51,.12)}
.auth-brand{padding:54px;background:linear-gradient(155deg,#34393F,#202429);position:relative}
.auth-brand:before{content:"";position:absolute;right:-70px;bottom:-70px;width:300px;height:300px;background:url('../assets/brand/logo-icon.png') center/contain no-repeat;opacity:.08;filter:grayscale(1)}
.auth-brand .eyebrow{color:#D3B77E}
.auth-brand h1{font-family:"Playfair Display",Georgia,serif;font-size:43px;position:relative;z-index:1}
.auth-brand p{color:#DED5C8;position:relative;z-index:1}
.auth-card h2{font-family:"Playfair Display",Georgia,serif}
.setup-steps .active{background:#C9A96E;color:#25282C}
.security-note{background:#FBF5EA;color:#6E6256;border:1px solid #E6D9C8}
.alert.success{background:#F4EADA;color:#69502F;border-color:#E4D1B1}

@media(max-width:1250px){.media-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:1000px){.media-page-grid{grid-template-columns:1fr}.media-upload-card{position:static}.media-person-layout{grid-template-columns:1fr}.person-media-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.media-grid,.person-media-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.media-grid,.person-media-grid{grid-template-columns:1fr}}

/* v0.0.6 — MASTER DASHBOARD 1:1 podľa schválenej referencie */
.ref-shell{grid-template-columns:250px minmax(0,1fr);background:#f7f3eb}
.ref-sidebar{width:250px;background:linear-gradient(180deg,#2f3234 0%,#25282a 63%,#222526 100%);border-right:0;padding:0 14px 16px;overflow:hidden;position:sticky;top:0;z-index:50}
.ref-brand{height:88px;display:flex;align-items:center;text-decoration:none;border-bottom:1px solid rgba(229,213,184,.26);margin:0 4px 4px;overflow:hidden}
.ref-brand img{width:208px;height:72px;object-fit:cover;object-position:left center;display:block}
.ref-nav{gap:2px;overflow:visible;padding-top:6px}
.ref-nav a{height:41px;border-radius:7px;padding:0 12px;display:flex;align-items:center;gap:12px;color:#f6f1e8;font-family:"Playfair Display",Georgia,serif;font-size:15px;font-weight:500;text-decoration:none;border:1px solid transparent}
.ref-nav a i{width:25px;color:#f0d59b;font-family:"Source Sans 3",Arial,sans-serif;font-size:20px;font-style:normal;text-align:center;line-height:1}
.ref-nav a span{white-space:nowrap}
.ref-nav a:hover{background:rgba(255,255,255,.045);color:#fff}
.ref-nav a.active{background:linear-gradient(90deg,rgba(157,125,72,.54),rgba(125,100,58,.30));border-color:rgba(218,186,125,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.035);color:#f7e4b9}
.ref-nav-divider{height:1px;background:rgba(218,201,171,.24);margin:11px 7px}
.ref-premium-card{margin-top:auto;border:1px solid rgba(201,169,110,.52);border-radius:10px;padding:13px 12px 12px;background:linear-gradient(180deg,rgba(113,92,55,.20),rgba(65,59,47,.12));color:#fff;position:relative;z-index:2}
.ref-premium-title{display:flex;gap:10px;align-items:center;color:#f1d89f;font-family:"Playfair Display",Georgia,serif;font-size:15px}
.ref-premium-title span{font-size:20px}.ref-premium-card p{font-family:"Source Sans 3",Arial,sans-serif;font-size:11px;line-height:1.25;color:#f5eee3;margin:8px 0 10px 27px}
.ref-premium-card>a{height:34px;border-radius:8px;background:#f2d394;color:#3c342a;text-decoration:none;display:flex;align-items:center;justify-content:center;font-family:"Playfair Display",Georgia,serif;font-size:13px;font-weight:600}.ref-premium-card>a span{margin-left:10px}
.ref-sidebar-leaves{position:absolute;left:-33px;bottom:-40px;color:#9b7a44;font-size:145px;opacity:.32;transform:rotate(-22deg);pointer-events:none}
.ref-main{background:#fbf8f1;min-width:0}
.ref-topbar{height:72px;background:#fffdf8;border-bottom:1px solid #e5ddd1;padding:0 22px 0 18px;display:grid;grid-template-columns:minmax(430px,540px) minmax(250px,1fr) auto;gap:18px;align-items:center;position:sticky;top:0;z-index:30;overflow:hidden}
.ref-search{width:100%;height:43px;border:1px solid #ded7cc;border-radius:10px;background:#fffdf9;box-shadow:inset 0 1px 2px rgba(44,47,51,.025);padding:0 12px}
.ref-search .search-glyph{font-size:25px;color:#40454a;transform:rotate(-12deg)}
.ref-search input{font-size:13px;color:#65615c}.ref-search input::placeholder{color:#8a8680}.ref-search kbd{margin-left:auto;border:1px solid #ded8ce;background:#fff;padding:3px 6px;border-radius:5px;color:#77726d;font-size:10px}
.ref-top-heritage{height:72px;position:relative;display:flex;justify-content:flex-end;align-items:flex-start;overflow:hidden;min-width:330px}
.ref-top-heritage img{position:absolute;right:0;top:0;width:420px;height:72px;object-fit:cover;opacity:.92}.ref-top-heritage:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#fffdf8 0%,rgba(255,253,248,.12) 40%,rgba(255,253,248,0) 78%)}
.ref-top-heritage em{position:absolute;left:8px;top:13px;z-index:2;font-family:"Playfair Display",Georgia,serif;color:#8b6f4c;font-style:italic;font-size:17px;line-height:.96;transform:rotate(-3deg)}
.ref-top-actions{display:flex;align-items:center;gap:17px;position:relative;z-index:2}.ref-bell{position:relative;border:0;background:transparent;color:#2e3132;font-size:21px;width:27px;height:33px;cursor:pointer}.ref-bell .notify{right:2px;top:4px;background:#c99d55;border:2px solid #fffdf8}
.ref-user-menu{display:flex;align-items:center;gap:9px;min-width:198px}.ref-user-menu .avatar{width:36px;height:36px;background:#57493e;border:2px solid #f0e4d2}.ref-user-menu .avatar-copy b{font-family:"Playfair Display",Georgia,serif;font-size:13px;color:#2b2926}.ref-user-menu .avatar-copy small{font-family:"Playfair Display",Georgia,serif;color:#8a6840;font-size:10px;margin-top:1px}.ref-user-arrow{margin-left:auto;text-decoration:none;color:#2f3132;font-size:17px}
.ref-content{max-width:none;margin:0;padding:18px 18px 36px;background:radial-gradient(circle at 94% 5%,rgba(216,195,158,.13),transparent 19%),#fbf8f1}
.ref-dashboard-head{height:92px;display:flex;justify-content:space-between;align-items:flex-start;position:relative;padding:8px 5px 0}.ref-dashboard-head:after{content:"";position:absolute;right:-18px;top:-10px;width:240px;height:130px;background:url('../assets/brand/logo-icon.png') center/contain no-repeat;opacity:.035;filter:grayscale(1);pointer-events:none}.ref-dashboard-head h1{font-family:"Playfair Display",Georgia,serif;font-size:39px;line-height:1;margin:0 0 6px;color:#282727;font-weight:600}.ref-tree-name{font-family:"Playfair Display",Georgia,serif;font-size:23px;color:#3a332e}.ref-tree-name a{font-size:15px;color:#8d6844;text-decoration:none;margin-left:8px}.ref-head-slogan{font-family:"Playfair Display",Georgia,serif;font-style:italic;color:#b18b5c;font-size:18px;margin:22px 82px 0 0;transform:rotate(-5deg);position:relative;z-index:1}
.ref-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:11px;margin-bottom:12px}.ref-stat{height:95px;border:1px solid #eee6da;border-radius:10px;background:#f8f7f1;text-decoration:none;color:#302e2a;padding:14px 13px;display:grid;grid-template-columns:47px 1fr;gap:10px;align-items:start;overflow:hidden}.ref-stat.warm{background:#fcf4e8}.ref-stat:nth-child(3){background:#f3f6ee}.ref-stat:nth-child(4){background:#f9f7f1}.ref-stat-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#edf1e8;color:#27382e;font-size:22px}.ref-stat.warm .ref-stat-icon{background:#f8e9cf;color:#a17131}.ref-stat span:nth-child(2){min-width:0}.ref-stat b{font-family:"Playfair Display",Georgia,serif;font-size:22px;line-height:1;display:block;font-weight:600}.ref-stat small{font-family:"Playfair Display",Georgia,serif;font-size:11px;color:#565049;display:block;margin-top:2px}.ref-stat em{font-family:"Playfair Display",Georgia,serif;font-size:9px;color:#4e604f;display:block;margin-top:10px;font-style:normal;white-space:nowrap}.ref-stat.warm em{color:#9b6d31}.ref-storage-bar{height:5px;border-radius:8px;background:#eee8de;margin:7px 0 0;width:76px;overflow:hidden}.ref-storage-bar i{display:block;height:100%;background:#243e33;border-radius:8px}
.ref-main-grid{display:grid;grid-template-columns:minmax(0,2.05fr) minmax(360px,1fr);gap:12px;margin-bottom:12px}.ref-card{border:1px solid #e5ddd1;border-radius:11px;background:#fffdf8;box-shadow:0 2px 8px rgba(54,47,39,.025)}.ref-tree-card{height:410px;position:relative;overflow:hidden;padding:13px 15px}.ref-card-head{height:48px;display:flex;justify-content:space-between;align-items:flex-start}.ref-card-title{display:flex;gap:9px;align-items:flex-start}.ref-card-title img{width:38px;height:38px;object-fit:contain}.ref-card-title h2{font-family:"Playfair Display",Georgia,serif;font-size:20px;line-height:1;margin:2px 0;color:#2c2925}.ref-card-title p{font-family:"Playfair Display",Georgia,serif;font-size:14px;margin:3px 0 0;color:#4d443c}.ref-card-title small{font-family:"Playfair Display",Georgia,serif;font-size:9px;color:#8b8278}.ref-tree-controls{display:flex;align-items:center;gap:7px}.ref-tree-controls button,.ref-tree-controls>a{height:32px;border:1px solid #e0d8cd;border-radius:7px;background:#fffdf9;color:#3e3a35;font-family:"Playfair Display",Georgia,serif;font-size:9px;text-decoration:none;display:flex;align-items:center;justify-content:center;padding:0 9px;cursor:pointer}.ref-tree-controls>a:not(.open-tree){width:32px;padding:0;font-size:14px}.ref-tree-controls .open-tree{background:#2f3233;color:#fff;border-color:#2f3233;padding:0 15px}
.ref-tree-stage{height:328px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding-top:5px}.ref-tree-watermark{position:absolute;width:500px;height:270px;left:50%;top:35px;transform:translateX(-50%);background:url('../assets/brand/logo-icon.png') center/contain no-repeat;opacity:.038;filter:grayscale(1);pointer-events:none}.ref-tree-row{display:flex;align-items:center;justify-content:center;position:relative;z-index:3}.ref-tree-row.row1{gap:6px}.ref-tree-row.row2{gap:6px;margin-top:0}.ref-tree-row.row3{gap:6px;margin-top:0}.ref-tree-person{width:165px;height:56px;border:1px solid #d9cdbd;border-radius:8px;background:#fffdf8;text-decoration:none;color:#39342f;display:grid;grid-template-columns:44px 1fr;grid-template-rows:28px 18px;padding:6px 8px;box-shadow:0 2px 6px rgba(75,57,37,.025);position:relative}.ref-tree-person i{grid-row:1/3;width:39px;height:39px;border-radius:50%;overflow:hidden;background:#e3d7c4;border:2px solid #fff;outline:1px solid #c8b79e;display:grid;place-items:center;color:#584b3f;font-family:"Playfair Display",serif;font-size:11px;font-style:normal}.ref-tree-person i img{width:100%;height:100%;object-fit:cover;filter:sepia(.18) saturate(.7)}.ref-tree-person b{font-family:"Playfair Display",Georgia,serif;font-size:10px;align-self:end;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ref-tree-person small{font-family:"Playfair Display",Georgia,serif;font-size:8px;color:#8a8074}.ref-tree-person.active{background:linear-gradient(180deg,#393d3e,#252829);border-color:#343839;color:#fff;box-shadow:0 5px 13px rgba(44,47,51,.18)}.ref-tree-person.active small{color:#ddd7cf}.ref-marriage{width:21px;height:20px;display:grid;place-items:center;color:#b17d38;font-size:20px;line-height:1}.ref-connector{height:27px;width:1px;background:#8d704e;position:relative;z-index:1}.ref-connector:before{content:"";position:absolute;top:0;left:50%;transform:translateX(-50%);height:1px;background:#8d704e}.ref-connector.c1:before{width:126px}.ref-connector.c2:before{width:200px}.ref-connector.c3:before{width:300px}.ref-tree-children{height:52px;display:flex;gap:9px;align-items:center;justify-content:center;position:relative;z-index:2}.ref-tree-children a,.ref-tree-children>span{width:43px;height:43px;border-radius:50%;display:grid;place-items:center;border:1px solid #bfae98;background:#eadfce;text-decoration:none;color:#5a4a3b;font-family:"Playfair Display",serif;font-size:10px;overflow:hidden}.ref-tree-children img{width:100%;height:100%;object-fit:cover;filter:sepia(.15)}.ref-tree-children .more{background:#e5dccd}.ref-tree-children .plus{border-style:dashed;background:#fffdf9;font-size:18px}.ref-zoom{position:absolute;left:16px;bottom:14px;display:flex}.ref-zoom button,.ref-zoom a{width:34px;height:28px;border:1px solid #ddd5ca;background:#fffdf9;color:#35322e;text-decoration:none;display:grid;place-items:center;font-size:16px}.ref-zoom button:first-child{border-radius:6px 0 0 6px}.ref-zoom a{border-radius:0 6px 6px 0}.ref-empty-tree{text-align:center;margin-top:40px;position:relative;z-index:2}.ref-empty-tree img{width:55px}.ref-empty-tree h3{font-family:"Playfair Display",serif;margin:7px 0}.ref-empty-tree p{font-size:10px;color:#80756a}.ref-empty-tree a{color:#fff;background:#303435;padding:8px 13px;border-radius:7px;text-decoration:none;font-size:10px}
.ref-person-card{height:410px;padding:13px 14px;overflow:hidden}.ref-person-head{height:116px;display:grid;grid-template-columns:92px 1fr 30px;gap:10px;align-items:start}.ref-person-photo{width:92px;height:104px;border-radius:8px;overflow:hidden;background:#d7c4a7}.ref-person-photo img{width:100%;height:100%;object-fit:cover;filter:sepia(.2) saturate(.7)}.ref-person-name h2{font-family:"Playfair Display",Georgia,serif;font-size:19px;margin:5px 0 2px;color:#2d2925}.ref-person-name>p{font-family:"Playfair Display",Georgia,serif;font-size:12px;margin:0 0 13px;color:#554d45}.ref-person-name>div{display:grid;grid-template-columns:1fr 1fr;gap:8px;color:#7b7064;font-size:9px;line-height:1.25}.ref-more{width:30px;height:30px;border:1px solid #ded7cd;border-radius:7px;background:#fffdf9;cursor:pointer;color:#666057}.ref-person-tabs{height:39px;display:flex;gap:19px;border-bottom:1px solid #e9e1d7;align-items:flex-end;overflow:hidden}.ref-person-tabs>span{height:38px;display:flex;align-items:center;font-family:"Playfair Display",Georgia,serif;font-size:9px;color:#6f675e;white-space:nowrap;gap:4px}.ref-person-tabs>span.active{border-bottom:2px solid #26332c;color:#26332c;font-weight:700}.ref-person-tabs i{font-style:normal;background:#f1ede7;padding:1px 5px;border-radius:8px;font-size:8px}.ref-family-grid{display:grid;grid-template-columns:1fr 1fr;height:120px;padding-top:9px}.ref-family-grid>div{padding-right:9px}.ref-family-grid>div+div{border-left:1px solid #ece3d8;padding-left:13px}.ref-family-grid h3,.ref-children h3{font-family:"Playfair Display",Georgia,serif;font-size:11px;margin:0 0 8px;color:#3b342e}.ref-family-grid a{display:grid;grid-template-columns:35px 1fr;grid-template-rows:17px 16px;text-decoration:none;color:#3a342f;margin:5px 0;align-items:center}.mini-face{grid-row:1/3;width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:#e5d9c8;border:1px solid #cdbca4;color:#5c4b3d;font-family:"Playfair Display",serif;font-size:9px}.mini-face.large{width:47px;height:47px}.ref-family-grid a b,.ref-children a b{font-family:"Playfair Display",Georgia,serif;font-size:9px}.ref-family-grid a small,.ref-children a small{font-family:"Playfair Display",Georgia,serif;font-size:8px;color:#877d72}.ref-family-grid>div>small,.ref-children>div>small{font-size:9px;color:#999086}.ref-children{height:70px;border-top:1px solid #eee6dc;padding-top:8px}.ref-children>div{display:flex;gap:12px}.ref-children a{width:31%;display:grid;grid-template-columns:30px 1fr;grid-template-rows:15px 15px;text-decoration:none;color:#39332f}.ref-children .mini-face{width:27px;height:27px}.ref-person-actions{height:39px;display:grid;grid-template-columns:67px 74px 65px 1fr;gap:7px;align-items:end}.ref-person-actions>a{height:29px;border:1px solid #ded5c9;border-radius:7px;background:#fffdf9;color:#37332f;text-decoration:none;display:flex;align-items:center;justify-content:center;font-family:"Playfair Display",Georgia,serif;font-size:9px}.ref-person-actions>a.profile{justify-self:end;padding:0 12px}.ref-person-empty{text-align:center;padding-top:90px}.ref-person-empty img{width:60px}.ref-person-empty h3{font-family:"Playfair Display",serif}.ref-person-empty a{color:#fff;background:#303435;padding:8px 13px;border-radius:7px;text-decoration:none}
.ref-bottom-grid{display:grid;grid-template-columns:1fr 1.02fr;gap:12px}.ref-module{height:245px;padding:12px 13px}.ref-module>header{height:49px;display:flex;justify-content:space-between;align-items:flex-start}.ref-module>header>div{display:flex;gap:10px}.module-icon{width:38px;height:38px;border-radius:50%;background:#f7ead4;color:#a26e2e;display:grid;place-items:center;font-size:19px}.ref-module h2{font-family:"Playfair Display",Georgia,serif;font-size:19px;margin:0;color:#2f2b27}.ref-module p{font-family:"Playfair Display",Georgia,serif;font-size:9px;margin:2px 0;color:#7f766c}.ref-module>header>a{font-family:"Playfair Display",Georgia,serif;font-size:9px;color:#3a4c41;text-decoration:none;margin-top:4px}.ref-ai-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;height:173px}.ref-ai-cards>a,.ref-product-cards>a{position:relative;border:1px solid #e6ddd2;border-radius:8px;background:#fffdf9;text-decoration:none;color:#332f2b;padding:7px;min-width:0}.ref-thumb{height:65px;border-radius:6px;overflow:hidden;position:relative;background:#eee4d5}.ref-thumb img{width:100%;height:100%;object-fit:cover}.ref-thumb em{position:absolute;right:3px;top:3px;background:#f2d091;color:#4e3820;border-radius:5px;padding:3px 6px;font-size:7px;font-style:normal;font-weight:700}.ref-thumb em.free{background:#dfead9;color:#35533b}.ref-ai-cards b,.ref-product-cards b{font-family:"Playfair Display",Georgia,serif;font-size:11px;display:block;margin-top:5px}.ref-ai-cards small,.ref-product-cards small{display:block;font-family:"Playfair Display",Georgia,serif;font-size:8px;color:#847a6f;line-height:1.25;height:30px;margin-top:1px}.ref-ai-cards>a>span,.ref-product-cards>a>span{height:25px;border:1px solid #c9bdac;border-radius:7px;display:flex;align-items:center;justify-content:center;font-family:"Playfair Display",Georgia,serif;font-size:8px;color:#3c3934;background:#fffdf9}.ref-product-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;height:173px}.ref-product-cards>a>img,.locked-pic{width:100%;height:65px;object-fit:cover;border-radius:6px}.locked-pic{position:relative;overflow:hidden}.locked-pic img{width:100%;height:100%;object-fit:cover;filter:blur(2px)}.locked-pic em{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#efca84;color:#503922;font-size:7px;font-style:normal;padding:4px 7px;border-radius:5px;white-space:nowrap}.ref-product-cards .disabled{background:#f1eee8;color:#a09a91;border-color:#f1eee8}
@media(max-width:1380px){.ref-stats{grid-template-columns:repeat(3,1fr)}.ref-main-grid,.ref-bottom-grid{grid-template-columns:1fr}.ref-tree-card,.ref-person-card{height:auto;min-height:410px}.ref-person-card{min-height:390px}.ref-bottom-grid{gap:12px}.ref-module{height:auto}.ref-ai-cards,.ref-product-cards{height:auto}.ref-topbar{grid-template-columns:minmax(330px,1fr) auto}.ref-top-heritage{display:none}}
@media(max-width:920px){.ref-shell{grid-template-columns:1fr}.ref-sidebar{position:fixed;left:-250px;top:0;height:100vh;transition:left .2s}.ref-sidebar.open{left:0}.ref-topbar{display:flex;height:64px;padding:0 12px}.ref-top-actions{margin-left:auto}.ref-user-menu .avatar-copy{display:none}.ref-content{padding:14px}.ref-dashboard-head{height:auto;margin-bottom:13px}.ref-head-slogan{display:none}.ref-stats{grid-template-columns:repeat(2,1fr)}.ref-tree-controls button{display:none}.ref-ai-cards{grid-template-columns:1fr}.ref-product-cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.ref-stats{grid-template-columns:1fr}.ref-person-tabs{gap:10px}.ref-product-cards{grid-template-columns:1fr}.ref-tree-stage{overflow:auto;align-items:flex-start}.ref-tree-row{min-width:700px}.ref-connector{margin-left:350px}.ref-tree-children{min-width:700px}.ref-dashboard-head h1{font-size:31px}}
.ref-topbar:before{content:none!important;display:none!important}
.ref-sidebar .nav-label,.ref-sidebar .storage{display:none!important}
.ref-avatar{padding:0;overflow:hidden;background:#5a4d42}.ref-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.ref-tree-watermark{background-image:url('../assets/brand/logo-icon.png')!important}

/* v0.0.8 — screenshot-free dashboard + functional search/settings */
.public-app-body{margin:0;background:#f7f2e9;color:#2d2925;font-family:"Source Sans 3",Arial,sans-serif}
.ref-brand-live{height:88px!important;padding:14px 17px!important;display:flex!important;align-items:center!important;gap:10px!important;text-decoration:none!important;border-bottom:1px solid rgba(236,220,192,.25)}
.ref-brand-live img{width:44px!important;height:44px!important;object-fit:contain!important;flex:0 0 auto}
.ref-brand-live strong{font-family:"Playfair Display",Georgia,serif;color:#fff;font-size:25px;letter-spacing:-.02em;font-weight:600}
.public-ref-shell .ref-sidebar{z-index:50}
.public-ref-content{min-height:calc(100vh - 70px)}
.public-login{display:flex;align-items:center;gap:9px;text-decoration:none;color:#2d2925}
.public-login:hover .avatar-copy b{text-decoration:underline}
.public-search input[name="preview_q"]{cursor:text}
.public-tree-stage .ref-tree-row{position:relative;z-index:3}
.public-tree-stage .ref-tree-person{cursor:default}
.public-tree-stage .ref-tree-children span{box-shadow:0 2px 7px rgba(75,57,37,.04)}
.public-cta-strip{margin-top:12px;border:1px solid #e5d9c9;background:linear-gradient(120deg,#fffdf8,#f5ead9);border-radius:10px;min-height:78px;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:0 4px 18px rgba(62,48,33,.035)}
.public-cta-strip>div{display:flex;align-items:center;gap:12px}.public-cta-strip img{width:45px;height:45px}.public-cta-strip b,.public-cta-strip small{display:block}.public-cta-strip b{font-family:"Playfair Display",Georgia,serif;font-size:16px}.public-cta-strip small{font-size:10px;color:#7d746a;margin-top:3px}
.search-page-panel{padding:14px}.search-page-form{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px}.search-page-form>span{font-size:22px;color:#817466}.search-page-form input{height:44px;border:1px solid #ded4c5;border-radius:9px;background:#fffdf9;padding:0 13px;outline:none;font:14px "Source Sans 3",sans-serif}.search-page-form input:focus{border-color:#bda77e;box-shadow:0 0 0 3px rgba(201,169,110,.12)}
.search-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}.search-hit{text-decoration:none;color:inherit}.search-hit:hover{background:#fbf6ed}.search-result-grid .panel{min-height:220px}
.settings-roadmap{display:grid;gap:10px}.settings-roadmap>div{border:1px solid #e8dfd3;border-radius:10px;background:#fffaf3;padding:14px}.settings-roadmap b{font-family:"Playfair Display",Georgia,serif;font-size:13px}.settings-roadmap p{margin:4px 0 0;color:#7a7167;font-size:10px;line-height:1.45}
@media(max-width:900px){.public-cta-strip{align-items:flex-start;flex-direction:column}.search-result-grid{grid-template-columns:1fr}.ref-brand-live strong{font-size:22px}}
.import-export-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.export-zone{text-align:center;min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center}.export-zone p{max-width:520px;color:#746d63;line-height:1.55}.export-zone small{display:block;margin-top:12px;color:#8e857a;font-size:10px}@media(max-width:850px){.import-export-grid{grid-template-columns:1fr}}

/* v0.1.1 — funkčné genealogické obrazovky: osoby, profil, rodiny, strom */
.genealogy-head h1{font-size:38px;margin-bottom:5px}.genealogy-head p{max-width:760px}.person-filter-panel{padding:15px;margin-bottom:14px}.person-filter-form{display:grid;grid-template-columns:minmax(220px,1.6fr) repeat(3,minmax(130px,.55fr)) auto auto;gap:10px;align-items:end}.person-filter-form label{display:grid;gap:5px}.person-filter-form label>span{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#8a7966;font-weight:800}.person-filter-form input,.person-filter-form select{height:39px;border:1px solid #ddd1c1;border-radius:8px;background:#fffdf9;padding:0 10px;color:#3c342d;outline:none}.surname-index{border-top:1px solid #eee4d8;margin-top:13px;padding-top:10px;display:flex;gap:7px;align-items:center;flex-wrap:wrap;font-size:9px;color:#897c6c}.surname-index b{width:23px;height:23px;display:grid;place-items:center;border:1px solid #e1d5c5;border-radius:50%;font-family:"Playfair Display",Georgia,serif;color:#584839;background:#fff}.person-page-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}.person-page-stats>div{border:1px solid #e8dece;background:#fffdf8;border-radius:11px;padding:12px 14px}.person-page-stats b{font-family:"Playfair Display",Georgia,serif;font-size:21px}.person-page-stats span{display:block;color:#867a6b;font-size:9px;margin-top:2px}.people-catalog{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}.people-catalog>.panel{grid-column:1/-1}.gene-person-card{position:relative;display:grid;grid-template-columns:76px 1fr 20px;gap:12px;align-items:center;min-height:112px;padding:13px;border:1px solid #e5dacb;border-radius:12px;background:#fffdf9;text-decoration:none;color:#302b27;box-shadow:0 6px 18px rgba(67,49,32,.035);transition:.15s ease}.gene-person-card:hover{transform:translateY(-2px);border-color:#cbb899;box-shadow:0 12px 26px rgba(67,49,32,.08)}.gene-person-photo{width:72px;height:86px;border-radius:9px;overflow:hidden;background:linear-gradient(180deg,#ddcfba,#b9a183);display:grid;place-items:center;font-family:"Playfair Display",Georgia,serif;font-size:19px;color:#4e3a2e;border:1px solid #cfbea5}.gene-person-photo img{width:100%;height:100%;object-fit:cover;filter:saturate(.72) sepia(.08)}.gene-person-title{display:flex;align-items:center;gap:8px}.gene-person-title h3{font-size:17px;margin:0}.privacy-dot{width:7px;height:7px;border-radius:50%;background:#a79b8d}.privacy-dot.public{background:#7f9c7b}.privacy-dot.family{background:#c9a96e}.privacy-dot.private{background:#8a6d6d}.gene-person-copy>small{display:block;color:#8b7d6f;font-size:9px;margin-top:2px}.gene-person-copy p{margin:7px 0 2px;font-size:11px;color:#5e554c}.gene-person-copy p b{font-family:"Playfair Display",Georgia,serif}.gene-person-copy em{font-style:normal;font-size:9px;color:#8c7963}.gene-person-meta{display:flex;gap:8px;margin-top:7px}.gene-person-meta span{font-size:8px;color:#85796c;background:#f7f2e9;border-radius:999px;padding:3px 6px}.card-arrow{color:#9b8b79;font-size:15px}.genealogy-form{margin-top:2px}.genealogy-form .panel-title p{font-size:10px;color:#807468;margin:4px 0 0}
.gene-profile-hero{display:grid;grid-template-columns:118px 1fr auto;gap:18px;align-items:center;padding:20px 22px;background:linear-gradient(110deg,#fffdf8,#f7efe3);overflow:hidden;position:relative}.gene-profile-hero:after{content:"";position:absolute;right:-25px;top:-55px;width:240px;height:240px;background:url('../assets/brand/logo-icon.png') center/contain no-repeat;opacity:.035;pointer-events:none}.gene-profile-portrait{width:108px;height:126px;border-radius:10px;overflow:hidden;background:linear-gradient(180deg,#443a32,#292d31);border:4px solid #f0e3cd;outline:1px solid #cbb798;display:grid;place-items:center;color:#f4e4c8;font:700 29px "Playfair Display",Georgia,serif;z-index:1}.gene-profile-portrait img{width:100%;height:100%;object-fit:cover;filter:saturate(.72) sepia(.08)}.gene-profile-identity{z-index:1}.gene-profile-identity h1{font-size:38px;margin:2px 0 3px}.life-years{font-family:"Playfair Display",Georgia,serif;font-size:15px;color:#695b4c;margin:0}.profile-facts{display:flex;gap:8px;flex-wrap:wrap;margin-top:11px}.profile-facts span{font-size:9px;background:#fffdf8;border:1px solid #e2d7c8;border-radius:999px;padding:5px 8px;color:#716456}.profile-hero-actions{display:flex;gap:8px;z-index:1}.profile-tabs{padding:0 16px;display:flex;gap:22px;align-items:center;min-height:52px;margin:12px 0 14px;overflow:auto}.profile-tabs a{text-decoration:none;color:#776b5e;font-size:10px;white-space:nowrap;padding:17px 0 14px;border-bottom:2px solid transparent}.profile-tabs a:hover{color:#2c2f33;border-bottom-color:#c9a96e}.profile-tabs b{font-size:8px;background:#f0ebe4;border-radius:999px;padding:2px 5px;margin-left:3px}.gene-profile-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:14px;margin-bottom:14px}.profile-data{margin:10px 0 0}.profile-data>div{display:grid;grid-template-columns:120px 1fr;gap:10px;padding:9px 0;border-bottom:1px solid #eee4d8}.profile-data dt{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#9a8c7b}.profile-data dd{margin:0;font-family:"Playfair Display",Georgia,serif;font-size:12px;color:#463a30}.profile-story{margin-top:18px;padding:14px;background:#fbf6ed;border:1px solid #eadfce;border-radius:9px}.profile-story p{margin:5px 0 0;line-height:1.65;color:#665b50;font-size:11px}.profile-story.empty p{font-style:italic;color:#8a7e70}.family-workbench{margin-bottom:14px}.family-workbench .panel-title p{font-size:10px;color:#807468;margin:4px 0 0}.family-columns{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:14px 0}.family-columns>div{border:1px solid #e8dece;border-radius:10px;background:#fffaf3;padding:11px}.family-columns h4{font:600 14px "Playfair Display",Georgia,serif;margin:0 0 8px;color:#4e3a2e}.relation-editor{border-top:1px solid #eee5da}.relation-editor:first-of-type{border-top:0}.relation-editor>summary{list-style:none;display:grid;grid-template-columns:38px 1fr auto;gap:9px;align-items:center;padding:9px 0;cursor:pointer}.relation-editor>summary::-webkit-details-marker{display:none}.relation-editor>summary b,.relation-editor>summary small{display:block}.relation-editor>summary b{font-family:"Playfair Display",Georgia,serif;font-size:11px}.relation-editor>summary small{font-size:8px;color:#8a7e70;margin-top:2px}.relation-editor>summary em{font-style:normal;color:#8b775f;font-size:8px}.relation-editor-body{padding:0 0 10px 47px}.mini-relation-form{display:grid;grid-template-columns:1fr 1fr 1.2fr auto;gap:6px;margin:7px 0}.mini-relation-form select,.mini-relation-form input{min-width:0;height:31px;border:1px solid #ddd1c1;border-radius:7px;background:#fffdf9;padding:0 7px;font-size:9px}.danger-link{border:0;background:transparent;color:#946b66;padding:0;font-size:8px;cursor:pointer}.relation-add-box{margin-top:10px}.citation-list{display:grid;gap:8px;margin-top:12px}.citation-item{display:grid;grid-template-columns:40px 1fr auto;gap:10px;align-items:start;border:1px solid #e8dfd3;background:#fffaf3;border-radius:9px;padding:10px}.citation-item b,.citation-item small{display:block}.citation-item b{font-family:"Playfair Display",Georgia,serif;font-size:11px}.citation-item small{font-size:8px;color:#887c6d}.citation-item p{font-size:9px;color:#665b50;margin:4px 0 0}.name-variant-list{display:grid;gap:7px;margin-top:12px}.name-variant{position:relative;border:1px solid #e7ddd0;border-radius:8px;padding:10px 11px;background:#fffaf3}.name-variant.primary{background:#f9f1e4;border-color:#dac5a5}.name-variant b,.name-variant small{display:block}.name-variant b{font-family:"Playfair Display",Georgia,serif;font-size:12px}.name-variant small{font-size:8px;color:#887c6d;margin-top:2px}.name-variant>span{position:absolute;right:8px;top:8px;font-size:7px;text-transform:uppercase;background:#c9a96e;color:#443220;border-radius:999px;padding:3px 6px}.genealogy-timeline .timeline-item{padding-bottom:12px}
.pedigree-shell{padding:0;overflow:hidden}.pedigree-toolbar{height:56px;padding:10px 13px;border-bottom:1px solid #e8dece;background:#fcf8f1;display:flex;align-items:center;justify-content:space-between;gap:12px}.pedigree-modes{display:flex;gap:6px}.pedigree-modes a{height:34px;display:flex;align-items:center;padding:0 11px;border:1px solid #ded2c2;border-radius:8px;background:#fffdf9;color:#6e6255;text-decoration:none;font-size:9px;font-weight:700}.pedigree-modes a.active{background:#2c2f33;color:#fff;border-color:#2c2f33}.pedigree-actions{display:flex;gap:5px}.pedigree-actions button{height:32px;min-width:34px;border:1px solid #ddd2c4;background:#fffdf9;border-radius:7px;color:#5e554c;cursor:pointer;font-size:10px}.pedigree-canvas{min-height:650px;overflow:auto;background:radial-gradient(circle at 50% 38%,rgba(255,255,255,.97),rgba(249,243,233,.96));position:relative}.pedigree-canvas:before{content:"";position:absolute;inset:80px 20%;background:url('../assets/brand/logo-icon.png') center/330px no-repeat;opacity:.035;pointer-events:none}.pedigree-inner{min-width:780px;min-height:650px;padding:40px 30px;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:transform .18s ease;transform-origin:center top}.pedigree-level{width:100%;display:flex;flex-direction:column;align-items:center;z-index:1}.generation-label{font:500 10px "Playfair Display",Georgia,serif;color:#8c775e;margin-bottom:9px}.pedigree-row{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap}.pedigree-row.compact{gap:8px}.pedigree-node{min-width:175px;max-width:220px;display:grid;grid-template-columns:44px 1fr;gap:9px;align-items:center;padding:9px 10px;border:1px solid #dcd0bf;border-radius:9px;background:#fffdf9;color:#342f2a;text-decoration:none;box-shadow:0 7px 18px rgba(68,50,32,.055)}.pedigree-node:hover{border-color:#bba47f;box-shadow:0 11px 24px rgba(68,50,32,.09)}.pedigree-photo{width:42px;height:48px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#e8dbc7;border:2px solid #fff;outline:1px solid #cdb99d;color:#5c4937;font:700 10px "Playfair Display",Georgia,serif}.pedigree-photo img{width:100%;height:100%;object-fit:cover;filter:saturate(.72) sepia(.08)}.pedigree-node b,.pedigree-node small,.pedigree-node em{display:block}.pedigree-node b{font:600 11px "Playfair Display",Georgia,serif}.pedigree-node small{font-size:8px;color:#82776b;margin-top:2px}.pedigree-node em{font-style:normal;font-size:7px;color:#9b8a77;margin-top:2px}.pedigree-node.focus-node{background:linear-gradient(180deg,#3a3f44,#25292e);color:#fff;border-color:#30363c;transform:scale(1.04)}.pedigree-node.focus-node small,.pedigree-node.focus-node em{color:#ddd5ca}.pedigree-node.focus-node .pedigree-photo{background:#f0e2ca;color:#4e3a2e;outline-color:#c9a96e}.pedigree-node.partner-node{background:#fbf4e8}.pedigree-node.small-node{min-width:145px;grid-template-columns:36px 1fr;padding:7px 8px}.pedigree-node.small-node .pedigree-photo{width:34px;height:38px}.partner-link{font:24px "Playfair Display",Georgia,serif;color:#b48b50}.pedigree-connector{height:34px;color:#af8e60;font-size:30px;line-height:34px}.pedigree-placeholder{min-width:150px;padding:13px;border:1px dashed #cab9a3;border-radius:9px;background:#fffdf9;text-decoration:none;text-align:center;color:#857665;font-size:9px}.pedigree-placeholder.round{min-width:auto;width:42px;height:42px;border-radius:50%;padding:0;display:grid;place-items:center;font-size:0}.pedigree-placeholder.round:after{content:"＋";font-size:16px}.pedigree-empty{font-size:9px;color:#938677;font-style:italic}.pedigree-foot{min-height:42px;border-top:1px solid #e8dece;background:#fbf6ed;padding:9px 14px;display:flex;justify-content:space-between;gap:20px;color:#897d70;font-size:8px}.genealogy-tree-picker select{min-width:290px}
.family-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.family-card{padding:16px}.family-couple{display:grid;grid-template-columns:1fr 42px 1fr;gap:9px;align-items:center}.family-couple>a{text-decoration:none;color:#302b27;text-align:center;display:flex;flex-direction:column;align-items:center}.family-photo{width:72px;height:82px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#e6d8c4;border:3px solid #fff;outline:1px solid #cdb99d;color:#594638;font:700 14px "Playfair Display",Georgia,serif}.family-photo img{width:100%;height:100%;object-fit:cover;filter:saturate(.72) sepia(.08)}.family-couple b{font:600 13px "Playfair Display",Georgia,serif;margin-top:7px}.family-couple small{font-size:8px;color:#887b6d;margin-top:2px}.family-union-symbol{font:28px "Playfair Display",Georgia,serif;color:#b48b50;text-align:center}.family-card-meta{display:flex;justify-content:center;gap:8px;margin:12px 0;border-top:1px solid #eee4d8;border-bottom:1px solid #eee4d8;padding:8px 0;font-size:8px;color:#7e7264}.family-children h4{font:600 12px "Playfair Display",Georgia,serif;margin:0 0 8px}.family-children h4 span{font:700 8px "Source Sans 3",sans-serif;background:#eee8df;border-radius:999px;padding:2px 5px}.family-children p{font-size:9px;color:#8b7f70}.family-children>div{display:flex;gap:7px;flex-wrap:wrap}.family-children a{display:flex;align-items:center;gap:5px;text-decoration:none;color:#51463b;font-size:9px;background:#fbf6ed;border:1px solid #eadfce;border-radius:999px;padding:3px 7px 3px 3px}.family-card-actions{display:flex;justify-content:space-between;align-items:center;margin-top:12px}.family-card-actions .text-link{font-size:8px}
@media(max-width:1200px){.person-filter-form{grid-template-columns:repeat(3,1fr)}.person-filter-form .grow{grid-column:1/-1}.people-catalog{grid-template-columns:repeat(2,1fr)}.family-columns{grid-template-columns:1fr}.gene-profile-grid{grid-template-columns:1fr}.family-card-grid{grid-template-columns:1fr}}
@media(max-width:760px){.person-filter-form{grid-template-columns:1fr}.person-filter-form .grow{grid-column:auto}.person-page-stats{grid-template-columns:repeat(2,1fr)}.people-catalog{grid-template-columns:1fr}.gene-profile-hero{grid-template-columns:84px 1fr}.gene-profile-portrait{width:76px;height:90px}.gene-profile-identity h1{font-size:29px}.profile-hero-actions{grid-column:1/-1}.profile-tabs{gap:14px}.mini-relation-form{grid-template-columns:1fr}.pedigree-toolbar{height:auto;align-items:flex-start;flex-direction:column}.pedigree-modes{overflow:auto;width:100%}.family-card-grid{grid-template-columns:1fr}}

/* v0.1.2 — Import Center + profile photo */
.import-upload-form{max-width:470px;margin:18px auto 0;text-align:left}.import-review{margin-top:18px}.import-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:18px 0}.import-stats>div{padding:16px;border:1px solid #e7dccd;background:#fbf7f0;border-radius:12px}.import-stats b,.import-stats span{display:block}.import-stats b{font-family:"Playfair Display",Georgia,serif;font-size:25px;color:#2c2f33}.import-stats span{font-size:10px;color:#7a7167;margin-top:3px}.import-preview-table{border:1px solid #e7dccd;border-radius:12px;overflow:hidden;margin:16px 0}.import-preview-head,.import-preview-row{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:10px;align-items:center;padding:10px 13px}.import-preview-head{background:#f4ecdf;font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#8a7c6b}.import-preview-row{border-top:1px solid #eee4d8;font-size:10px}.import-preview-row b{font-size:11px}.import-preview-row .dup{font-style:normal;background:#f5e6ce;color:#8a632c;padding:4px 6px;border-radius:999px}.import-commit{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:18px;padding-top:16px;border-top:1px solid #e7dccd}.check-row{display:flex;gap:10px;align-items:flex-start}.check-row input{margin-top:4px}.check-row span b,.check-row span small{display:block}.check-row span b{font-size:11px}.check-row span small{font-size:9px;color:#7b7268;margin-top:3px;max-width:540px}.import-result{margin-top:16px;padding:14px 16px;border-radius:12px;background:#edf2ea;border:1px solid #d8e3d3}.import-result b{font-family:"Playfair Display",Georgia,serif;font-size:18px}.import-result p{margin:5px 0 0;font-size:10px;color:#5d6659}.import-history-row{text-decoration:none;color:inherit}.workflow .active-step{background:#2c2f33;color:#fff;border-color:#2c2f33}.media-tile-wrap{display:flex;flex-direction:column;min-width:0}.media-primary-form{margin-top:5px}.media-primary-form .btn{width:100%;font-size:9px;padding:7px 8px}.ghost-card{display:block;text-decoration:none}.ghost-card:hover{border-color:#c9a96e;color:#6f5432;background:#fffaf1}
@media(max-width:800px){.import-stats{grid-template-columns:repeat(2,1fr)}.import-preview-head,.import-preview-row{grid-template-columns:1.6fr .8fr .8fr}.import-preview-head span:last-child,.import-preview-row span:last-child{display:none}.import-commit{align-items:stretch;flex-direction:column}}

/* v0.1.6 — jednotná značka + rýchle pridávanie priamo v rodostrome */
.auth-brand{background:linear-gradient(150deg,#30353a,#1f2327)!important;color:#fff}
.auth-brand:after{background:url('../assets/brand/logo-icon.png') center/contain no-repeat!important;opacity:.07!important}
.auth-full-logo{display:block;width:min(360px,100%);margin:0 0 28px;padding:12px 14px;border-radius:15px;background:#fbf7ef;border:1px solid rgba(201,169,110,.35);box-shadow:0 12px 28px rgba(0,0,0,.12)}
.auth-full-logo img{display:block;width:100%;height:auto}
.auth-brand .eyebrow{color:#d9c39c!important}.auth-brand p{color:#ddd5ca!important}.auth-brand h1{font-family:"Playfair Display",Georgia,serif!important}
.ref-brand-live{height:92px!important;padding:12px 13px!important;display:flex!important;align-items:center!important;justify-content:center!important;border-bottom:1px solid rgba(236,220,192,.25)}
.sidebar-logo-panel{display:flex;align-items:center;justify-content:center;width:100%;height:62px;padding:7px 9px;background:#f9f4ea;border:1px solid rgba(201,169,110,.3);border-radius:12px;box-shadow:0 8px 20px rgba(0,0,0,.12)}
.sidebar-logo-panel img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important}
.quick-relative-overlay{position:fixed;inset:0;z-index:120;background:rgba(28,31,34,.56);backdrop-filter:blur(7px);display:grid;place-items:center;padding:24px}
.quick-relative-card{position:relative;width:min(620px,100%);max-height:min(86vh,780px);overflow:auto;background:#fffdf8;border:1px solid #e2d6c5;border-radius:20px;padding:26px;box-shadow:0 30px 90px rgba(22,24,26,.3)}
.quick-relative-close{position:absolute;right:16px;top:14px;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#f3ede4;border:1px solid #e0d4c4;color:#544a40;text-decoration:none;font-size:24px;line-height:1}
.quick-relative-brand{width:180px;margin-bottom:14px}.quick-relative-brand img{width:100%;height:auto;display:block}
.quick-relative-card h2{font:700 30px "Playfair Display",Georgia,serif;margin:5px 0 6px;color:#25292d}.quick-relative-card>p{margin:0 0 15px;color:#756b60;line-height:1.5}
.quick-relative-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:6px}
@media(max-width:680px){.auth-full-logo{width:100%;max-width:300px}.quick-relative-overlay{padding:12px}.quick-relative-card{padding:20px 16px}.quick-relative-actions{flex-direction:column-reverse}.quick-relative-actions .btn{width:100%}.sidebar-logo-panel{height:54px}}

/* v0.1.7 exact master logo overrides */
.auth-full-logo{display:block;width:min(360px,100%);margin:0 0 28px;padding:0!important;border-radius:15px;background:#f9f4ea!important;border:1px solid rgba(201,169,110,.28);overflow:hidden;box-shadow:0 12px 28px rgba(0,0,0,.12)}
.auth-full-logo img{display:block;width:100%;height:auto;object-fit:contain}
.sidebar-logo-panel{display:flex;align-items:center;justify-content:center;width:100%;height:62px;padding:0!important;background:#f9f4ea;border:1px solid rgba(201,169,110,.3);border-radius:12px;overflow:hidden;box-shadow:0 8px 20px rgba(0,0,0,.12)}
.sidebar-logo-panel img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important}
.quick-relative-brand{width:210px;margin-bottom:14px;background:#f9f4ea;border-radius:10px;overflow:hidden}
.quick-relative-brand img{display:block;width:100%;height:auto}
@media(max-width:680px){.auth-full-logo{max-width:300px}.sidebar-logo-panel{height:54px}}

/* v0.1.8 — pracovný panel priamo v rodostrome */
.tree-workspace-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:14px;align-items:start}
.tree-workspace-grid .pedigree-shell{min-width:0;margin:0}
.pedigree-node.selected-node{border-color:#b98a47;box-shadow:0 0 0 3px rgba(201,169,110,.16),0 10px 24px rgba(63,47,31,.08)}
.tree-inspector{position:sticky;top:92px;padding:16px;max-height:calc(100vh - 112px);overflow:auto}
.tree-inspector-head{display:grid;grid-template-columns:62px 1fr 30px;gap:11px;align-items:center;padding-bottom:12px;border-bottom:1px solid #eadfce}
.tree-inspector-photo{width:58px;height:68px;border:1px solid #ccb99c;border-radius:9px;overflow:hidden;background:linear-gradient(180deg,#dfd0ba,#baa17f);display:grid;place-items:center;color:#4e3a2e;font:700 17px "Playfair Display",Georgia,serif}
.tree-inspector-photo img{width:100%;height:100%;object-fit:cover;filter:saturate(.78) sepia(.06)}
.tree-inspector-head h2{font:600 19px "Playfair Display",Georgia,serif;margin:2px 0 1px;color:#342c25}
.tree-inspector-head p{margin:0;color:#887a69;font-size:10px}
.tree-inspector-open{width:28px;height:28px;display:grid;place-items:center;border:1px solid #e1d6c7;border-radius:8px;color:#705c43;background:#fffdf9}
.tree-inspector-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:12px 0}
.tree-inspector-stats span{background:#faf5ec;border:1px solid #eee3d5;border-radius:8px;padding:7px 4px;text-align:center;font-size:7px;color:#86796a}
.tree-inspector-stats b{display:block;font:600 14px "Playfair Display",Georgia,serif;color:#45382e;margin-bottom:1px}
.tree-inspector-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:12px}
.tree-inspector-actions a{min-height:34px;display:flex;align-items:center;justify-content:center;border:1px solid #dfd2c2;border-radius:8px;background:#fffaf2;color:#5f4d3a;font-size:9px;font-weight:700}
.tree-inspector-actions a:hover{border-color:#c7a978;background:#f7eddd}
.tree-inspector-section{border-top:1px solid #eadfce;padding:10px 0}
.tree-inspector-section summary{cursor:pointer;list-style:none;font:600 13px "Playfair Display",Georgia,serif;color:#41352c;display:flex;justify-content:space-between;align-items:center}
.tree-inspector-section summary::-webkit-details-marker{display:none}.tree-inspector-section summary:after{content:'⌄';font-family:Arial;color:#9a8568}.tree-inspector-section[open] summary:after{content:'⌃'}
.tree-inspector-section summary i{font:700 8px "Source Sans 3",Arial,sans-serif;background:#f2eadf;border-radius:999px;padding:2px 5px;margin-left:auto;margin-right:7px;color:#7c6b58}
.tree-inspector .compact-form{margin-top:10px}.tree-inspector .form-grid{gap:7px}.tree-inspector label>span{font-size:8px}.tree-inspector input,.tree-inspector select,.tree-inspector textarea{font-size:10px;border-radius:7px}.tree-inspector textarea{resize:vertical}
.tree-event-list{display:grid;gap:5px;margin:9px 0}.tree-event-list>div{border-left:2px solid #c9a96e;padding:4px 0 4px 8px}.tree-event-list b,.tree-event-list span{display:block}.tree-event-list b{font-size:9px;color:#43372d}.tree-event-list span{font-size:8px;color:#8a7d6f;margin-top:1px}.tree-event-list p{font-size:9px;color:#8a7d6f}
.tree-inspector-links{border-top:1px solid #eadfce;padding-top:10px;display:grid;grid-template-columns:1fr 1fr;gap:6px}.tree-inspector-links a{min-height:34px;display:flex;align-items:center;justify-content:space-between;border:1px solid #e5dacb;border-radius:8px;padding:0 9px;background:#fffdf9;font-size:9px;color:#5d4d3d}.tree-inspector-links a:last-child{grid-column:1/-1;background:#2c2f33;color:#fff;justify-content:center}.tree-inspector-links b{background:#f1e9dd;color:#6f5d4a;border-radius:999px;padding:2px 5px;font-size:7px}
@media(max-width:1180px){.tree-workspace-grid{grid-template-columns:1fr}.tree-inspector{position:relative;top:auto;max-height:none}}

/* v0.2.0 — funkčné centrá */
.research-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:14px;align-items:start}
.research-board{display:grid;grid-template-columns:repeat(4,minmax(210px,1fr));gap:10px;overflow:auto;padding-bottom:4px}
.research-column{border:1px solid #e6dccf;background:#f8f3eb;border-radius:12px;min-height:420px;padding:10px}
.research-column>header{display:flex;align-items:center;justify-content:space-between;padding:2px 2px 9px;border-bottom:1px solid #e8ddd0;margin-bottom:9px}
.research-column>header h3{margin:0;font:600 14px "Playfair Display",Georgia,serif}.research-column>header span{min-width:24px;height:24px;border-radius:999px;background:#efe5d7;display:grid;place-items:center;font-size:9px}
.research-cards{display:grid;gap:8px}.research-card{background:#fffdf8;border:1px solid #e7ddd0;border-radius:10px;padding:10px;box-shadow:0 4px 12px rgba(67,49,32,.025)}
.research-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.research-card-top>a{font-size:8px;color:#846a48;text-decoration:none}.research-card h4{font:600 12px "Playfair Display",Georgia,serif;margin:8px 0 4px}.research-card p{font-size:9px;line-height:1.45;color:#6d6256;margin:4px 0}.research-person{color:#8a6a42!important}.research-status-form select{width:100%;height:30px;margin-top:7px;border:1px solid #ddd2c4;border-radius:7px;background:#fffaf3;padding:0 7px;font-size:9px}.research-empty{font-size:9px;color:#9a8d7e;padding:18px 6px;text-align:center}.research-create{position:sticky;top:88px}
.media-page-grid-v2{grid-template-columns:minmax(0,1fr) 360px}.media-side-stack{display:grid;gap:12px;align-content:start}.media-card-manage{display:block!important;color:inherit!important}.media-card-manage.selected{outline:2px solid #c9a96e;outline-offset:2px}.media-link-list{display:grid;gap:7px;margin:10px 0 14px}.media-link-row{display:grid;grid-template-columns:34px 1fr auto;gap:8px;align-items:center;border:1px solid #e9dfd2;border-radius:9px;background:#fffaf3;padding:8px}.media-link-row b,.media-link-row small{display:block}.media-link-row b{font:600 10px "Playfair Display",Georgia,serif}.media-link-row small{font-size:8px;color:#84786a}.media-link-manager{padding-bottom:14px}
.events-workspace{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:14px;align-items:start}.event-editor{position:sticky;top:88px}.event-table{display:grid}.event-table-head,.event-row{display:grid;grid-template-columns:1.1fr .75fr .9fr 1.4fr 72px;gap:10px;align-items:center}.event-table-head{padding:8px 10px;border-bottom:1px solid #e8dfd3;font-size:8px;text-transform:uppercase;letter-spacing:.08em;color:#918476}.event-row{padding:10px;border-bottom:1px solid #eee6dc;text-decoration:none;color:#3a332d;font-size:9px}.event-row:hover,.event-row.selected{background:#fbf4e8}.event-row>span:first-child{display:flex;align-items:center;gap:8px}.event-row b{font:600 10px "Playfair Display",Georgia,serif}.event-row em{font-style:normal;color:#806544;text-align:right}.danger-form{margin-top:12px}
.quality-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:14px}.quality-stats>a{background:#fffdf8;border:1px solid #e7ddd0;border-radius:11px;padding:14px;text-decoration:none;color:#342e29}.quality-stats b{display:block;font:700 24px "Playfair Display",Georgia,serif}.quality-stats span{display:block;font-size:9px;color:#817466;margin-top:3px}.duplicate-list{display:grid;gap:10px}.duplicate-card{display:grid;grid-template-columns:130px 1fr 38px 1fr 210px;gap:12px;align-items:center;border:1px solid #e7ddd0;border-radius:11px;padding:12px;background:#fffaf4}.duplicate-score b,.duplicate-score small{display:block}.duplicate-score b{font:700 22px "Playfair Display",Georgia,serif;color:#856238}.duplicate-score small{font-size:8px;color:#8a7c6e;line-height:1.35;margin-top:3px}.duplicate-person{display:grid;grid-template-columns:42px 1fr;gap:9px;align-items:center}.duplicate-person b,.duplicate-person small,.duplicate-person a{display:block}.duplicate-person b{font:600 12px "Playfair Display",Georgia,serif}.duplicate-person small{font-size:8px;color:#8a7d6f}.duplicate-person a{font-size:8px;color:#7d5d39;margin-top:3px}.duplicate-vs{text-align:center;font:600 22px "Playfair Display",Georgia,serif;color:#b08b5d}.duplicate-actions{display:grid;gap:6px}.duplicate-actions form,.duplicate-actions button{width:100%}.quality-guide{margin-top:14px}.export-actions{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:1250px){.research-layout{grid-template-columns:1fr}.research-create{position:static}.research-board{grid-template-columns:repeat(4,260px)}.quality-stats{grid-template-columns:repeat(3,1fr)}.duplicate-card{grid-template-columns:110px 1fr 28px 1fr}.duplicate-actions{grid-column:1/-1;grid-template-columns:1fr 1fr}.events-workspace{grid-template-columns:1fr}.event-editor{position:static}.media-page-grid-v2{grid-template-columns:1fr}.media-side-stack{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.research-board{grid-template-columns:260px 260px 260px 260px}.quality-stats{grid-template-columns:repeat(2,1fr)}.duplicate-card{grid-template-columns:1fr}.duplicate-vs{display:none}.duplicate-actions{grid-column:auto;grid-template-columns:1fr}.event-table-head{display:none}.event-row{grid-template-columns:1fr 1fr}.event-row>span:nth-child(4){grid-column:1/-1}.event-row em{grid-column:1/-1;text-align:left}.media-side-stack{grid-template-columns:1fr}}
.profile-score-pill{background:#f0e4d0!important;color:#765932!important;border:1px solid #d7c1a0}
.person-research-panel{margin-bottom:14px}.person-research-list{display:grid;gap:7px;margin-bottom:12px}.person-research-list>div{display:grid;grid-template-columns:auto 1fr;gap:8px 10px;align-items:center;border:1px solid #e7ddd0;background:#fffaf3;border-radius:9px;padding:9px}.person-research-list b{font:600 11px "Playfair Display",Georgia,serif}.person-research-list small{grid-column:2;font-size:8px;color:#827668}

/* v0.3.0 — workspace upgrades */
.place-filter-form,.source-filter-form,.research-filter-form,.media-filter-form,.history-filter-form{display:grid;grid-template-columns:minmax(220px,1.6fr) minmax(150px,.7fr) auto auto;gap:10px;align-items:end;margin-bottom:14px;padding:14px}.research-filter-form,.media-filter-form{grid-template-columns:minmax(220px,1.5fr) minmax(150px,.7fr) minmax(180px,1fr) auto auto}.place-filter-form label,.source-filter-form label,.research-filter-form label,.media-filter-form label,.history-filter-form label{display:grid;gap:5px}.place-filter-form label>span,.source-filter-form label>span,.research-filter-form label>span,.media-filter-form label>span,.history-filter-form label>span{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#8a7966;font-weight:800}.place-filter-form input,.place-filter-form select,.source-filter-form input,.source-filter-form select,.research-filter-form input,.research-filter-form select,.media-filter-form input,.media-filter-form select,.history-filter-form select{height:39px;border:1px solid #ddd1c1;border-radius:8px;background:#fffdf9;padding:0 10px;color:#3c342d;outline:none}
.places-workspace,.sources-workspace{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(330px,.92fr);gap:14px}.place-side-stack,.source-side-stack,.research-side-stack{display:grid;gap:14px;align-content:start}.place-list .list-item.selected,.source-list .list-item.selected{background:#f6ecde;border-color:#d8c2a1}.place-list .list-item em,.source-list .list-item em{margin-left:auto;font-style:normal;color:#9b866c}.place-summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.place-summary-grid>div{background:#faf4ea;border:1px solid #eadfce;border-radius:10px;padding:10px}.place-summary-grid b{font-family:"Playfair Display",Georgia,serif;font-size:17px;display:block}.place-summary-grid span{font-size:8px;color:#8a7d6f}.place-coords{font-size:9px;color:#7f6f60;margin:8px 0 12px}.inline-coords{display:grid;grid-template-columns:1fr 1fr;gap:6px}.place-person-list,.place-event-list,.citation-usage-list{display:grid;gap:7px;margin-top:10px}.place-person-list>a,.place-event-list>a,.citation-usage-list>div{display:flex;gap:9px;align-items:center;padding:8px;border:1px solid #e9dfd2;border-radius:9px;background:#fffaf3;text-decoration:none;color:#3a332d}.place-person-list b,.place-person-list small,.place-event-list b,.place-event-list span,.citation-usage-list b,.citation-usage-list small{display:block}.place-person-list b,.place-event-list b,.citation-usage-list b{font-family:"Playfair Display",Georgia,serif;font-size:11px}.place-person-list small,.place-event-list span,.citation-usage-list small{font-size:8px;color:#897d70}.citation-usage-list>div{align-items:flex-start}.citation-usage-list>div>div{flex:1}.citation-usage-list a{font-size:8px;color:#6f5432;margin-top:3px;display:inline-block}
.research-layout-v3{grid-template-columns:minmax(0,1fr) 320px}.research-card.selected{border-color:#c7a977;box-shadow:0 0 0 2px rgba(201,169,110,.14)}.research-card h4 a{color:inherit;text-decoration:none}.research-card h4 a:hover{text-decoration:underline}.research-side-stack{position:sticky;top:92px}.media-filter-form{margin-bottom:14px}
.history-list{padding:8px}.history-item{display:grid;grid-template-columns:38px 1fr;gap:10px;padding:11px;border-bottom:1px solid #eee5d9}.history-item:last-child{border-bottom:0}.history-icon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#f5ead7;color:#7b5d36;font-weight:700}.history-main>div:first-child{display:flex;justify-content:space-between;gap:14px}.history-main b,.history-main small{display:block}.history-main b{font-family:"Playfair Display",Georgia,serif;font-size:12px}.history-main small{font-size:8px;color:#8b7f72;text-align:right}.history-main details{margin-top:6px}.history-main summary{cursor:pointer;font-size:8px;color:#7c6547}.history-json{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:7px}.history-json>div{background:#fbf6ee;border:1px solid #e8ddcf;border-radius:8px;padding:8px;min-width:0}.history-json span{font-size:8px;text-transform:uppercase;color:#9b8a77}.history-json pre{white-space:pre-wrap;word-break:break-word;font-size:8px;line-height:1.45;margin:5px 0 0;color:#4b433b}
.schema-warning{margin-bottom:12px;background:#fff3cf;border:1px solid #e4c568;color:#684e13;padding:10px 12px;border-radius:10px;font-size:11px}
@media(max-width:1100px){.places-workspace,.sources-workspace,.research-layout-v3{grid-template-columns:1fr}.research-side-stack{position:static}.place-filter-form,.source-filter-form,.research-filter-form,.media-filter-form,.history-filter-form{grid-template-columns:1fr 1fr}.place-filter-form .btn,.source-filter-form .btn,.research-filter-form .btn,.media-filter-form .btn,.history-filter-form .btn{width:100%}}
@media(max-width:680px){.place-filter-form,.source-filter-form,.research-filter-form,.media-filter-form,.history-filter-form{grid-template-columns:1fr}.place-summary-grid{grid-template-columns:1fr}.history-main>div:first-child{display:block}.history-main small{text-align:left;margin-top:2px}.history-json{grid-template-columns:1fr}}

/* v0.4.0 — households, tags, evidence and system health */
.tag-cloud{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.person-tag{--tag:#c9a96e;display:inline-flex;align-items:center;gap:7px;border:1px solid color-mix(in srgb,var(--tag) 35%,#e7ddd0);background:#fffaf3;border-radius:999px;padding:6px 9px;font-size:10px;color:#544b42}.person-tag>i{width:8px;height:8px;border-radius:50%;background:var(--tag)}.person-tag form{display:inline}.person-tag button{border:0;background:transparent;cursor:pointer;color:#8c7562;font-size:13px;line-height:1;padding:0}.tag-add-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.tag-add-form input[type=text],.tag-add-form input:not([type]){min-width:260px;flex:1;height:39px;border:1px solid #ddd1c1;border-radius:8px;padding:0 10px;background:#fffdf9}.tag-add-form input[type=color]{width:44px;height:39px;border:1px solid #ddd1c1;border-radius:8px;background:#fff;padding:3px}.household-person-list{display:grid;gap:8px;margin-top:12px}.household-person-list>a{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:10px;border:1px solid #e9dfd2;border-radius:9px;text-decoration:none;color:inherit;background:#fffaf4}.household-person-list b,.household-person-list small,.household-person-list em{display:block}.household-person-list b{font-family:"Playfair Display",Georgia,serif}.household-person-list small{font-size:9px;color:#817567;margin-top:2px}.household-person-list em{font-size:8px;color:#9a8976;font-style:normal;margin-top:3px}.household-filter{display:flex;gap:10px;align-items:end;margin-bottom:14px}.household-filter label{display:grid;gap:5px;flex:1}.household-filter label>span{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#8a7966;font-weight:800}.household-filter input{height:39px;border:1px solid #ddd1c1;border-radius:8px;background:#fffdf9;padding:0 10px}.households-workspace{display:grid;grid-template-columns:minmax(300px,.8fr) minmax(420px,1.2fr);gap:14px}.household-side{display:grid;gap:14px}.household-members{display:grid;gap:8px;margin:12px 0}.house-member{display:grid;grid-template-columns:1fr auto;align-items:center;border-bottom:1px solid #eee5da;padding:8px 0}.house-member>a{display:flex;gap:9px;align-items:center;text-decoration:none;color:inherit}.house-member b,.house-member small{display:block}.house-member b{font-family:"Playfair Display",Georgia,serif;font-size:11px}.house-member small{font-size:8px;color:#887c6d;margin-top:2px}.event-source-box{border-top:1px solid #eadfce;margin-top:16px;padding-top:14px}.event-source-box h4{font-family:"Playfair Display",Georgia,serif;margin:0;font-size:16px}.event-citation-list{display:grid;gap:7px;margin:10px 0}.event-citation-list>div{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;border:1px solid #e8dfd3;background:#fffaf3;border-radius:8px;padding:8px}.event-citation-list b,.event-citation-list small{display:block}.event-citation-list b{font-size:10px}.event-citation-list small{font-size:8px;color:#887c6d}.system-cards{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:14px}.system-cards>div{padding:16px}.system-cards b{display:block;font:600 22px "Playfair Display",Georgia,serif}.system-cards span{font-size:9px;color:#867a6b}.system-layout{display:grid;grid-template-columns:1.25fr .75fr;gap:14px}.health-list{display:grid;gap:6px;margin:12px 0}.health-row{display:grid;grid-template-columns:30px 1fr;gap:9px;align-items:center;border:1px solid #e7ddd0;border-radius:8px;padding:8px 10px;background:#fffaf3}.health-row>span{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-weight:800}.health-row.ok>span{background:#e6f0e6;color:#547056}.health-row.bad>span{background:#f3e0df;color:#9a5e58}.health-row b,.health-row small{display:block}.health-row b{font-size:10px}.health-row small{font-size:8px;color:#8a7e70}.system-migrate{margin-top:14px}.schema-warning{margin-bottom:12px;padding:10px 12px;border:1px solid #e7cda7;background:#fff5e7;border-radius:9px;color:#7f5e2c;font-size:11px}.pedigree-level.collapsed .pedigree-row{display:none}.pedigree-level .generation-label{cursor:pointer;user-select:none}.pedigree-level .generation-label:after{content:"  ▾";font-size:8px;color:#9a8976}.pedigree-level.collapsed .generation-label:after{content:"  ▸"}.pedigree-canvas{cursor:grab}.pedigree-canvas.dragging{cursor:grabbing;user-select:none}
@media(max-width:1050px){.households-workspace,.system-layout{grid-template-columns:1fr}.system-cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.household-filter{align-items:stretch;flex-direction:column}.system-cards{grid-template-columns:1fr 1fr}.tag-add-form{align-items:stretch}.tag-add-form input[type=text],.tag-add-form input:not([type]){min-width:0}.person-filter-form{grid-template-columns:1fr!important}}
.person-filter-form{grid-template-columns:minmax(220px,1.5fr) repeat(4,minmax(115px,.52fr)) auto auto}

/* v0.5.0 — productivity tools, timeline, favourites, surname index, bulk work */
.inline-form{display:inline-flex;margin:0}.favorite-grid{display:grid;gap:8px}.favorite-person{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:10px 11px;border:1px solid #e8ddd0;border-radius:10px;background:#fffaf3;text-decoration:none;color:inherit}.favorite-person b,.favorite-person small{display:block}.favorite-person b{font:600 12px "Playfair Display",Georgia,serif}.favorite-person small{font-size:8px;color:#8b7d6f;margin-top:2px}.surnames-layout{display:grid;grid-template-columns:minmax(320px,.85fr) minmax(420px,1.15fr);gap:14px}.surname-cloud{display:flex;gap:8px;flex-wrap:wrap;align-content:flex-start}.surname-chip{display:inline-flex;align-items:center;gap:8px;padding:8px 11px;border:1px solid #e4d9cc;border-radius:999px;background:#fffaf3;text-decoration:none;color:#4d4339}.surname-chip b{font:600 11px "Playfair Display",Georgia,serif}.surname-chip span{min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#efe2cf;display:grid;place-items:center;font-size:8px}.surname-chip.selected{border-color:#b99662;background:#f6ead9}.bulk-search{display:flex;gap:10px;margin-bottom:14px}.bulk-search input{flex:1;height:40px;border:1px solid #ddd1c1;border-radius:9px;padding:0 11px;background:#fffdf9}.bulk-workbench{padding:14px}.bulk-toolbar{display:grid;grid-template-columns:minmax(180px,.65fr) minmax(240px,1.35fr) auto;gap:10px;align-items:end;padding-bottom:12px;border-bottom:1px solid #eee4d8}.bulk-toolbar label{display:grid;gap:5px}.bulk-toolbar label>span{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#8b7a68;font-weight:800}.bulk-toolbar input,.bulk-toolbar select{height:40px;border:1px solid #ddd1c1;border-radius:8px;background:#fffdf9;padding:0 10px}.bulk-select-all{display:flex;justify-content:space-between;align-items:center;padding:11px 2px;font-size:10px;color:#776b5f}.bulk-people-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.bulk-person-row{display:grid;grid-template-columns:auto auto 1fr auto;gap:9px;align-items:center;padding:9px;border:1px solid #e9dfd3;border-radius:9px;background:#fffaf4}.bulk-person-row>input{width:17px;height:17px}.bulk-person-row b,.bulk-person-row small{display:block}.bulk-person-row b{font:600 11px "Playfair Display",Georgia,serif}.bulk-person-row small{font-size:8px;color:#887b6e}.bulk-person-row>a{font-size:8px;color:#785d3c}.person-timeline{margin-top:14px}.timeline-list{position:relative;display:grid;gap:0;margin-top:8px}.timeline-item{display:grid;grid-template-columns:74px 14px 1fr;gap:10px;min-height:54px}.timeline-year{text-align:right;padding-top:3px;font:600 13px "Playfair Display",Georgia,serif;color:#6f5841}.timeline-item>i{position:relative}.timeline-item>i:before{content:"";position:absolute;left:6px;top:8px;width:8px;height:8px;border-radius:50%;background:#bd9155;box-shadow:0 0 0 3px #f6ead8}.timeline-item>i:after{content:"";position:absolute;left:9px;top:18px;bottom:-8px;width:1px;background:#dfcfbb}.timeline-item:last-child>i:after{display:none}.timeline-item>div{padding-bottom:14px}.timeline-item b,.timeline-item small{display:block}.timeline-item b{font:600 12px "Playfair Display",Georgia,serif}.timeline-item small{font-size:9px;color:#84786c;margin-top:2px}.place-breadcrumb{font-size:8px;color:#8a7967;margin-top:4px}.place-breadcrumb a{color:#72583a;text-decoration:none}.house-member{grid-template-columns:minmax(0,1fr) auto auto}.house-member-edit{position:relative}.house-member-edit>summary{font-size:8px;color:#71583a;cursor:pointer;list-style:none}.house-member-edit[open]{grid-column:1/-1;background:#fbf5ec;border:1px solid #e6dacb;padding:8px;border-radius:8px;margin-top:6px}.house-member-edit form{min-width:260px}.priority{display:inline-flex;border-radius:999px;padding:3px 6px;font-size:7px;text-transform:uppercase;letter-spacing:.05em;background:#eee6db;color:#6e6256}.priority.p3{background:#f2dfbf;color:#8c642b}.priority.p4{background:#f2d7d4;color:#934f48}.priority.p1{background:#e4ece2;color:#557055}.due-date{display:block;font-size:8px;color:#7d6d5d;margin:5px 0}.due-date.overdue{color:#a55249;font-weight:700}.quality-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0}.quality-person-list,.quality-warning-list{display:grid;gap:6px;max-height:380px;overflow:auto}.quality-person-list>div{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;padding:8px 9px;border-bottom:1px solid #eee4d8}.quality-person-list a{font:600 10px "Playfair Display",Georgia,serif;color:#443b33;text-decoration:none}.quality-person-list button{border:0;background:transparent;color:#7b5d36;font-size:8px;cursor:pointer}.quality-warning-list>a{display:block;padding:9px;border:1px solid #eadfd3;border-radius:8px;background:#fff8ef;text-decoration:none;color:inherit}.quality-warning-list b,.quality-warning-list small{display:block}.quality-warning-list b{font-size:10px;color:#8a4f45}.quality-warning-list small{font-size:8px;color:#7d7064;margin-top:3px}.export-actions{flex-wrap:wrap}
@media(max-width:980px){.surnames-layout,.quality-detail-grid{grid-template-columns:1fr}.bulk-people-list{grid-template-columns:1fr}.bulk-toolbar{grid-template-columns:1fr 1fr}.bulk-toolbar .btn{grid-column:1/-1}.house-member{grid-template-columns:minmax(0,1fr) auto}}
@media(max-width:680px){.bulk-search{display:grid}.bulk-toolbar{grid-template-columns:1fr}.bulk-toolbar .btn{grid-column:auto}.timeline-item{grid-template-columns:56px 14px 1fr}.profile-hero-actions{flex-wrap:wrap}}

/* v0.7.0 — poznámky, účastníci udalostí, kontrola médií, reporty a kvalita zdrojov */
.person-notes-panel{margin-top:14px}.person-note-list{display:grid;gap:10px;margin:14px 0}.person-note{border:1px solid #e5dacb;border-radius:11px;background:#fffdf9;padding:12px 14px}.person-note.pinned{border-color:#cdb27c;background:linear-gradient(120deg,#fffdf8,#fbf2df)}.person-note-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.person-note-head>div{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.person-note h4{font:600 14px "Playfair Display",Georgia,serif;margin:9px 0 5px}.person-note p{font-size:11px;line-height:1.6;color:#5f554b;margin:0}.person-note small{display:block;color:#908274;font-size:8px;margin-top:8px}.note-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.note-actions form{margin:0}.note-actions button{white-space:nowrap}
.event-participants{margin-top:14px}.event-participant-list{display:grid;gap:8px;margin:12px 0}.event-participant-list>article{display:grid;grid-template-columns:minmax(150px,1fr) minmax(120px,.7fr) auto;gap:10px;align-items:center;border:1px solid #e8ded1;background:#fffaf4;border-radius:10px;padding:10px 12px}.event-participant-list b,.event-participant-list small{display:block}.event-participant-list small{font-size:8px;color:#8a7d6e;margin-top:2px}
.media-review-form{display:flex;align-items:center;gap:8px;margin:10px 0 14px}.media-review-form select{height:36px;border:1px solid #ddd1c1;border-radius:8px;background:#fffdf9;padding:0 9px}.media-duplicate-panel{margin:14px 0}.duplicate-file-groups{display:grid;gap:8px}.duplicate-file-groups>div{display:grid;grid-template-columns:1fr auto;gap:3px 12px;align-items:center;border:1px solid #e7dccd;background:#fffaf4;border-radius:9px;padding:10px 12px}.duplicate-file-groups b{font:600 12px "Playfair Display",Georgia,serif}.duplicate-file-groups span{font-weight:800;color:#9a6d2f}.duplicate-file-groups small{grid-column:1/-1;color:#8a7d6e;font-size:8px;word-break:break-all}
.report-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.report-grid>.panel{display:flex;flex-direction:column;min-height:235px}.report-grid h3{font:600 18px "Playfair Display",Georgia,serif;margin:12px 0 6px}.report-grid p{font-size:11px;line-height:1.55;color:#756a5e;flex:1}.report-grid .form-stack{margin-top:auto}.source-quality-stats{margin-bottom:14px}.research-next{margin:8px 0 5px;padding:7px 9px;border-radius:8px;background:#f8f1e6;color:#6b5b49;font-size:9px;line-height:1.4}.research-next b{color:#4d4034}.research-assignee{display:block;color:#806f5e;font-size:8px;margin:4px 0}.quality-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.quality-stats>a{display:block;border:1px solid #e7dccd;background:#fffdf9;border-radius:10px;padding:11px 12px;text-decoration:none;color:inherit}.quality-stats b{font:700 20px "Playfair Display",Georgia,serif}.quality-stats span{display:block;color:#877a6b;font-size:8px;margin-top:2px}
@media(max-width:1000px){.report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quality-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.event-participant-list>article{grid-template-columns:1fr}}
@media(max-width:680px){.report-grid{grid-template-columns:1fr}.quality-stats{grid-template-columns:1fr 1fr}.person-note-head{flex-direction:column}.note-actions{width:100%}}

/* v0.8.0 — príbehy, kontakty, repozitáre, albumy a rozšírené rodinné zväzky */
.stories-workspace{align-items:start}
.story-list .list-item em{display:block;margin-top:4px;font-style:normal;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#9a7441}
.story-person-list{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 18px}
.repository-grid,.album-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
.repo-card,.album-card{border:1px solid var(--line,#e6ded2);border-radius:15px;background:rgba(255,255,255,.72);padding:15px;display:flex;gap:14px;justify-content:space-between;align-items:flex-start}
.repo-card>div,.album-card>div{min-width:0}.repo-card b,.album-card b{display:block;font-family:"Playfair Display",Georgia,serif;font-size:16px}.repo-card small,.album-card small{display:block;color:#81776c;margin-top:4px}.repo-card p,.album-card p{font-size:13px;color:#665f58;margin:8px 0;line-height:1.45}
.repo-card details{min-width:92px}.repo-card details[open]{min-width:min(330px,45%)}
.selected-media-albums{margin-top:14px;padding:12px 14px;border-radius:13px;background:#faf5ec;border:1px solid #eadcc7;display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.selected-media-albums>b{margin-right:4px}
.contact-list{display:grid;gap:10px}.contact-item{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:11px 13px;border:1px solid #e7ded3;border-radius:13px;background:#fffdf9}.contact-item small{display:block;color:#80776e}
.union-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}.union-meta span{font-size:11px;padding:4px 7px;border-radius:999px;background:#f4ede3;color:#6e6256}
@media(max-width:900px){.repository-grid,.album-grid{grid-template-columns:1fr}.repo-card details[open]{min-width:0}.repo-card,.album-card{flex-direction:column}}

/* ===== v0.9.0 ===== */
.collections-layout{align-items:start}.collection-person{display:flex;align-items:center;justify-content:space-between;gap:12px}.collection-person>a{display:flex;align-items:center;gap:12px;flex:1}.collection-person form{margin:0}
.saved-search-inline{margin-top:-10px}.saved-search-inline .inline-form{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.saved-search-inline input{min-width:260px;flex:1}
.genealogy-timeline{position:relative;padding:8px 0}.timeline-row{display:grid;grid-template-columns:84px 24px minmax(0,1fr);gap:14px;align-items:start;position:relative;padding:10px 0}.timeline-row:before{content:"";position:absolute;left:95px;top:0;bottom:0;width:1px;background:var(--line,#e3d8c9)}.timeline-year{font-family:"Playfair Display",Georgia,serif;font-size:22px;text-align:right;padding-top:10px;color:#6d6258}.timeline-dot{width:12px;height:12px;border-radius:50%;background:#b78945;border:3px solid #fff;box-shadow:0 0 0 1px #cfb185;margin:16px 0 0 3px;position:relative;z-index:2}.timeline-card{background:#fffaf3;border:1px solid #e7dccd;border-radius:16px;padding:16px 18px}.timeline-card h3{margin:7px 0;font-family:"Playfair Display",Georgia,serif}.timeline-card p{margin:4px 0}.timeline-people{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.timeline-people a{font-size:12px;padding:5px 8px;border:1px solid #e0d4c4;border-radius:999px;background:#fff}.timeline-filter{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.timeline-filter label{min-width:120px}.timeline-filter label:nth-of-type(2),.timeline-filter label:nth-of-type(3){min-width:220px}
.month-tabs{display:grid;grid-template-columns:repeat(12,1fr);gap:6px;margin:0 0 18px}.month-tabs a{display:flex;align-items:center;justify-content:center;min-height:42px;border:1px solid #ded3c5;background:#fffaf3;border-radius:11px;font-weight:700;font-size:12px}.month-tabs a.active{background:#252a2e;color:#fff;border-color:#252a2e}.anniversary-date{width:64px;min-width:64px;height:58px;border-radius:12px;background:#f2e7d5;display:flex;flex-direction:column;align-items:center;justify-content:center}.anniversary-date b{font:700 21px "Playfair Display",Georgia,serif}.anniversary-date small{font-size:10px;text-transform:uppercase;letter-spacing:.08em}
.review-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}.review-stats a{background:#fffaf4;border:1px solid #e5d9ca;border-radius:16px;padding:18px;display:flex;flex-direction:column}.review-stats b{font:700 28px "Playfair Display",Georgia,serif}.review-stats small{color:#776d62}.review-person-row{grid-template-columns:auto minmax(0,1fr) auto auto}.review-inline select{min-width:130px}
.relationship-evidence-list{display:grid;gap:10px}.evidence-item{border:1px solid #e6dacb;border-radius:14px;background:#fffaf5}.evidence-item>summary{cursor:pointer;padding:13px 15px;display:flex;justify-content:space-between;gap:12px}.evidence-item>summary span{color:#8d7d6c;font-size:12px}.evidence-item>div,.evidence-item>form{margin:0 14px 14px}
.research-inbox{margin-bottom:18px}.research-inbox-form{display:grid;grid-template-columns:1.2fr 1fr 1.4fr auto;gap:10px;margin-bottom:14px}.research-inbox-form input{min-width:0}
.source-quality-editor,.media-rights{border-top:1px solid #e6dacb;margin-top:18px;padding-top:18px}.story-summary-form{border-top:1px solid #e6dacb;margin-top:16px;padding-top:16px}
@media(max-width:1100px){.month-tabs{grid-template-columns:repeat(6,1fr)}.review-stats{grid-template-columns:repeat(2,1fr)}.research-inbox-form{grid-template-columns:1fr 1fr}.timeline-filter label:nth-of-type(2),.timeline-filter label:nth-of-type(3){min-width:180px}}
@media(max-width:700px){.month-tabs{grid-template-columns:repeat(4,1fr)}.review-stats{grid-template-columns:1fr 1fr}.research-inbox-form{grid-template-columns:1fr}.timeline-row{grid-template-columns:52px 20px minmax(0,1fr);gap:8px}.timeline-row:before{left:63px}.timeline-year{font-size:16px}.review-person-row{grid-template-columns:auto 1fr}.review-person-row>.status,.review-person-row>form{grid-column:2}.saved-search-inline .inline-form{display:grid;grid-template-columns:1fr;width:100%}.saved-search-inline input{min-width:0;width:100%}}

/* v1.0.0 – quality center, document workbench, branches, research sessions, event detail */
.quality-stats,.review-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 18px}.quality-stats a,.review-stats>a,.review-stats>div{background:#fffaf3;border:1px solid #e6dac9;border-radius:14px;padding:16px;text-align:center;text-decoration:none;color:inherit}.quality-stats b,.review-stats b{display:block;font:700 26px "Playfair Display",Georgia,serif}.quality-stats small,.review-stats small{color:#7b7268}.quality-list{display:grid;gap:14px}.quality-card{border-left:5px solid #c9b38d}.quality-card.severity-critical{border-left-color:#9a3e3e}.quality-card.severity-high{border-left-color:#b07d2d}.quality-card.severity-medium{border-left-color:#7c8a6f}.quality-card-main{display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:start}.quality-card-main h3{margin:3px 0 5px}.quality-card-main p{margin:0;color:#6c645b}.quality-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px;padding-top:14px;border-top:1px solid #eee2d4}.quality-clean{display:flex;gap:14px;align-items:center;padding:16px;border:1px solid #d8e5d4;background:#f7fbf5;border-radius:14px}.quality-clean>span{font-size:26px}.quality-clean b,.quality-clean small{display:block}.quality-clean small{color:#6a7466;margin-top:3px}
.documents-workspace{display:grid;grid-template-columns:minmax(300px,.75fr) minmax(480px,1.6fr);gap:18px;align-items:start}.document-list{position:sticky;top:18px;max-height:78vh;overflow:auto}.document-editor{display:grid;gap:18px}.document-editor textarea[name=transcription]{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;line-height:1.6;min-height:380px}.document-editor .list-item p{margin:5px 0 0;color:#625c54}.documents-workspace .round-icon{font-size:11px;font-weight:700}.documents-workspace .list-item.selected{background:#f1e6d6;border-color:#caa66b}
.branches-grid,.sessions-layout,.event-detail-grid,.compare-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.8fr);gap:18px;align-items:start}.branch-list{display:grid;gap:12px}.branch-card{display:flex;justify-content:space-between;gap:18px;padding:18px;border:1px solid #e4d8c8;border-radius:16px;background:#fffdf8}.branch-card.default{border-color:#bd985a;box-shadow:inset 0 0 0 1px #d6b982}.branch-card h3{margin:4px 0}.branch-card p{margin:3px 0;color:#6f675e}.branch-actions{display:flex;flex-direction:column;gap:7px;align-items:flex-end}.tree-save-link{font-size:12px;padding:7px 10px;border:1px solid #d6c6b2;border-radius:9px;color:#655a4c;text-decoration:none}.genealogy-tree-picker label{display:flex;align-items:center;gap:7px}.genealogy-tree-picker label span{font-size:11px;color:#7b7268}.genealogy-tree-picker label select{min-width:72px}
.sessions-layout{grid-template-columns:minmax(340px,.9fr) minmax(460px,1.1fr)}.session-side{position:sticky;top:18px}.detail-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.detail-list>div{padding:12px;background:#faf6ef;border-radius:10px}.detail-list dt{font-size:11px;color:#867c70;text-transform:uppercase}.detail-list dd{margin:4px 0 0;font-weight:700}.session-side h4{margin:20px 0 7px}
.event-detail-grid{grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr)}.event-detail-grid main,.event-detail-grid aside{display:grid;gap:18px;align-content:start}.event-detail-grid aside{position:sticky;top:18px}
.compare-picker{display:grid;grid-template-columns:1fr auto 1fr auto;gap:14px;align-items:end}.compare-vs{align-self:center;font-weight:800;color:#a27c42;padding-top:18px}.compare-grid{grid-template-columns:1fr 1fr}.compare-person h2{font:700 28px "Playfair Display",Georgia,serif;margin:6px 0 14px}.compare-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0 20px}.compare-kpis div{padding:11px;background:#faf6ef;border-radius:10px;text-align:center}.compare-kpis b,.compare-kpis small{display:block}.compare-person h4{margin:22px 0 9px}.compare-merge-callout{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-top:18px}.person-compare-shortcut{display:flex;justify-content:space-between;align-items:center;gap:20px}.person-compare-shortcut h3{margin:4px 0}.person-compare-shortcut p{margin:0;color:#6e675f}
@media(max-width:1100px){.documents-workspace,.branches-grid,.sessions-layout,.event-detail-grid,.compare-grid{grid-template-columns:1fr}.document-list,.session-side,.event-detail-grid aside{position:static;max-height:none}.quality-card-main{grid-template-columns:auto 1fr}.quality-card-main>.btn{grid-column:2}.review-stats,.quality-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.quality-card-main{grid-template-columns:1fr}.quality-card-main>.btn{grid-column:auto}.compare-picker{grid-template-columns:1fr}.compare-vs{display:none}.compare-kpis{grid-template-columns:1fr 1fr}.branch-card,.compare-merge-callout,.person-compare-shortcut{flex-direction:column;align-items:stretch}.branch-actions{align-items:stretch}.review-stats,.quality-stats{grid-template-columns:1fr 1fr}}
/* v1.0.0 merge preview */
.merge-impact-panel{margin:0 0 18px;padding:18px;border:1px solid #d9c5a5;border-radius:16px;background:linear-gradient(180deg,#fffaf1,#fbf4e8)}
.merge-impact-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.merge-impact-grid>div{background:#fff;border:1px solid #eadfce;border-radius:13px;padding:14px}.merge-impact-grid>div>b{display:block;font-family:"Playfair Display",Georgia,serif;margin-bottom:9px}.merge-impact-grid span{display:flex;justify-content:space-between;gap:14px;padding:6px 0;border-bottom:1px dashed #eee0cd}.merge-impact-grid span:last-child{border-bottom:0}.merge-impact-grid em{font-style:normal;color:#756c61}.merge-impact-grid strong{font-variant-numeric:tabular-nums}.merge-preview-actions{display:flex;justify-content:flex-end;gap:10px;align-items:center;margin-top:14px;flex-wrap:wrap}.merge-preview-actions form{margin:0}
@media(max-width:760px){.merge-impact-grid{grid-template-columns:1fr}.merge-preview-actions{justify-content:stretch}.merge-preview-actions .btn,.merge-preview-actions form,.merge-preview-actions button{width:100%}}

/* v1.1.0 – workspace, coverage, repository plans, source detail */
.workspace-kpis,.source-detail-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 18px}.workspace-kpis .panel,.source-detail-stats .panel{padding:18px 20px;text-decoration:none;color:inherit;display:flex;flex-direction:column;gap:5px}.workspace-kpis b,.source-detail-stats b{font:700 30px/1 "Playfair Display",Georgia,serif}.workspace-kpis span,.source-detail-stats span{font-size:13px;color:var(--muted,#766e65)}.workspace-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.workspace-grid>.panel{min-width:0}.quick-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.coverage-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.coverage-card{padding:18px}.coverage-card>div:first-child{display:flex;justify-content:space-between;gap:10px;align-items:end}.coverage-card b{font:700 28px/1 "Playfair Display",Georgia,serif}.coverage-card span{font-size:13px}.coverage-card small{display:block;margin-top:8px;color:#7d746a}.coverage-bar{height:8px;background:#ece3d6;border-radius:999px;overflow:hidden;margin-top:14px}.coverage-bar i{display:block;height:100%;background:linear-gradient(90deg,#b38a4d,#705b36);border-radius:inherit}.coverage-lists{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.repository-plan-layout{align-items:start}.note-box{border:1px solid #e4d7c5;background:#fbf7f0;border-radius:12px;padding:14px 16px;margin:12px 0;line-height:1.55}.source-detail-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.75fr);gap:18px;align-items:start}.source-detail-grid main,.source-detail-grid aside{display:grid;gap:18px}.source-meta{display:grid;grid-template-columns:160px 1fr;gap:8px 18px;margin:0 0 18px}.source-meta dt{font-size:12px;color:#85796c;text-transform:uppercase;letter-spacing:.08em}.source-meta dd{margin:0}.inline-form{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.inline-form select{min-width:180px}.status.rose{background:#f4dddd;color:#8d2f2f}.pill.premium{background:#ede3c9;color:#72572c;border-color:#d4bd85}
@media(max-width:1100px){.workspace-kpis,.source-detail-stats,.coverage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.source-detail-grid{grid-template-columns:1fr}}
@media(max-width:760px){.workspace-grid,.coverage-lists{grid-template-columns:1fr}.workspace-kpis,.source-detail-stats,.coverage-grid{grid-template-columns:1fr 1fr}.source-meta{grid-template-columns:1fr}.source-meta dt{margin-top:8px}.quick-action-grid{grid-template-columns:1fr}}

/* v1.2.0 */
.form-grid.four{grid-template-columns:repeat(4,1fr)}
@media(max-width:1100px){.form-grid.four{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.form-grid.four{grid-template-columns:1fr}}

/* v1.5.0 – review batches, source series, calendar and migration route */
.v150-two-col{display:grid;grid-template-columns:minmax(300px,.82fr) minmax(460px,1.45fr);gap:18px;align-items:start}.v150-progress{height:8px;background:#eee5d8;border-radius:999px;overflow:hidden;margin:10px 0 18px}.v150-progress span{display:block;height:100%;background:linear-gradient(90deg,#b48845,#d8b36f);border-radius:inherit}.v150-inline-editor{padding:14px;background:#faf7f1;border:1px solid #eadfce;border-radius:14px;margin-bottom:14px}.v150-batch-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.v150-batch-actions form{display:flex;gap:6px;align-items:center}.v150-review-list{display:grid;gap:8px;margin:16px 0}.v150-review-item{border:1px solid #e7ded1;border-radius:14px;padding:12px;background:#fff;display:grid;grid-template-columns:minmax(180px,1fr) minmax(320px,1.4fr);gap:14px;align-items:center}.v150-review-item.status-reviewed{border-left:4px solid #5d8a68}.v150-review-item.status-issue{border-left:4px solid #b66a4d}.v150-review-item.status-skipped{opacity:.65}.v150-review-item small{display:block;color:#867c70;margin-top:4px}.v150-review-form{display:grid;grid-template-columns:125px 1fr auto;gap:6px;align-items:center}.v150-series-list{margin:18px 0}.v150-kpi{display:flex;align-items:center;gap:10px;justify-content:flex-end}.v150-kpi b{font:700 30px "Playfair Display",Georgia,serif}.v150-kpi span{color:#7d7469}.v150-route{position:relative;padding-left:28px}.v150-route:before{content:"";position:absolute;left:8px;top:8px;bottom:8px;width:2px;background:#ddd1c0}.v150-route article{position:relative;display:grid;grid-template-columns:1fr auto;gap:16px;padding:0 0 24px 14px}.v150-route-dot{position:absolute;left:-26px;top:6px;width:12px;height:12px;border-radius:50%;background:#6f756d;border:3px solid #f7f3ec;box-shadow:0 0 0 1px #cfc3b1}.v150-route article.move .v150-route-dot{background:#b48845}.v150-route h4{margin:2px 0 4px;font-family:"Playfair Display",Georgia,serif}.v150-route p{margin:0 0 5px;color:#625b52}.v150-calendar-nav{display:flex;align-items:center;gap:10px}.v150-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}.v150-cal-head{margin-bottom:7px}.v150-cal-head b{text-align:center;padding:8px;color:#7e7468}.v150-cal-cell{min-height:125px;border:1px solid #e7ded1;border-radius:12px;padding:8px;background:#fff}.v150-cal-cell.muted{background:#f7f4ef}.v150-cal-cell.today{box-shadow:inset 0 0 0 2px #b48845}.v150-cal-cell>strong{display:block;margin-bottom:7px}.v150-cal-item{display:block;border-radius:8px;padding:6px 7px;margin:5px 0;background:#f6f1e8;font-size:12px}.v150-cal-item b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v150-cal-item small{color:#80766b}.v150-cal-item.task{border-left:3px solid #b48845}.v150-cal-item.session{border-left:3px solid #657b87}.v150-cal-item.plan{border-left:3px solid #6f8a65}.v150-cal-item.event{border-left:3px solid #8a6f84}.v150-research-extra{margin-top:16px}.v150-checklist{display:grid;gap:7px;margin:12px 0}.v150-checklist article{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid #eee6db}.v150-checklist article.done b{text-decoration:line-through;color:#8f877d}.v150-checklist small{display:block;color:#857b70}.v150-check-btn{border:0;background:transparent;font-size:22px;cursor:pointer;color:#9a753b;padding:0}.v150-research-extra .simple-list{margin-bottom:12px}
@media(max-width:1050px){.v150-two-col{grid-template-columns:1fr}.v150-review-item{grid-template-columns:1fr}.v150-review-form{grid-template-columns:1fr 1fr auto}.v150-cal-cell{min-height:100px}}
@media(max-width:720px){.v150-review-form{grid-template-columns:1fr}.v150-cal-grid{gap:3px}.v150-cal-cell{min-height:76px;padding:5px}.v150-cal-item{padding:4px;font-size:10px}.v150-cal-item small{display:none}}

/* ===== RODOPIS v2.0 SaaS completion ===== */
.saas-two-col{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.85fr);gap:18px;align-items:start}.usage-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.usage-grid>div{background:#fbf8f1;border:1px solid #e7ddcf;border-radius:14px;padding:16px;display:grid;gap:6px}.usage-grid b{font:700 26px/1.1 "Playfair Display",Georgia,serif}.usage-grid span{font-size:13px;color:#777067}.usage-grid progress{width:100%;height:8px;accent-color:#a87b39}.saas-pricing{margin-top:18px}.tree-switch-list,.team-list,.notification-list,.onboarding-steps{display:grid;gap:10px}.tree-switch-card,.team-member,.notification-item,.onboarding-step{display:flex;align-items:center;gap:12px;border:1px solid #e7ddcf;background:#fffdf8;border-radius:14px;padding:14px}.tree-switch-card.active{border-color:#b58a4a;box-shadow:inset 0 0 0 1px rgba(181,138,74,.2)}.tree-switch-card>div:first-child,.team-copy,.notification-item>div,.onboarding-step>div{min-width:0;flex:1}.tree-switch-card b,.team-member b,.notification-item b,.onboarding-step b{display:block}.tree-switch-card small,.team-member small,.notification-item small,.onboarding-step small{display:block;color:#81786d;margin-top:3px}.team-role-form{margin-left:auto}.team-role-form select{min-width:125px}.pending-invites{margin-top:24px}.pending-invites h4{margin:0 0 10px}.invite-link-card{border-color:#c69a55;background:linear-gradient(135deg,#fffdf7,#f6ead8)}.copy-line{display:flex;gap:10px}.copy-line input{flex:1;font-family:monospace}.bell-count{position:absolute;right:-7px;top:-7px;display:flex;min-width:18px;height:18px;padding:0 5px;align-items:center;justify-content:center;border-radius:20px;background:#9e342d;color:#fff;font:700 10px/1 Arial}.ref-bell{position:relative}.notification-item.unread{border-color:#c49a5e;background:#fffaf0}.notification-item p{margin:5px 0 3px;color:#625b53}.big-progress{height:12px;border-radius:20px;background:#e9dfd1;overflow:hidden;margin-bottom:18px}.big-progress>div{height:100%;background:linear-gradient(90deg,#a97935,#cfac70);border-radius:20px}.onboarding-step{text-decoration:none;color:inherit}.onboarding-step>span{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#eee4d6;font-weight:800}.onboarding-step.done>span{background:#e7efe2;color:#42603a}.onboarding-step.done{opacity:.82}.account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.account-meta{display:grid;gap:5px;margin-top:18px;padding-top:16px;border-top:1px solid #e7ddcf;color:#7a7269;font-size:13px}.auth-security-note{color:#7b746b;font-size:12px}.invite-logo{display:block;max-width:280px;width:80%;height:auto;margin:0 auto 20px}.saas-usage{margin-bottom:18px}.price-card form.form-stack{margin-top:14px}.price-card button[disabled]{opacity:.68;cursor:default}
@media(max-width:1050px){.usage-grid{grid-template-columns:repeat(2,1fr)}.saas-two-col,.account-grid{grid-template-columns:1fr}}
@media(max-width:650px){.usage-grid{grid-template-columns:1fr}.copy-line{flex-direction:column}.team-member{align-items:flex-start;flex-wrap:wrap}.team-role-form{margin-left:0}.notification-item{align-items:flex-start}}
.legal-body{margin:0;background:#f6f1e8;color:#292d31;font-family:"Source Sans 3",Arial,sans-serif}.legal-page{max-width:850px;margin:0 auto;padding:42px 24px 80px}.legal-logo{width:250px;max-width:70%;height:auto;margin-bottom:32px}.legal-page h1,.legal-page h2{font-family:"Playfair Display",Georgia,serif}.legal-page h1{font-size:48px;margin:8px 0 20px}.legal-page h2{font-size:25px;margin:32px 0 8px}.legal-page p{font-size:16px;line-height:1.7;color:#5f5952}.legal-lead{font-size:18px!important}.legal-foot{margin-top:50px;padding-top:20px;border-top:1px solid #ded4c6;font-size:13px!important}
.admin-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(330px,.65fr);gap:18px;margin-top:18px;align-items:start}.admin-user-list{display:grid;gap:6px;max-height:760px;overflow:auto;margin-top:14px}.admin-user-row{display:flex;align-items:center;gap:10px;padding:11px;border:1px solid #eadfce;border-radius:12px;color:inherit;text-decoration:none}.admin-user-row.active,.admin-user-row:hover{background:#faf3e6;border-color:#cba46a}.admin-user-row>div{min-width:0;flex:1}.admin-user-row b,.admin-user-row small{display:block}.admin-user-row small{color:#7c746b;margin-top:3px}.inline-search{display:flex;gap:8px}.inline-search input{flex:1}.admin-request form{margin-left:6px}.credit-pills{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}@media(max-width:1000px){.admin-layout{grid-template-columns:1fr}}

/* ===== RODOPIS v2.1.0 — APPROVED MASTER VISUAL SYSTEM ===== */
:root{
  --bg:#f5efe5;
  --paper:#fffaf3;
  --ink:#242a2e;
  --muted:#756b60;
  --line:#e6dac9;
  --green:#26342f;
  --green2:#efe8dc;
  --dark:#1e272d;
  --gold:#b48643;
  --gold-soft:#ddc08f;
  --shadow:0 14px 38px rgba(55,43,29,.075);
  --radius:16px;
}
html{background:#f5efe5}
body{font-family:"Source Sans 3",Arial,sans-serif;background:#f5efe5;color:var(--ink);font-size:14px}
h1,h2,h3,h4,.page-head h1,.panel-title h3,.person-main h1,.auth-brand h1,.auth-card h2,.membership-card h3,.hero-copy h2{font-family:"Playfair Display",Georgia,serif}
.app-shell.ref-shell{grid-template-columns:238px minmax(0,1fr);background:#f8f3eb}
.ref-sidebar{width:238px;background:linear-gradient(180deg,#232a2f 0%,#1f262a 55%,#1b2125 100%);padding:0 12px 14px;box-shadow:10px 0 30px rgba(42,35,27,.06);overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#665743 transparent}
.ref-sidebar::-webkit-scrollbar{width:5px}.ref-sidebar::-webkit-scrollbar-thumb{background:#665743;border-radius:10px}
.ref-brand.ref-brand-live{height:90px!important;padding:14px 8px!important;margin:0 0 5px!important;border-bottom:1px solid rgba(226,201,158,.2)!important;overflow:visible!important}
.sidebar-logo-panel{height:60px!important;padding:6px 9px!important;background:#fbf6ed!important;border-color:rgba(208,172,111,.34)!important;border-radius:13px!important;box-shadow:0 12px 30px rgba(0,0,0,.18)!important}
.ref-brand-live img,.sidebar-logo-panel img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
.ref-nav{gap:2px!important;padding:5px 0 0!important}.ref-nav a{height:39px!important;padding:0 10px!important;border-radius:8px!important;color:#eee6da!important;font:500 14px/1 "Playfair Display",Georgia,serif!important;transition:.16s ease}.ref-nav a i{width:27px!important;color:#e6c27c!important;font:600 17px/1 "Source Sans 3",Arial,sans-serif!important;opacity:.96}.ref-nav a:hover{background:rgba(255,255,255,.055)!important;transform:translateX(1px)}.ref-nav a.active{background:linear-gradient(90deg,rgba(174,130,64,.43),rgba(128,91,43,.22))!important;border-color:rgba(225,185,119,.22)!important;color:#ffe6b5!important;box-shadow:inset 3px 0 0 #d4aa64,0 6px 14px rgba(0,0,0,.08)!important}.ref-nav-divider{background:rgba(230,211,179,.18)!important;margin:10px 7px!important}.ref-premium-card{border-radius:13px!important;border-color:rgba(213,172,103,.45)!important;background:linear-gradient(145deg,rgba(131,96,48,.24),rgba(58,50,40,.22))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}.ref-premium-card>a{background:linear-gradient(180deg,#f3d493,#e7b965)!important;color:#352a1f!important;border-radius:9px!important}.ref-sidebar-leaves{color:#b2874d!important;opacity:.18!important}
.ref-main{background:#f9f5ee!important}.ref-topbar{height:70px!important;background:rgba(255,251,245,.96)!important;border-bottom:1px solid #e7dccd!important;box-shadow:0 5px 20px rgba(70,54,34,.025);padding:0 18px!important;grid-template-columns:minmax(360px,520px) minmax(220px,1fr) auto!important;gap:16px!important}.ref-search{height:42px!important;background:#fffdf8!important;border:1px solid #dfd3c3!important;border-radius:11px!important;box-shadow:0 3px 12px rgba(69,54,37,.035)!important}.ref-search:focus-within{border-color:#c8a66e!important;box-shadow:0 0 0 3px rgba(180,134,67,.11)!important}.ref-search input{font-size:13px!important}.ref-top-heritage{height:70px!important}.ref-top-heritage img{height:70px!important;filter:saturate(.88) sepia(.08)}.ref-top-heritage em{color:#906a3f!important;font-size:17px!important;text-shadow:0 1px #fff}.ref-bell{color:#7d5d35!important}.ref-user-menu{background:#fffaf1;border:1px solid #e9ddcc;border-radius:13px;padding:6px 8px 6px 6px;min-width:205px!important;box-shadow:0 6px 18px rgba(59,47,35,.04)}.ref-user-menu .avatar{border-color:#d7b979!important}.ref-user-menu .avatar-copy small{color:#9b7139!important}.ref-content{padding:20px 20px 42px!important;background:radial-gradient(circle at 92% 3%,rgba(213,183,132,.17),transparent 23%),linear-gradient(180deg,#fbf7f0 0%,#f6f0e7 100%)!important}
.page-head{margin-bottom:20px}.page-head h1{font-size:38px!important;letter-spacing:-.02em;color:#272a2c}.page-head p{color:#776d61!important}.eyebrow{color:#a07842!important;letter-spacing:.16em!important}.head-actions{gap:8px!important}
.panel,.hero-card,.ref-card{background:rgba(255,252,246,.94)!important;border:1px solid #e7dccd!important;border-radius:15px!important;box-shadow:0 12px 30px rgba(70,53,32,.045)!important}.panel{padding:20px!important}.panel-title h3{color:#302d29}.panel-title>a,.text-link,.inline-add summary{color:#8d642f!important}.round-icon,.stat-icon,.feature-icon{background:#f3eadb!important;color:#976b31!important}
.btn{border-radius:10px!important;min-height:40px;transition:.15s ease}.btn.primary{background:linear-gradient(180deg,#2b353c,#1d272d)!important;color:#fff!important;box-shadow:0 8px 16px rgba(29,39,45,.11)}.btn.primary:hover{background:#151e23!important;transform:translateY(-1px)}.btn.secondary{background:#fffaf3!important;border-color:#d8c7af!important;color:#3c3832!important}.btn.secondary:hover{border-color:#b98b4d!important;background:#fff6e8!important}.btn.dark{background:#20292f!important}.pill{background:#f2eadc!important;color:#8a612f!important;border:1px solid #e1cfb3}.pill.premium{background:#f4dfb8!important;color:#6d4e22!important}
.form-stack input,.form-stack select,.form-stack textarea,.tree-picker select,.inline-search input,.inline-form select{background:#fffdf9!important;border-color:#ded2c2!important;border-radius:10px!important}.form-stack input:focus,.form-stack select:focus,.form-stack textarea:focus,.tree-picker select:focus{border-color:#ba8b4d!important;box-shadow:0 0 0 3px rgba(180,134,67,.1)!important}.compact-form{background:#f8f2e9!important;border:1px solid #eadfce}.divider:before,.divider:after,.relation-block,.people-table .table-head,.people-table .table-row,.list-item{border-color:#eee3d4!important}
.list-item,.people-table .table-row,.research-item{transition:.14s ease}.list-item:hover,.people-table .table-row:hover,.research-item:hover{background:#fcf5e9!important}.status.green{background:#e8efe4!important;color:#4c6945!important}.status.amber{background:#f6ead4!important;color:#8f642c!important}.status.rose{background:#f5e4e2!important;color:#984a42!important}.status.gray{background:#eee9e1!important;color:#756e66!important}
.ref-dashboard-head{height:96px!important;padding:10px 5px 0!important}.ref-dashboard-head h1{font-size:40px!important;letter-spacing:-.025em!important;color:#232629!important}.ref-tree-name{font-size:22px!important}.ref-head-slogan{font-size:18px!important;color:#a87a43!important}.ref-stats{gap:12px!important;margin-bottom:14px!important}.ref-stat{height:96px!important;border-radius:13px!important;border-color:#e7dccd!important;background:rgba(255,252,246,.96)!important;box-shadow:0 8px 20px rgba(68,53,35,.035);padding:14px!important}.ref-stat.warm{background:#fff6e8!important}.ref-stat:nth-child(3){background:#f7f7ef!important}.ref-stat:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(68,53,35,.07)}.ref-stat-icon{background:#edf0e7!important;color:#26342f!important}.ref-stat.warm .ref-stat-icon{background:#f5e5c8!important;color:#9b6a2e!important}.ref-stat b{font-size:23px!important}.ref-stat em{color:#826136!important}.ref-main-grid{gap:14px!important;margin-bottom:14px!important;grid-template-columns:minmax(0,2.05fr) minmax(350px,.98fr)!important}.ref-card{border-radius:14px!important}.ref-tree-card{height:426px!important;padding:14px 16px!important}.ref-card-head{height:52px!important}.ref-card-title h2{font-size:21px!important}.ref-card-title p{font-size:13px!important}.ref-tree-controls button,.ref-tree-controls a{border-radius:8px!important;border-color:#ddd0bd!important;background:#fffaf3!important}.ref-tree-controls .open-tree{background:#202a30!important;color:#fff!important;border-color:#202a30!important}.ref-tree-stage{background:radial-gradient(circle at center,rgba(255,253,247,.95) 0,rgba(251,246,237,.95) 70%),#fbf7ef!important;border-radius:12px}.ref-tree-watermark{opacity:.08!important}.ref-tree-person{border-radius:11px!important;border-color:#dbc9ad!important;box-shadow:0 8px 18px rgba(69,50,28,.075)!important;background:#fffaf2!important}.ref-tree-person.active{background:#253038!important;border-color:#c59a58!important;color:#fff!important;box-shadow:0 0 0 2px rgba(197,154,88,.18),0 12px 26px rgba(40,36,31,.16)!important}.ref-tree-person.active small{color:#d9c9b5!important}.ref-marriage{color:#b27c35!important}.ref-connector{border-color:#b98949!important}.ref-person-card{padding:14px 15px!important}.ref-person-photo{border-radius:11px!important;border:1px solid #d8c6ad!important;box-shadow:0 7px 16px rgba(72,54,34,.1)}.ref-person-name h2{font-size:24px!important}.ref-person-tabs{border-color:#e8ddcf!important}.ref-person-tabs .active{color:#7f5726!important;border-color:#b48140!important}.ref-family-grid,.ref-children{border-color:#eadfce!important}.mini-face{background:#efe3d2!important;color:#79552d!important;border-color:#ddc8aa!important}.ref-person-actions a{border-color:#ddcfbd!important;background:#fffaf3!important}.ref-person-actions .profile{background:#252e34!important;color:#fff!important}.ref-bottom-grid{gap:14px!important}.ref-module{padding:13px 14px!important}.module-icon{background:#f3e3c8!important;color:#9b6829!important}.ref-ai-cards>a,.ref-product-cards>a{border-color:#e7dac7!important;border-radius:10px!important;background:#fffaf3!important;box-shadow:0 7px 16px rgba(64,49,32,.035)}.ref-ai-cards>a:hover,.ref-product-cards>a:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(64,49,32,.07)}
.auth-body{background:radial-gradient(circle at 7% 8%,rgba(213,183,132,.18),transparent 30%),linear-gradient(135deg,#f7f0e5,#eee4d6)!important}.auth-wrap{border-color:#dfd0bb!important;border-radius:24px!important;box-shadow:0 34px 90px rgba(50,39,27,.14)!important}.auth-brand{background:linear-gradient(155deg,#252d31,#1d2529)!important;padding:48px!important;position:relative;overflow:hidden}.auth-brand:after{content:"";position:absolute;right:-55px;bottom:-70px;width:250px;height:250px;background:url('../assets/brand/logo-icon.png') center/contain no-repeat;opacity:.08;filter:sepia(1)}.auth-brand .eyebrow{color:#d5b67d!important}.auth-brand p{color:#ddd4c8!important}.auth-full-logo{position:relative;z-index:1;background:#fbf5eb!important;border-color:#d5b77f!important;border-radius:14px!important;box-shadow:0 12px 30px rgba(0,0,0,.18)!important}.auth-card{background:#fffcf7!important;padding:48px!important}.auth-card h2{font-size:32px!important}.auth-foot a{color:#8e642d!important}.security-note{background:#f5efe5!important;color:#796f63!important}
.people-table .table-row{border-radius:8px}.profile-avatar{background:linear-gradient(145deg,#2b353c,#1d272d)!important;box-shadow:0 12px 28px rgba(30,39,45,.18)!important}.live-tree{background:radial-gradient(circle at center,#fffdf8 0,#faf5ed 68%,#f3ebdf 100%)!important}.live-person{background:#fffaf3!important;border-color:#decdb6!important;box-shadow:0 8px 22px rgba(72,54,34,.07)!important}.main-node{border-color:#b38548!important}.tree-toolbar .active{background:#252f35!important;border-color:#252f35!important}.timeline-dot{background:#aa7b3d!important;box-shadow:0 0 0 4px #f1e6d5!important}.progress span{background:linear-gradient(90deg,#9c6d32,#d0a65f)!important}
@media(max-width:1380px){.app-shell.ref-shell{grid-template-columns:226px minmax(0,1fr)}.ref-sidebar{width:226px}.ref-main-grid{grid-template-columns:1fr!important}.ref-tree-card{height:auto!important;min-height:430px}.ref-person-card{min-height:390px}.ref-topbar{grid-template-columns:minmax(300px,1fr) auto!important}.ref-top-heritage{display:none!important}}
@media(max-width:920px){.app-shell.ref-shell{grid-template-columns:1fr}.ref-sidebar{width:238px!important;left:-238px!important}.ref-sidebar.open{left:0!important}.ref-content{padding:14px!important}.ref-topbar{height:64px!important;display:flex!important}.ref-user-menu{min-width:auto!important;background:transparent;border:0;padding:0;box-shadow:none}.ref-stats{grid-template-columns:repeat(2,1fr)!important}.ref-main-grid{grid-template-columns:1fr!important}.ref-bottom-grid{grid-template-columns:1fr!important}.ref-tree-card{min-height:440px}.page-head h1{font-size:32px!important}}
@media(max-width:560px){.ref-stats{grid-template-columns:1fr!important}.ref-content{padding:11px!important}.panel{padding:15px!important;border-radius:13px!important}.ref-dashboard-head h1{font-size:31px!important}.ref-tree-card{padding:10px!important}.auth-card{padding:28px 18px!important}.auth-brand{display:none!important}}
.mobile-return{display:none}
@media(max-width:920px){.mobile-return{display:flex;position:fixed;left:10px;right:10px;bottom:10px;z-index:100;gap:8px;padding:8px;border:1px solid #ddcfbc;border-radius:15px;background:rgba(250,244,235,.96);backdrop-filter:blur(12px);box-shadow:0 14px 34px rgba(45,38,30,.16)}.mobile-return a{flex:1;min-height:44px;border-radius:10px;display:flex;align-items:center;justify-content:center;text-decoration:none;font-weight:800}.mobile-return .homebtn{background:#fffaf3;border:1px solid #cfbfa9;color:#37322d}.mobile-return .loginbtn{background:#202a30;color:#fff}}

/* =========================================================
   RODOPIS v2.2.0 — approved visual master implementation
   Reference: premium genealogy dashboard / parchment + anthracite + gold
   ========================================================= */
:root{
  --rp-ink:#171b1d;--rp-anth:#20282d;--rp-anth-2:#182126;--rp-paper:#f7f1e7;--rp-paper-2:#fcf9f2;
  --rp-gold:#b8873b;--rp-gold-2:#c59a55;--rp-muted:#655b50;--rp-line:#e7dac8;--rp-shadow:0 10px 28px rgba(75,55,32,.055)
}
.ui-icon{width:1.15em;height:1.15em;display:inline-block;vertical-align:-.18em;flex:0 0 auto}
body{background:#f6f0e7;color:var(--rp-ink)}
.app-shell.ref-shell{grid-template-columns:238px minmax(0,1fr)!important;background:#f6f0e7!important}
.ref-sidebar{width:238px!important;height:100vh!important;display:flex!important;flex-direction:column!important;padding:0 12px 14px!important;background:
  radial-gradient(circle at 3% 94%,rgba(184,135,59,.13),transparent 24%),
  linear-gradient(180deg,#222b30 0%,#1c252a 58%,#171f23 100%)!important;
  box-shadow:9px 0 28px rgba(24,28,30,.11)!important;overflow:hidden!important}
.ref-brand.ref-brand-live{height:88px!important;min-height:88px!important;margin:0 4px 5px!important;padding:12px 4px 13px!important;border-bottom:1px solid rgba(231,214,183,.25)!important;background:none!important}
.sidebar-logo-panel{height:58px!important;width:100%!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:hidden!important}
.sidebar-logo-panel img{width:100%!important;height:58px!important;object-fit:contain!important;object-position:center!important;border-radius:9px!important}
.ref-nav{min-height:0!important;flex:1 1 auto!important;overflow-y:auto!important;overflow-x:hidden!important;padding:6px 1px 8px!important;gap:2px!important;scrollbar-width:thin;scrollbar-color:rgba(197,154,85,.45) transparent}
.ref-nav::-webkit-scrollbar{width:4px}.ref-nav::-webkit-scrollbar-thumb{background:rgba(197,154,85,.38);border-radius:8px}
.ref-nav a{height:40px!important;min-height:40px!important;padding:0 10px!important;gap:12px!important;border-radius:8px!important;color:#efe8dc!important;font:500 14px/1 "Playfair Display",Georgia,serif!important;letter-spacing:-.005em!important}
.ref-nav a i{width:27px!important;height:28px!important;display:grid!important;place-items:center!important;color:#e8c779!important;font-size:18px!important}
.ref-nav a i .ui-icon{width:19px;height:19px;stroke-width:1.75}
.ref-nav a:hover{background:rgba(255,255,255,.055)!important;color:#fff!important;transform:none!important}
.ref-nav a.active{background:linear-gradient(90deg,rgba(170,124,59,.50),rgba(117,82,39,.28))!important;border:1px solid rgba(219,174,98,.29)!important;box-shadow:inset 3px 0 0 #d8ad60,0 7px 16px rgba(0,0,0,.10)!important;color:#ffe7b7!important}
.ref-nav-divider{height:1px!important;background:rgba(229,211,178,.22)!important;margin:10px 7px!important;min-height:1px!important}.nav-extra-divider{margin-top:14px!important}
.nav-section-label{padding:5px 12px 7px;color:#a99880;font:700 8px/1 "Source Sans 3",Arial,sans-serif;letter-spacing:.18em;text-transform:uppercase}
.ref-premium-card{flex:0 0 auto!important;margin:9px 1px 0!important;padding:13px 12px 12px!important;border:1px solid rgba(211,168,95,.52)!important;border-radius:11px!important;background:linear-gradient(145deg,rgba(138,100,47,.30),rgba(54,48,40,.27))!important;box-shadow:inset 0 1px rgba(255,255,255,.04),0 10px 26px rgba(0,0,0,.11)!important}
.ref-premium-title{font-size:15px!important}.ref-premium-title span{width:22px;height:22px;display:grid;place-items:center}.ref-premium-title .ui-icon{width:21px;height:21px}
.ref-premium-card p{margin:8px 0 10px 31px!important;color:#ede5d9!important;font-size:10px!important}.ref-premium-card>a{height:34px!important;background:linear-gradient(180deg,#f5d89a,#eabf70)!important;color:#382d21!important}
.ref-sidebar-leaves{bottom:-60px!important;left:-28px!important;opacity:.17!important;color:#c2944e!important}

.ref-main{min-width:0!important;background:#f7f1e7!important}
.ref-topbar{height:72px!important;padding:0 17px!important;grid-template-columns:minmax(360px,520px) minmax(250px,1fr) auto!important;gap:16px!important;background:rgba(255,252,246,.985)!important;border-bottom:1px solid #e6d9c7!important;box-shadow:0 5px 18px rgba(66,49,29,.035)!important;overflow:hidden!important}
.ref-search{height:42px!important;padding:0 11px!important;border:1px solid #dfd3c2!important;border-radius:10px!important;background:#fffdf9!important;box-shadow:0 2px 9px rgba(55,43,29,.035)!important}
.ref-search .search-glyph{display:grid;place-items:center;width:22px;color:#2c3539!important;transform:none!important}.ref-search .search-glyph .ui-icon{width:20px;height:20px}
.ref-search input{font-size:13px!important}.ref-search kbd{font-size:10px!important;border-color:#e0d5c5!important;background:#fff!important}
.ref-top-heritage{height:72px!important;min-width:300px!important;justify-content:flex-start!important}.ref-top-heritage img{width:460px!important;height:72px!important;opacity:.96!important;filter:saturate(.88) sepia(.08)!important;object-position:right center!important}.ref-top-heritage:after{background:linear-gradient(90deg,#fffdf8 2%,rgba(255,253,248,.5) 24%,rgba(255,253,248,0) 67%)!important}.ref-top-heritage em{left:12px!important;top:13px!important;font-size:17px!important;line-height:.96!important;color:#8e6638!important;text-shadow:0 1px 0 #fff!important}
.ref-top-actions{gap:14px!important}.ref-bell{display:grid!important;place-items:center!important;color:#795832!important;width:36px!important;height:36px!important;border-radius:50%!important}.ref-bell:hover{background:#f7ecda!important}.ref-bell .ui-icon{width:20px;height:20px}
.ref-user-menu{min-width:205px!important;min-height:48px!important;padding:5px 8px 5px 6px!important;border:1px solid #e7dac8!important;border-radius:14px!important;background:#fff9ef!important;box-shadow:0 6px 18px rgba(62,47,31,.04)!important}.ref-user-menu .avatar{width:36px!important;height:36px!important;border:2px solid #d6b36f!important}.ref-user-menu .avatar-copy b{font-size:13px!important}.ref-user-menu .avatar-copy small{display:flex!important;align-items:center!important;gap:4px!important;font-size:9px!important;color:#9a6b30!important}.ref-user-menu .avatar-copy small .ui-icon{width:11px;height:11px}.ref-user-arrow{display:grid;place-items:center;width:25px;height:25px}.ref-user-arrow .ui-icon{width:14px;height:14px}

.ref-content{padding:18px 18px 42px!important;background:radial-gradient(circle at 93% 4%,rgba(208,178,126,.15),transparent 23%),linear-gradient(180deg,#fbf7ef 0%,#f6efe5 100%)!important}
.ref-dashboard-head{height:102px!important;padding:12px 5px 0!important;overflow:hidden!important;background:linear-gradient(90deg,rgba(251,247,239,1) 0%,rgba(251,247,239,.96) 40%,rgba(251,247,239,.15) 73%,rgba(251,247,239,0) 100%),url('../assets/reference/top-village.png') right center/620px 104px no-repeat!important;border-radius:0!important;margin:0 0 0!important}
.ref-dashboard-head:after{right:24px!important;top:5px!important;width:155px!important;height:105px!important;opacity:.04!important}.ref-dashboard-head h1{font-size:42px!important;line-height:.94!important;margin:0 0 7px!important;font-weight:600!important;letter-spacing:-.035em!important}.ref-tree-name{font-size:21px!important}.ref-tree-name a{color:#9b6b2e!important}.ref-head-slogan{font-size:17px!important;margin:29px 65px 0 0!important;color:#9f6e34!important;text-shadow:0 1px #fff!important}
.ref-stats{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:10px!important;margin:0 0 12px!important}.ref-stat{height:94px!important;padding:13px 12px!important;grid-template-columns:45px 1fr!important;gap:10px!important;border-radius:11px!important;border:1px solid #eadfce!important;background:#fffdf8!important;box-shadow:0 6px 16px rgba(69,52,31,.035)!important}.ref-stat.warm{background:#fff7ea!important}.ref-stat:nth-child(3){background:#f8f8f0!important}.ref-stat-icon{width:40px!important;height:40px!important}.ref-stat-icon .ui-icon{width:22px;height:22px}.ref-stat b{font-size:22px!important}.ref-stat small{font-size:11px!important}.ref-stat em{font-size:8.5px!important;margin-top:9px!important}
.ref-main-grid{grid-template-columns:minmax(0,2.05fr) minmax(335px,.98fr)!important;gap:11px!important;margin-bottom:11px!important}.ref-card{border:1px solid #e6dbc9!important;border-radius:11px!important;background:#fffdf8!important;box-shadow:0 6px 20px rgba(60,46,31,.035)!important}.ref-tree-card{height:410px!important;padding:13px 14px!important}.ref-card-head{height:49px!important}.ref-card-title img{width:40px!important;height:40px!important}.ref-card-title h2{font-size:20px!important}.ref-card-title p{font-size:13px!important}.ref-card-title small{font-size:9px!important}.ref-tree-controls button,.ref-tree-controls>a{height:31px!important;border-radius:7px!important;background:#fffaf3!important;border-color:#ded1bf!important}.ref-tree-controls .open-tree{background:#202a30!important;border-color:#202a30!important;color:#fff!important;box-shadow:0 5px 12px rgba(32,42,48,.10)!important}.ref-tree-stage{height:330px!important;border-radius:9px!important;background:radial-gradient(circle at 50% 45%,rgba(255,255,255,.98),rgba(250,245,236,.96))!important}.ref-tree-watermark{opacity:.055!important}.ref-tree-person{border-color:#d9c7aa!important;background:#fffaf2!important;box-shadow:0 5px 13px rgba(69,50,29,.06)!important}.ref-tree-person.active{background:#222c31!important;border-color:#c49751!important;box-shadow:0 0 0 2px rgba(196,151,81,.16),0 10px 20px rgba(33,38,41,.16)!important}.ref-marriage,.ref-connector{color:#b57832!important;border-color:#b57832!important}
.ref-person-card{padding:13px 14px!important}.ref-person-photo{width:88px!important;height:105px!important;border-radius:9px!important}.ref-person-name h2{font-size:23px!important}.ref-person-name p{font-size:13px!important}.ref-person-name>div{font-size:9px!important}.ref-person-tabs{margin-top:11px!important}.ref-person-tabs span{font-size:9px!important}.ref-family-grid h3,.ref-children h3{font-size:12px!important}.ref-person-actions a{min-height:31px!important}.ref-person-actions .profile{background:#fffaf3!important;color:#41382e!important;border-color:#d9cab4!important}
.ref-bottom-grid{gap:11px!important}.ref-module{padding:12px 13px!important}.ref-module header h2{font-size:18px!important}.ref-ai-cards>a,.ref-product-cards>a{background:#fffaf3!important;border:1px solid #eadbc5!important;box-shadow:0 5px 14px rgba(61,47,32,.035)!important}

/* Full tree page — compact premium workspace, profile-first right panel */
.view-tree .ref-content{padding-top:12px!important}.view-tree .genealogy-head{min-height:68px!important;margin:0 0 10px!important;padding:4px 3px 7px!important;display:flex!important;align-items:flex-end!important;background:linear-gradient(90deg,rgba(251,247,239,.97),rgba(251,247,239,.78) 58%,rgba(251,247,239,.15)),url('../assets/reference/top-village.png') right center/470px 90px no-repeat!important;border-bottom:1px solid rgba(224,211,192,.6)}
.view-tree .genealogy-head .eyebrow{display:none!important}.view-tree .genealogy-head h1{font-size:31px!important;margin:0!important}.view-tree .genealogy-head p{display:none!important}.view-tree .genealogy-tree-picker{display:flex!important;align-items:end!important;gap:7px!important}.view-tree .genealogy-tree-picker label>span{font-size:7px!important}.view-tree .genealogy-tree-picker select{min-width:160px!important;height:35px!important;font-size:10px!important}
.tree-workspace-grid{grid-template-columns:minmax(0,2.05fr) minmax(330px,.98fr)!important;gap:11px!important;align-items:stretch!important}.tree-workspace-grid .pedigree-shell{border-radius:11px!important;background:#fffdf8!important;box-shadow:var(--rp-shadow)!important}.pedigree-toolbar{height:49px!important;padding:8px 11px!important;background:#fffaf3!important;border-bottom:1px solid #e7dac8!important}.pedigree-modes a{height:31px!important;font-size:8.5px!important;border-radius:7px!important}.pedigree-modes a.active{background:#202a30!important;border-color:#202a30!important}.pedigree-actions button,.pedigree-actions a{height:31px!important;border-radius:7px!important}.pedigree-canvas{min-height:535px!important;background:radial-gradient(circle at 50% 39%,rgba(255,255,255,.99),rgba(249,243,233,.97))!important}.pedigree-canvas:before{inset:45px 19%!important;background-size:390px!important;opacity:.055!important}.pedigree-inner{min-height:535px!important;min-width:760px!important;padding:27px 22px!important}.generation-label{font-size:9px!important;color:#957a59!important}.pedigree-node{min-width:165px!important;max-width:205px!important;padding:8px 9px!important;border-radius:9px!important;border-color:#dcc7a8!important;background:#fffaf2!important;box-shadow:0 6px 15px rgba(67,49,29,.065)!important}.pedigree-node.selected-node,.pedigree-node.focus-node.selected-node{outline:2px solid rgba(190,139,66,.38)!important;outline-offset:2px!important}.pedigree-node.focus-node{background:#222c31!important;border-color:#bd8a43!important;color:#fff!important}.pedigree-photo{width:42px!important;height:42px!important}.pedigree-connector{color:#b57d37!important;height:29px!important;line-height:29px!important}.partner-link{color:#b57d37!important}.pedigree-foot{min-height:34px!important;padding:7px 12px!important;background:#fbf5eb!important;font-size:7.5px!important}
.tree-inspector.tree-profile-card{position:sticky!important;top:84px!important;max-height:calc(100vh - 96px)!important;overflow:auto!important;padding:13px!important;border-radius:11px!important;background:#fffdf8!important;box-shadow:var(--rp-shadow)!important}.tree-profile-head{display:grid;grid-template-columns:82px 1fr 32px;gap:10px;align-items:start;padding-bottom:12px}.tree-profile-photo{width:82px;height:101px;border-radius:9px;overflow:hidden;background:linear-gradient(145deg,#e5d8c2,#c8ad83);border:1px solid #d4c09e;display:grid;place-items:center;color:#6b5135;font:700 18px "Playfair Display",Georgia,serif;box-shadow:0 6px 14px rgba(63,48,31,.08)}.tree-profile-photo img{width:100%;height:100%;object-fit:cover;filter:saturate(.78) sepia(.08)}.tree-profile-identity .eyebrow{font-size:7px!important;letter-spacing:.18em!important;margin:5px 0 3px!important;display:block}.tree-profile-identity h2{font:600 22px/1.04 "Playfair Display",Georgia,serif;margin:0 0 4px;color:#2c2925}.tree-profile-identity>p{font:500 12px "Playfair Display",Georgia,serif;margin:0;color:#6c6258}.tree-profile-meta{display:flex;flex-direction:column;gap:4px;margin-top:10px}.tree-profile-meta span{display:flex;align-items:center;gap:5px;color:#776a5d;font-size:8.5px}.tree-profile-meta .ui-icon{width:13px;height:13px;color:#a36e2c}.tree-profile-edit{width:30px;height:30px;display:grid;place-items:center;border:1px solid #dfd1bd;border-radius:8px;background:#fffaf3;color:#7c5b35}.tree-profile-edit .ui-icon{width:15px;height:15px}.tree-profile-tabs{display:grid;grid-template-columns:1.45fr repeat(4,1fr);border-top:1px solid #eadfce;border-bottom:1px solid #eadfce;margin:0 -2px 11px;overflow:auto}.tree-profile-tabs a{min-width:max-content;text-align:center;padding:9px 3px 8px;border-bottom:2px solid transparent;text-decoration:none;color:#776c60;font:600 8px "Source Sans 3",Arial,sans-serif}.tree-profile-tabs a.active{color:#5b3d1e;border-color:#b77d32}.tree-profile-tabs i{font-style:normal;background:#f0e9df;border-radius:999px;padding:1px 4px;margin-left:2px;font-size:7px}.tree-profile-family-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-bottom:10px;border-bottom:1px solid #eadfce}.tree-profile-family-grid>section+section{border-left:1px solid #eadfce;padding-left:10px}.tree-profile-family-grid h3,.tree-profile-children h3{font:600 12px "Playfair Display",Georgia,serif;margin:0 0 7px;color:#383028}.tree-family-person{display:grid;grid-template-columns:36px 1fr;gap:7px;align-items:center;text-decoration:none;color:#40372f;margin:6px 0}.tree-family-face{width:35px;height:35px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#e8dcc9;border:1px solid #d7c2a2;color:#6d5338;font:700 8px "Playfair Display",Georgia,serif}.tree-family-face img{width:100%;height:100%;object-fit:cover;filter:saturate(.75) sepia(.08)}.tree-family-person b,.tree-family-person small{display:block}.tree-family-person b{font:600 9px "Playfair Display",Georgia,serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tree-family-person small{font-size:7.5px;color:#8c7c6b;margin-top:1px}.tree-family-person.large .tree-family-face{width:45px;height:45px}.tree-profile-empty{font-size:8px;color:#998a79;font-style:italic}.tree-profile-children{padding:10px 0;border-bottom:1px solid #eadfce}.tree-profile-children>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.tree-profile-children .tree-family-person{grid-template-columns:30px 1fr;margin:0}.tree-profile-children .tree-family-face{width:29px;height:29px}.tree-profile-children .tree-family-more{width:31px;height:31px;border-radius:50%;border:1px dashed #c6aa80;display:grid;place-items:center;text-decoration:none;color:#8b6231;font-size:8px}.tree-profile-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:10px 0 7px}.tree-profile-actions a{height:31px;display:flex;align-items:center;justify-content:center;gap:3px;border:1px solid #dfd0bc;border-radius:7px;background:#fffaf3;color:#5c4c3a;text-decoration:none;font-size:8px;font-weight:700}.tree-profile-actions .ui-icon{width:12px;height:12px}.tree-profile-full{height:32px;display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid #ddcfbb;border-radius:7px;background:#fffaf3;color:#453a30;text-decoration:none;font-size:8.5px;font-weight:700}.tree-profile-full .ui-icon{width:12px;height:12px}.tree-profile-utility{margin-top:9px;border-top:1px solid #eadfce;padding-top:8px}.tree-profile-utility summary{cursor:pointer;color:#82613b;font:600 9px "Source Sans 3",Arial,sans-serif}.tree-profile-tools{padding-top:9px}.tree-profile-tools .compact-form{margin:0 0 8px!important}.tree-edit-card{width:min(650px,100%)!important}.tree-edit-card h2{margin-bottom:16px!important}

/* Global interior polish */
.page-head{padding:7px 2px 0!important;margin-bottom:14px!important}.page-head h1{font-size:34px!important;line-height:1!important}.page-head p{font-size:12px!important;max-width:760px}.panel,.hero-card{border-radius:12px!important;border-color:#e6dac8!important;background:#fffdf8!important;box-shadow:0 7px 22px rgba(63,48,31,.04)!important}.panel{padding:17px!important}.panel-title h3{font-size:18px!important}.btn{min-height:36px!important;border-radius:8px!important;font-size:10px!important}.form-stack input,.form-stack select,.form-stack textarea,.tree-picker select,.inline-search input,.inline-form select{border-radius:8px!important;background:#fffdf9!important}.round-icon,.stat-icon,.feature-icon{border-radius:50%!important;background:#f1eadf!important;color:#9a6b32!important}

/* Keep target desktop composition longer before stacking */
@media(max-width:1180px){.ref-stats{grid-template-columns:repeat(3,1fr)!important}.ref-main-grid{grid-template-columns:1fr!important}.tree-workspace-grid{grid-template-columns:1fr!important}.tree-inspector.tree-profile-card{position:relative!important;top:auto!important;max-height:none!important}.ref-topbar{grid-template-columns:minmax(300px,1fr) auto!important}.ref-top-heritage{display:none!important}}
@media(min-width:1181px) and (max-width:1380px){.ref-stats{grid-template-columns:repeat(6,minmax(0,1fr))!important}.ref-main-grid{grid-template-columns:minmax(0,2.05fr) minmax(330px,.98fr)!important}.ref-tree-card{height:410px!important}.ref-person-card{min-height:0!important}.ref-bottom-grid{grid-template-columns:1fr 1fr!important}.ref-topbar{grid-template-columns:minmax(330px,480px) minmax(210px,1fr) auto!important}.ref-top-heritage{display:flex!important}}
@media(max-width:920px){.app-shell.ref-shell{grid-template-columns:1fr!important}.ref-sidebar{width:238px!important;left:-238px!important;position:fixed!important;top:0!important;height:100vh!important;transition:left .2s!important}.ref-sidebar.open{left:0!important}.ref-content{padding:12px!important}.ref-dashboard-head{height:auto!important;min-height:85px!important;background:none!important}.ref-head-slogan{display:none!important}.ref-stats{grid-template-columns:repeat(2,1fr)!important}.ref-bottom-grid{grid-template-columns:1fr!important}.ref-topbar{height:64px!important;display:flex!important}.ref-search{flex:1}.ref-user-menu{min-width:auto!important}.ref-user-menu .avatar-copy{display:none!important}.view-tree .genealogy-head{background:none!important;align-items:flex-start!important;flex-direction:column!important}.view-tree .genealogy-tree-picker{width:100%!important}.view-tree .genealogy-tree-picker select{flex:1!important}.tree-profile-family-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.ref-stats{grid-template-columns:1fr!important}.ref-content{padding:9px!important}.ref-dashboard-head h1{font-size:31px!important}.ref-tree-card{padding:10px!important}.tree-profile-family-grid{grid-template-columns:1fr!important}.tree-profile-family-grid>section+section{border-left:0;padding-left:0;border-top:1px solid #eadfce;padding-top:9px}.tree-profile-children>div{grid-template-columns:1fr 1fr}.tree-profile-tabs{grid-template-columns:repeat(5,max-content);gap:8px}.tree-profile-head{grid-template-columns:72px 1fr 30px}.tree-profile-photo{width:72px;height:88px}.pedigree-toolbar{height:auto!important;align-items:flex-start!important;flex-direction:column!important}.pedigree-modes{width:100%;overflow:auto}.pedigree-canvas{min-height:470px!important}.pedigree-inner{min-height:470px!important}.ref-premium-card{display:none!important}}

/* =========================================================
   v2.2.0 FINAL fidelity pass against approved dashboard master
   ========================================================= */
.ref-top-heritage em{display:none!important}
.ref-top-heritage img{width:100%!important;max-width:520px!important;object-fit:cover!important;object-position:center!important}
.ref-sidebar-leaves{font-size:0!important;width:190px!important;height:175px!important;left:-35px!important;bottom:-24px!important;background:url('../assets/brand/logo-icon.png') left bottom/175px auto no-repeat!important;filter:sepia(1) saturate(.75)!important;opacity:.19!important;pointer-events:none!important}
.ref-premium-card{margin-bottom:46px!important;position:relative;z-index:2}
.ref-nav a{font-size:15px!important}
.ref-dashboard-head{height:105px!important;background:
 linear-gradient(90deg,#fbf7ef 0%,rgba(251,247,239,.98) 35%,rgba(251,247,239,.72) 53%,rgba(251,247,239,.20) 76%,rgba(251,247,239,.02) 100%),
 url('../assets/reference/hero-approved-scene.jpg') right 43%/770px 235px no-repeat!important;position:relative!important}
.ref-dashboard-head:before{content:"";position:absolute!important;left:34%;top:22px;width:240px;height:100px;background:url('../assets/brand/logo-icon.png') center/190px auto no-repeat;opacity:.045;pointer-events:none}
.ref-dashboard-head>div,.ref-dashboard-head .ref-head-slogan{position:relative;z-index:1}
.ref-head-slogan{margin:31px 52px 0 0!important;font:italic 19px/1.05 "Playfair Display",Georgia,serif!important;color:#a06b31!important}
.ref-tree-name .ui-icon{width:14px;height:14px;vertical-align:-.1em}
.ref-stat{height:96px!important}.ref-stat b{font-size:24px!important;line-height:1!important}.ref-stat small{font-family:"Playfair Display",Georgia,serif!important;font-size:11px!important}.ref-stat em{display:flex!important;align-items:center!important;gap:3px!important}.ref-stat em .ui-icon{width:10px;height:10px}
.ref-tree-card{height:423px!important}.ref-tree-stage{height:341px!important}.ref-tree-watermark{width:610px!important;height:315px!important;top:17px!important;background-size:530px auto!important;opacity:.105!important;filter:sepia(.7) saturate(.6)!important}
.ref-tree-person{width:174px!important;height:58px!important;grid-template-columns:45px 1fr!important;padding:7px 9px!important}.ref-tree-person i{width:40px!important;height:40px!important}.ref-tree-person b{font-size:10.5px!important}.ref-tree-person small{font-size:8px!important}
.ref-person-card{height:423px!important;overflow:hidden!important}.ref-person-head{height:121px!important;grid-template-columns:94px 1fr 32px!important}.ref-person-photo{width:94px!important;height:108px!important}.ref-person-name h2{font-size:24px!important;line-height:1.02!important}.ref-person-name>p{font-size:13px!important;margin-bottom:11px!important}.ref-person-name>div{font-size:9.5px!important;gap:7px!important}.ref-person-name>div span{display:flex;align-items:flex-start;gap:5px}.ref-person-name>div .ui-icon{width:14px;height:14px;color:#a66f2f;flex:0 0 auto}.ref-more{display:grid!important;place-items:center!important}.ref-more .ui-icon{width:16px;height:16px}
.ref-person-tabs{height:42px!important;gap:15px!important}.ref-person-tabs>span{height:41px!important;font-size:9.5px!important}.ref-family-grid{height:124px!important}.ref-family-grid h3,.ref-children h3{font-size:12.5px!important}.ref-family-grid a b,.ref-children a b{font-size:9.5px!important}.ref-family-grid a small,.ref-children a small{font-size:8px!important}.ref-children{height:72px!important}.ref-person-actions{height:42px!important}.ref-person-actions>a{font-size:9px!important;height:31px!important}
.ref-bottom-grid{min-height:276px!important}.ref-module{height:276px!important}.ref-module>header{height:55px!important}.ref-module h2{font-size:20px!important}.ref-module p{font-size:9.5px!important}.ref-ai-cards,.ref-product-cards{height:195px!important}.ref-thumb,.ref-product-cards>a>img,.locked-pic{height:77px!important}.ref-ai-cards b,.ref-product-cards b{font-size:11.5px!important}.ref-ai-cards small,.ref-product-cards small{font-size:8.25px!important;height:34px!important}.ref-ai-cards>a>span,.ref-product-cards>a>span{height:28px!important}.premium-badge{display:flex!important;align-items:center!important;gap:3px!important}.premium-badge .ui-icon{width:9px;height:9px}
.ref-zoom .ui-icon,.ref-tree-controls .ui-icon{width:13px;height:13px}.ref-tree-controls>a,.ref-tree-controls button{display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important}

/* Full tree page — profile first, editor only on demand */
.view-tree .tree-workspace-grid{grid-template-columns:minmax(0,2.02fr) minmax(350px,.98fr)!important;gap:13px!important}.view-tree .tree-inspector.tree-profile-card{border:1px solid #e2d5c2!important}.tree-profile-head{grid-template-columns:92px 1fr 34px!important}.tree-profile-photo{width:92px!important;height:110px!important}.tree-profile-identity h2{font-size:24px!important}.tree-profile-identity>p{font-size:13px!important}.tree-profile-meta span{font-size:9.5px!important}.tree-profile-tabs a{font-size:9px!important}.tree-profile-family-grid h3,.tree-profile-children h3{font-size:13px!important}.tree-family-person b{font-size:9.5px!important}.tree-family-person small{font-size:8px!important}.tree-profile-actions a,.tree-profile-full{font-size:9px!important}.tree-profile-edit{background:#fffaf3!important}

/* Interior modules inherit the same premium genealogy language */
.view-persons .panel,.view-families .panel,.view-places .panel,.view-events .panel,.view-sources .panel,.view-media .panel,.view-research .panel,.view-settings .panel,.view-membership .panel,.view-account .panel,.view-admin .panel{background:linear-gradient(180deg,#fffdf9,#fffaf3)!important;border:1px solid #e5d7c4!important;box-shadow:0 8px 22px rgba(67,49,29,.045)!important}
.table th,.data-table th{color:#8a6436!important;font-size:9px!important;letter-spacing:.08em!important;text-transform:uppercase!important}.table td,.data-table td{border-color:#eee4d6!important}

@media(min-width:1181px) and (max-width:1380px){
 .ref-dashboard-head{height:101px!important;background-size:650px 210px!important}.ref-head-slogan{margin-right:35px!important}
 .ref-tree-card,.ref-person-card{height:420px!important}.ref-tree-stage{height:338px!important}
 .ref-module{height:268px!important}.ref-ai-cards,.ref-product-cards{height:188px!important}
}
@media(max-width:1180px){.ref-premium-card{margin-bottom:20px!important}.ref-module{height:auto!important}.ref-ai-cards,.ref-product-cards{height:auto!important}}
/* Approved-master spacing corrections after browser comparison */
.ref-dashboard-head{background:
 linear-gradient(90deg,#fbf7ef 0%,rgba(251,247,239,.97) 33%,rgba(251,247,239,.69) 50%,rgba(251,247,239,.14) 76%,rgba(251,247,239,0) 100%),
 url('../assets/reference/top-village-scene.png') right center/760px 214px no-repeat!important}
.ref-card-head{height:66px!important;align-items:flex-start!important}.ref-card-title{padding-top:0!important}.ref-card-title small{display:block!important;margin-top:2px!important}.ref-tree-stage{height:324px!important}.ref-tree-card{height:423px!important}.ref-tree-controls{padding-top:0!important}
.ref-person-card{padding:10px 14px 12px!important}.ref-person-head{height:115px!important}.ref-person-photo{width:92px!important;height:106px!important}.ref-person-name h2{margin-top:3px!important}.ref-person-tabs{margin-top:4px!important}
.ref-person-photo{display:grid!important;place-items:center!important}.ref-person-initials{font:700 24px "Playfair Display",Georgia,serif;color:#74583a}
/* Final master-match accents */
.ref-dashboard-head{background:
 linear-gradient(90deg,#fbf7ef 0%,rgba(251,247,239,.97) 31%,rgba(251,247,239,.48) 50%,rgba(251,247,239,.08) 75%,rgba(251,247,239,0) 100%),
 url('../assets/reference/top-village-scene.png') right center/770px 216px no-repeat!important}
.ref-connector{background:#b57832!important;width:1px!important}.ref-connector:before{background:#b57832!important;opacity:.88!important}.ref-tree-watermark{opacity:.13!important}
.page-head{position:relative!important;overflow:hidden!important;min-height:66px}.page-head:after{content:"";position:absolute;right:16px;top:-24px;width:135px;height:105px;background:url('../assets/brand/logo-icon.png') center/105px auto no-repeat;opacity:.035;pointer-events:none}
@media(max-height:700px) and (min-width:921px){.ref-premium-card{display:none!important}.ref-sidebar-leaves{display:none!important}.ref-nav{padding-bottom:14px!important}}

/* =========================================================
   v2.3.0 — contextual sample portraits + real product imagery
   ========================================================= */
.sample-photo-badge{position:absolute;right:5px;bottom:5px;z-index:4;display:inline-flex;align-items:center;justify-content:center;min-height:18px;padding:3px 6px;border-radius:999px;background:rgba(37,42,46,.88);color:#f6ddae;border:1px solid rgba(219,182,116,.65);font:800 7px/1 "Source Sans 3",sans-serif;letter-spacing:.08em;box-shadow:0 2px 7px rgba(0,0,0,.18);white-space:nowrap;pointer-events:none}
.sample-photo-badge.tree-mini{right:1px;bottom:1px;min-width:13px;min-height:13px;padding:2px 3px;font-size:0;border-width:1px}.sample-photo-badge.tree-mini:after{content:"V";font:800 7px/1 "Source Sans 3",sans-serif;color:#f6ddae}
.ref-avatar,.ref-person-photo,.mini-face,.ref-tree-person i,.ref-tree-children>a,.gene-person-photo,.gene-profile-portrait,.pedigree-photo,.tree-profile-photo,.tree-family-face,.account-photo-wrap{position:relative;overflow:hidden}
.ref-avatar img,.ref-person-photo img,.mini-face img,.ref-tree-person i img,.ref-tree-children>a img,.gene-person-photo img,.gene-profile-portrait img,.pedigree-photo img,.tree-profile-photo img,.tree-family-face img,.account-photo-wrap img{width:100%;height:100%;object-fit:cover;display:block}
.ref-avatar.is-sample img,.ref-person-photo.is-sample img,.mini-face.is-sample img,.gene-person-photo.is-sample img,.gene-profile-portrait.is-sample img,.pedigree-photo.is-sample img,.tree-profile-photo.is-sample img,.tree-family-face.is-sample img{filter:saturate(.86) contrast(.98)}
.ref-avatar .sample-photo-badge{right:-2px;bottom:-1px;transform:scale(.72);transform-origin:right bottom}
.ref-person-photo .sample-photo-badge,.tree-profile-photo .sample-photo-badge,.gene-profile-portrait .sample-photo-badge{right:6px;bottom:6px}
.gene-person-photo .sample-photo-badge{right:4px;bottom:4px}
.account-photo-row{display:grid;grid-template-columns:128px minmax(0,1fr);gap:18px;align-items:center;margin:4px 0 22px;padding:15px;border:1px solid #eadfce;border-radius:16px;background:#fbf6ed}.account-photo-wrap{width:128px;height:154px;border-radius:14px;background:#eee5d7;box-shadow:0 7px 20px rgba(57,40,24,.08)}.account-photo-copy b{display:block;font:600 17px "Playfair Display",Georgia,serif;color:#27231f}.account-photo-copy p{margin:5px 0 12px;color:#756b60;font-size:12px;line-height:1.45}.account-avatar-upload{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-bottom:8px}.account-avatar-upload input[type=file]{max-width:260px;font-size:11px}.account-profile-panel>.form-stack{border-top:1px solid #eee2d4;padding-top:18px}
.product-photo{height:230px;background:#efe7d9;overflow:hidden;border-radius:16px 16px 0 0}.product-photo img{width:100%;height:100%;display:block;object-fit:cover}.product-card.featured .product-photo{background:#dcc08c}.product-card .product-copy{min-height:215px}
.sample-photo-explainer{display:flex;align-items:flex-start;gap:8px;margin-top:8px;padding:8px 10px;border-radius:10px;background:#f8f0e2;color:#705e48;font-size:10px;line-height:1.4}.sample-photo-explainer b{white-space:nowrap;color:#9a6e30}
@media(max-width:700px){.account-photo-row{grid-template-columns:88px 1fr}.account-photo-wrap{width:88px;height:108px}.product-photo{height:190px}}
/* v2.3.0 — sample portrait disclosure */
.sample-photo-legend{display:flex;align-items:center;gap:7px;color:#786a58;font-size:11px;line-height:1.35;margin-top:5px}
.sample-photo-legend b{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:999px;background:#b8873b;color:#fff;font:700 10px/1 'Source Sans 3',sans-serif;box-shadow:0 1px 4px rgba(65,45,19,.16)}
.tree-page-sample-legend{position:absolute;left:18px;bottom:12px;z-index:6;padding:5px 9px;border:1px solid rgba(184,135,59,.24);border-radius:999px;background:rgba(252,249,242,.9);backdrop-filter:blur(6px);pointer-events:none}
.profile-sample-photo-note{margin:-4px 0 14px 0}
@media(max-width:760px){.tree-page-sample-legend{position:static;margin:8px 10px}.dashboard-sample-legend{font-size:10px}}


/* v2.3.4 — zlepšená čitateľnosť písma v bočnom menu a hromadnom zozname osôb */
body{font-size:15px;line-height:1.45}
.ref-nav a{min-height:46px;padding:0 14px;font-family:"Source Sans 3",Arial,sans-serif;font-size:17px;font-weight:700;letter-spacing:.01em;line-height:1.2}
.ref-nav a i{width:24px;font-size:18px}
.ref-nav a.active{color:#fff3d2;border-color:rgba(230,198,142,.28);box-shadow:inset 0 0 0 1px rgba(255,232,194,.05)}
.ref-nav a:hover{background:rgba(255,255,255,.07)}
.ref-user-menu .avatar-copy b{font-size:14px}
.ref-user-menu .avatar-copy small{font-size:11px;color:#745632}
.page-head p,.panel-title p,.ref-card-title p{font-size:15px;line-height:1.55}
.bulk-toolbar label>span{font-size:11px;letter-spacing:.09em}
.bulk-toolbar input,.bulk-toolbar select{font-size:15px}
.bulk-select-all{font-size:14px;color:#55483b}
.bulk-select-all label{display:flex;align-items:center;gap:10px;font-weight:700}
.bulk-select-all input{width:18px;height:18px}
.bulk-people-list{gap:10px}
.bulk-person-row{padding:12px 13px;gap:12px;border-radius:11px}
.bulk-person-row>div{line-height:1.25}
.bulk-person-row b{font:700 16px/1.2 "Source Sans 3",Arial,sans-serif;color:#2f2923}
.bulk-person-row small{font-size:12px;color:#67594b;margin-top:4px}
.bulk-person-row>a{font-size:12px;font-weight:700;color:#6f4f2d;text-decoration:none}
.person-avatar.small{width:34px;height:34px;font-size:11px;margin-right:0}
.simple-list .list-item b{font-size:13px}
.simple-list .list-item small{font-size:11px;color:#6e655c}
@media (max-width:1180px){.bulk-people-list{grid-template-columns:1fr}.ref-nav a{font-size:16px}}


/* v2.3.5 — grafický rodostrom na tlač */
.print-tree-builder{margin-bottom:16px;border-color:#d9c3a2!important;background:linear-gradient(135deg,#fffdf8,#fbf2e4)!important}.print-tree-builder .panel-title p{max-width:850px}.print-tree-form{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px;align-items:end;margin-top:16px}.print-tree-form label{display:grid;gap:6px}.print-tree-form label>span{font-size:11px;font-weight:800;color:#715d47;text-transform:uppercase;letter-spacing:.06em}.print-tree-form select{height:42px;border:1px solid #d8c7af;border-radius:8px;background:#fffdf9;padding:0 10px;font-size:14px;color:#342f2a}.print-tree-form .btn{height:42px}.pedigree-actions .tree-save-link:first-child{background:#fff4de!important;color:#6f4c21!important;border-color:#d6b67d!important}@media(max-width:1100px){.print-tree-form{grid-template-columns:repeat(2,minmax(180px,1fr))}}@media(max-width:650px){.print-tree-form{grid-template-columns:1fr}}

/* v2.3.8 — dokončenie posledných modulov a pracovných tokov */
.ref-person-tabs>a{height:38px;display:flex;align-items:center;font-family:"Playfair Display",Georgia,serif;font-size:10px;color:#6f675e;white-space:nowrap;gap:4px;text-decoration:none;border-bottom:2px solid transparent}
.ref-person-tabs>a.active,.ref-person-tabs>a:hover{border-bottom-color:#b48140;color:#5f4528}
.ref-person-tabs>a i{font-style:normal;background:#f1ede7;padding:1px 5px;border-radius:8px;font-size:8px}
a.ref-more{display:grid;place-items:center;text-decoration:none}
.families-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.family-unit-card{display:flex;flex-direction:column;gap:13px}.family-unit-card.incomplete{border-style:dashed}.family-unit-card h3{font-size:20px;margin:3px 0 4px}.family-join{color:#b17d3d;font-weight:400}.family-members-line{display:grid;grid-template-columns:1fr 1fr;gap:8px}.family-members-line>a{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid #eadfce;border-radius:9px;background:#fffaf3;text-decoration:none;color:#342d26;font-weight:700}.family-children-list{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.family-children-list>span{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#8c7862;font-weight:800}.family-children-list>a{font-size:11px;text-decoration:none;color:#60472d;background:#f4eadb;border-radius:999px;padding:5px 8px}
.ai-workbench-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:14px}.ai-workbench-grid .tool-card{display:flex;flex-direction:column;gap:10px}.ai-workbench-grid .tool-card h3{font:600 20px "Playfair Display",Georgia,serif;margin:0}.ai-workbench-grid .tool-card>p{color:#6d6257;line-height:1.55;margin:0}.ai-workbench-grid .tool-card form{margin-top:auto}.ai-workbench-grid .tool-card .text-link{margin-top:4px}
@media(max-width:1050px){.families-grid,.ai-workbench-grid{grid-template-columns:1fr}}


/* =========================================================
   v2.4.0 — zjednodušená navigácia, zbaliteľný sidebar a mobilné UX
   ========================================================= */
html,body{max-width:100%;overflow-x:hidden}.ref-shell{transition:grid-template-columns .2s ease}.ref-sidebar{display:flex!important;flex-direction:column!important;height:100vh!important;overflow:hidden!important}.sidebar-head{position:relative;display:flex;align-items:center}.sidebar-head .ref-brand{flex:1;margin-right:0}.sidebar-collapse{position:absolute;right:-27px;top:27px;width:28px;height:36px;border:1px solid #d8c7af;border-left:0;border-radius:0 9px 9px 0;background:#2c3032;color:#efd69f;display:grid;place-items:center;cursor:pointer;z-index:60;box-shadow:4px 2px 10px rgba(0,0,0,.12)}.sidebar-collapse .ui-icon{width:15px;height:15px;transform:rotate(90deg);transition:transform .2s}.sidebar-role{display:grid;grid-template-columns:30px minmax(0,1fr);gap:9px;align-items:center;margin:2px 5px 8px;padding:9px 10px;border:1px solid rgba(222,194,139,.22);border-radius:9px;background:rgba(255,255,255,.035);color:#f5e7c8}.sidebar-role>span{display:grid;place-items:center;color:#e7c985}.sidebar-role .ui-icon{width:18px;height:18px}.sidebar-role b,.sidebar-role small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-role b{font:700 12px "Source Sans 3",Arial,sans-serif}.sidebar-role small{font-size:10px;color:#c9c0b2;margin-top:1px}.ref-nav{flex:1!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:5px 2px 16px!important;scrollbar-width:thin;scrollbar-color:#8f7548 transparent}.nav-quick{display:grid;gap:3px;padding-bottom:8px;border-bottom:1px solid rgba(218,201,171,.2);margin-bottom:7px}.nav-quick a{min-height:42px!important}.nav-groups{display:grid;gap:4px}.nav-group{border:0;border-radius:9px;overflow:hidden}.nav-group>summary{list-style:none;display:grid;grid-template-columns:25px 1fr 18px;gap:10px;align-items:center;min-height:42px;padding:0 12px;color:#e8e0d3;cursor:pointer;font:700 13px "Source Sans 3",Arial,sans-serif;border-radius:8px}.nav-group>summary::-webkit-details-marker{display:none}.nav-group>summary:hover,.nav-group.active-group>summary{background:rgba(255,255,255,.045);color:#fff}.nav-group>summary>i{display:grid;place-items:center;color:#e9cb8b}.nav-group>summary>i .ui-icon{width:18px;height:18px}.nav-group>summary>b{display:grid;place-items:center;color:#9e927f}.nav-group>summary>b .ui-icon{width:14px;height:14px;transition:transform .18s}.nav-group[open]>summary>b .ui-icon{transform:rotate(180deg)}.nav-group-links{display:grid;gap:2px;padding:3px 0 6px 16px}.nav-group-links a{min-height:38px!important;font-size:14px!important;font-weight:600!important;padding:0 10px!important}.nav-group-links a i{width:21px!important}.nav-group-links a i .ui-icon{width:16px;height:16px}.admin-group>summary{color:#f3d79c}.sidebar-backdrop{position:fixed;inset:0;background:rgba(20,25,28,.45);backdrop-filter:blur(2px);z-index:44}.mobile-bottom-nav{display:none}

/* desktop collapsed */
@media(min-width:921px){.ref-shell.sidebar-collapsed{grid-template-columns:76px minmax(0,1fr)!important}.ref-shell.sidebar-collapsed .ref-sidebar{width:76px!important;padding-left:8px!important;padding-right:8px!important}.ref-shell.sidebar-collapsed .ref-brand{height:70px!important;justify-content:center!important;border-bottom:0!important}.ref-shell.sidebar-collapsed .ref-brand img{display:none!important}.ref-shell.sidebar-collapsed .ref-brand:after{content:"";display:block;width:46px;height:46px;background:url('../assets/brand/logo-icon.png') center/contain no-repeat}.ref-shell.sidebar-collapsed .sidebar-collapse{right:-25px;top:18px}.ref-shell.sidebar-collapsed .sidebar-collapse .ui-icon{transform:rotate(-90deg)}.ref-shell.sidebar-collapsed .sidebar-role,.ref-shell.sidebar-collapsed .nav-groups,.ref-shell.sidebar-collapsed .ref-premium-card,.ref-shell.sidebar-collapsed .ref-sidebar-leaves{display:none!important}.ref-shell.sidebar-collapsed .nav-quick{border:0;margin:0;padding:8px 0}.ref-shell.sidebar-collapsed .nav-quick a{width:52px;height:48px;min-height:48px!important;padding:0!important;justify-content:center!important;margin:0 auto}.ref-shell.sidebar-collapsed .nav-quick a span{display:none}.ref-shell.sidebar-collapsed .nav-quick a i{width:auto!important;margin:0!important}.ref-shell.sidebar-collapsed .nav-quick a i .ui-icon{width:22px;height:22px}.ref-shell.sidebar-collapsed .ref-nav{overflow:hidden!important}}

/* mobile/tablet: pracovná plocha bez nutnosti zoomovania */
@media(max-width:920px){
 .ref-shell,.ref-shell.sidebar-collapsed{display:block!important}.ref-main{width:100%!important;min-width:0!important}.ref-sidebar{position:fixed!important;left:0!important;top:0!important;width:min(88vw,340px)!important;max-width:340px!important;height:100dvh!important;transform:translateX(-105%);transition:transform .22s ease;z-index:50!important;padding:0 12px 16px!important;box-shadow:18px 0 45px rgba(0,0,0,.2)}.ref-sidebar.open{transform:translateX(0)}.sidebar-collapse{display:none!important}.ref-brand{height:75px!important}.ref-brand img{width:195px!important}.sidebar-role{margin-bottom:5px}.ref-nav{padding-bottom:84px!important}.nav-group>summary{min-height:46px;font-size:15px}.nav-group-links a{font-size:15px!important;min-height:44px!important}.nav-quick a{font-size:16px!important;min-height:46px!important}
 .ref-topbar{height:62px!important;padding:0 10px!important;display:grid!important;grid-template-columns:42px minmax(0,1fr) auto!important;gap:7px!important;overflow:visible!important}.mobile-only{display:grid!important;place-items:center!important}.ref-search{height:42px!important;min-width:0!important;width:100%!important;margin:0!important}.ref-search input{font-size:16px!important;min-width:0}.ref-search kbd,.ref-top-heritage,.ref-user-menu .avatar-copy,.ref-user-arrow{display:none!important}.ref-top-actions{gap:6px!important}.ref-user-menu{min-width:auto!important}.ref-user-menu .avatar{width:34px!important;height:34px!important}.ref-bell{width:32px!important}
 .ref-content{padding:12px 10px 90px!important;min-width:0!important;overflow-x:hidden!important}.ref-content>*{max-width:100%!important;min-width:0}.page-head{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:9px!important;min-height:0!important;margin-bottom:12px!important;padding-top:3px!important}.page-head:after{display:none}.page-head h1{font-size:28px!important;line-height:1.07!important}.page-head p{font-size:14px!important;line-height:1.45!important}.head-actions{width:100%;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}.head-actions .btn{width:100%!important;min-height:44px!important}
 .panel,.ref-card,.hero-card{min-width:0!important;max-width:100%!important}.panel{padding:14px!important}.panel-title{gap:8px!important}.panel-title h3{font-size:19px!important}.panel-title p{font-size:14px!important}.ref-dashboard-head{height:auto!important;min-height:70px!important;padding:8px 2px 9px!important;background:none!important}.ref-dashboard-head h1{font-size:30px!important}.ref-tree-name{font-size:18px!important}.ref-head-slogan{display:none!important}.ref-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.ref-stat{height:84px!important;padding:10px!important;grid-template-columns:38px 1fr!important;gap:7px!important}.ref-stat-icon{width:36px!important;height:36px!important}.ref-stat b{font-size:20px!important}.ref-stat em{display:none!important}.ref-main-grid,.ref-bottom-grid,.dashboard-grid,.hero-grid,.split-layout,.profile-grid,.system-layout,.families-grid,.ai-workbench-grid,.documents-workspace,.media-page-grid,.tree-workspace-grid,.compare-grid{grid-template-columns:1fr!important}.ref-tree-card{height:auto!important;min-height:390px!important}.ref-person-card{height:auto!important;min-height:0!important}.ref-card-head{height:auto!important;min-height:52px!important;gap:8px}.ref-tree-controls{flex-wrap:wrap;justify-content:flex-end}.ref-tree-controls .open-tree{display:none!important}.ref-person-tabs{overflow-x:auto!important;gap:14px!important}.ref-family-grid{height:auto!important;min-height:110px!important}.ref-children{height:auto!important;min-height:70px!important}.ref-bottom-grid{display:grid!important;gap:10px!important}.ref-ai-cards,.ref-product-cards{grid-template-columns:1fr!important;height:auto!important}.product-grid,.pricing-grid,.stats-grid,.tool-grid,.quick-grid,.report-grid{grid-template-columns:1fr!important}.form-grid,.form-grid.two,.form-grid.three,.filters,.bulk-toolbar,.print-tree-form{grid-template-columns:1fr!important}.form-stack input,.form-stack select,.form-stack textarea,.filters input,.filters select,.bulk-toolbar input,.bulk-toolbar select,.print-tree-form select{font-size:16px!important;max-width:100%!important}.btn,button,input,select,textarea{min-height:44px}.table-panel,.people-table,.tree-workspace,.pedigree-shell,.health-list,.documents-workspace,.media-person-layout{max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}.table-head,.table-row{min-width:620px}.pedigree-canvas{max-width:100vw!important;overflow:auto!important}.pedigree-inner{min-width:720px!important}.tree-inspector.tree-profile-card{position:static!important;max-height:none!important}.bulk-people-list{grid-template-columns:1fr!important}.bulk-person-row{grid-template-columns:auto auto minmax(0,1fr) auto!important}.research-item{grid-template-columns:auto minmax(0,1fr)!important}.research-item .place-tag,.research-item .status{grid-column:2!important}.workflow{display:grid!important;grid-template-columns:1fr!important}.workflow b{display:none}.mobile-bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:42;height:70px;padding:5px max(7px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(7px,env(safe-area-inset-left));display:grid;grid-template-columns:repeat(5,1fr);background:rgba(255,253,248,.97);border-top:1px solid #ddd3c5;box-shadow:0 -7px 24px rgba(58,45,31,.08);backdrop-filter:blur(12px)}.mobile-bottom-nav a,.mobile-bottom-nav button{border:0;background:transparent;text-decoration:none;color:#6f655a;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font:700 10px "Source Sans 3",Arial,sans-serif;min-width:0;padding:2px}.mobile-bottom-nav i{display:grid;place-items:center}.mobile-bottom-nav .ui-icon{width:21px;height:21px}.mobile-bottom-nav .active{color:#8a612f}.mobile-bottom-nav button{cursor:pointer}.sidebar-backdrop:not([hidden]){display:block!important}
}
@media(max-width:520px){.head-actions{grid-template-columns:1fr!important}.ref-stats{grid-template-columns:1fr 1fr!important}.ref-stat small{font-size:10px!important}.ref-card-title p{font-size:12px!important}.ref-person-head{grid-template-columns:76px minmax(0,1fr) 30px!important}.ref-person-photo{width:76px!important;height:92px!important}.ref-person-name h2{font-size:20px!important}.family-members-line{grid-template-columns:1fr!important}}


/* v2.4.1 — genealogické databázy */
.database-search-panel{padding:16px!important}.database-search-form{display:grid;grid-template-columns:1fr 1fr 1.2fr .65fr 1fr auto;gap:10px;align-items:end}.database-search-form label{display:grid;gap:5px}.database-search-form label>span{font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:#7e6d5d}.database-search-form input,.database-search-form select{height:42px;border:1px solid #dacdbc;border-radius:9px;background:#fffdf9;padding:0 10px;font-size:14px}.external-source-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}.external-source-card{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:start}.external-source-card .round-icon{grid-row:1/3}.external-source-card h3{margin:2px 0 4px;font:600 18px "Playfair Display",Georgia,serif}.external-source-card p{margin:0;color:#6e645a;font-size:12px;line-height:1.45}.external-source-card>a{grid-column:2;justify-self:start}.database-results{margin-top:14px}.database-result-list{display:grid;gap:9px;margin-top:12px}.database-result{display:grid;grid-template-columns:minmax(260px,1.45fr) minmax(240px,1fr) auto;gap:16px;align-items:center;border:1px solid #eadfce;border-radius:11px;background:#fffaf4;padding:13px}.database-type{display:inline-flex;padding:3px 7px;border-radius:999px;background:#efe5d5;color:#785a36;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}.database-result h3{font:600 17px "Playfair Display",Georgia,serif;margin:4px 0}.database-result h3 small{font-size:11px;color:#806d5b;font-weight:500}.database-result p{margin:0;color:#574c42;font-size:12px}.database-result-main>small{display:block;margin-top:4px;color:#88796a;font-size:10px}.database-result-relations{display:grid;grid-template-columns:1fr;gap:4px;font-size:11px}.database-result-relations span{display:grid;grid-template-columns:54px 1fr;gap:6px}.database-result-relations b{color:#8a6b47}.database-result-actions{display:grid;justify-items:end;gap:8px}.database-admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}.dataset-list{display:grid;gap:7px}.dataset-row{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:10px;border:1px solid #e8ddce;border-radius:10px;text-decoration:none;color:#392f27;background:#fffaf4}.dataset-row.active{border-color:#aa8150;background:#f7ead8}.dataset-row b,.dataset-row small{display:block}.dataset-row small{font-size:10px;color:#7d7165;margin-top:2px}
@media(max-width:1180px){.database-search-form{grid-template-columns:repeat(3,1fr)}.database-search-form .btn{grid-column:1/-1}.external-source-grid{grid-template-columns:1fr}.database-admin-grid{grid-template-columns:1fr}.database-result{grid-template-columns:1fr}.database-result-actions{justify-items:start}}
@media(max-width:700px){.database-search-form{grid-template-columns:1fr 1fr}.database-search-form label:nth-of-type(3){grid-column:1/-1}.database-result{padding:11px}.database-result-relations{border-top:1px solid #eadfce;padding-top:8px}}

/* v2.4.2 — inteligentnejšie genealogické databázy a zhody */
.database-person-context{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:12px;background:linear-gradient(110deg,#fff9ef,#f2f5ed)!important}.database-person-context h3{font:600 23px "Playfair Display",Georgia,serif;margin:3px 0}.database-person-context p{margin:0;color:#6f6255;font-size:12px}.database-match-kpi{min-width:125px;text-align:center;border-left:1px solid #dfd4c4;padding-left:18px}.database-match-kpi b{display:block;font:700 28px "Playfair Display",Georgia,serif;color:#7b572d}.database-match-kpi span{font-size:10px;color:#75695e}.database-search-form{grid-template-columns:1fr 1fr 1.2fr .65fr .78fr 1fr auto!important}.database-check{grid-column:1/-2;display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:8px!important;align-self:center}.database-check input{width:18px;height:18px}.database-check span{text-transform:none!important;letter-spacing:0!important;font-size:12px!important}.database-result{transition:.15s ease}.database-result.is-linked{border-color:#9fb9a5;background:#f7fbf5}.database-result.is-rejected{opacity:.62;background:#f7f5f2}.database-result-badges{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.match-score{display:inline-flex;padding:3px 7px;border-radius:999px;font-size:9px;font-weight:800}.match-score.good{background:#dfeee3;color:#29513a}.match-score.medium{background:#f5ead3;color:#855f23}.match-score.low{background:#eeeae4;color:#746b61}.match-reasons{margin-top:5px;font-size:9px;color:#66725f}.database-result-relations details{margin-top:6px}.database-result-relations summary{cursor:pointer;font-size:10px;color:#785b38;font-weight:700}.database-result-relations details p{font-size:10px;line-height:1.4;color:#6d6257}.database-result-actions form{margin:0}.database-latest-records{max-height:420px;overflow:auto}.database-delete-form{margin-top:16px;padding-top:14px;border-top:1px solid #eadfce}.profile-tabs a[href="#database-records"] b{background:#efe3d1;color:#7b572d}
@media(max-width:1180px){.database-search-form{grid-template-columns:repeat(3,1fr)!important}.database-check{grid-column:1/-1}.database-search-form>.btn{grid-column:1/-1}.database-result-actions{display:flex;flex-wrap:wrap;justify-items:start}}
@media(max-width:700px){.database-person-context{align-items:flex-start}.database-match-kpi{min-width:90px}.database-search-form{grid-template-columns:1fr 1fr!important}.database-search-form label:nth-of-type(3),.database-check{grid-column:1/-1}.database-result-actions{display:flex;flex-direction:column;align-items:stretch}.database-result-actions .btn{width:100%}}

/* v2.4.3 — participants and roles inside historical index records */
.record-participants-panel{margin-bottom:16px}.record-participant-list{display:grid;gap:8px;margin:12px 0}.record-participant{display:grid;grid-template-columns:auto minmax(180px,1fr) minmax(360px,1.5fr) auto;gap:10px;align-items:center;padding:10px 12px;border:1px solid #e7dac8;border-radius:10px;background:#fffaf4}.record-participant-copy b,.record-participant-copy small{display:block}.record-participant-copy b{font-size:14px}.record-participant-copy small{font-size:11px;color:#75695d;margin-top:3px}.record-role-form{display:grid;grid-template-columns:minmax(150px,.7fr) minmax(180px,1fr) auto;gap:7px;align-items:center}.record-role-form select,.record-role-form input{height:36px;border:1px solid #dacbb7;border-radius:8px;background:#fffdf9;padding:0 9px;font-size:12px}.record-suggestions{margin-top:14px;padding-top:12px;border-top:1px solid #eadfce}.record-suggestion-row{display:grid;grid-template-columns:minmax(220px,.8fr) 1.5fr;gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid #f0e8dc}.record-suggestion-row b,.record-suggestion-row small{display:block}.record-suggestion-row small{font-size:10px;color:#82776b;margin-top:2px}.record-suggestion-row>div:last-child{display:flex;gap:6px;flex-wrap:wrap}.record-suggestion-row form{margin:0}.record-apply-relations{margin-top:14px;padding:12px;border:1px solid #d9ccb8;border-radius:10px;background:#fbf4e9;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.record-apply-relations small{color:#776b5f;max-width:720px}.database-result-actions{flex-wrap:wrap}@media(max-width:980px){.record-participant{grid-template-columns:auto 1fr}.record-role-form{grid-column:1/-1;grid-template-columns:1fr 1fr auto}.record-participant>form:last-child{grid-column:2}.record-suggestion-row{grid-template-columns:1fr}}@media(max-width:640px){.record-role-form{grid-template-columns:1fr}.record-role-form .btn{width:100%}.record-participant{padding:10px}.record-suggestion-row>div:last-child{display:grid}.record-suggestion-row .btn{width:100%;justify-content:flex-start}}

/* v2.4.4 — automatic indexed-record suggestion centre */
.nav-group-links a .nav-count{margin-left:auto;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#c89a58;color:#2d2924;display:inline-grid;place-items:center;font:800 10px "Source Sans 3",Arial,sans-serif}
.suggestion-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.suggestion-kpis .panel{padding:16px!important;display:grid;gap:3px}.suggestion-kpis b{font:700 29px/1 "Playfair Display",Georgia,serif;color:#76532f}.suggestion-kpis span{font-size:11px;color:#72665b}
.suggestion-controls{margin-bottom:14px}.suggestion-controls .form-grid{align-items:end}.suggestion-controls label{display:grid;gap:5px}.suggestion-controls label>span{font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:#7e6d5d}.suggestion-controls select{height:40px;border:1px solid #d9cbb8;border-radius:8px;background:#fffdf9;padding:0 9px}
.suggestion-list{display:grid;gap:11px}.suggestion-card{display:grid;grid-template-columns:minmax(230px,.85fr) minmax(320px,1.45fr) minmax(180px,.62fr);gap:16px;align-items:center;padding:15px!important}.suggestion-person{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center}.suggestion-person h3{font:600 17px "Playfair Display",Georgia,serif;margin:2px 0}.suggestion-person h3 a{text-decoration:none;color:#342b23}.suggestion-person small{font-size:10px;color:#776b5f}.suggestion-record{padding-left:15px;border-left:1px solid #eadfce}.suggestion-record h3{font:600 17px "Playfair Display",Georgia,serif;margin:5px 0 3px}.suggestion-record h3 small{font-size:11px;font-weight:500;color:#7e6c5c}.suggestion-record p{margin:0;color:#53493f;font-size:12px}.suggestion-record>small{display:block;font-size:10px;color:#85786a;margin-top:4px}.suggestion-relatives{display:flex;gap:8px;flex-wrap:wrap;margin-top:7px}.suggestion-relatives span{font-size:9.5px;padding:4px 7px;border-radius:999px;background:#f2eadf;color:#745c42}.suggestion-actions{display:grid;gap:7px;justify-items:stretch}.suggestion-actions form{margin:0}.suggestion-actions .btn{width:100%}.suggestion-actions .text-link{text-align:center;font-size:10px}.view-suggestions .page-head p{max-width:850px}
@media(max-width:1120px){.suggestion-kpis{grid-template-columns:repeat(2,1fr)}.suggestion-card{grid-template-columns:1fr 1fr}.suggestion-actions{grid-column:1/-1;display:flex;flex-wrap:wrap}.suggestion-actions .btn{width:auto}.suggestion-actions form{display:inline-flex}.suggestion-record{border-left:1px solid #eadfce}}
@media(max-width:700px){.suggestion-kpis{grid-template-columns:1fr 1fr}.suggestion-card{grid-template-columns:1fr;padding:12px!important}.suggestion-record{padding-left:0;border-left:0;border-top:1px solid #eadfce;padding-top:10px}.suggestion-actions{grid-column:auto;display:grid}.suggestion-actions form,.suggestion-actions .btn{width:100%}.suggestion-person{grid-template-columns:auto 1fr}.suggestion-person .match-score{grid-column:2;justify-self:start}.view-suggestions .form-grid.four{grid-template-columns:1fr!important}}
.dashboard-suggestion-callout{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 14px;padding:14px 16px!important;background:linear-gradient(110deg,#fff6e7,#f4f7ef)!important;border-color:#dec8a6!important}.dashboard-suggestion-callout h3{font:600 17px "Playfair Display",Georgia,serif;margin:3px 0}.dashboard-suggestion-callout p{margin:0;font-size:11px;color:#6b5f54}.dashboard-suggestion-callout .btn{flex:0 0 auto}@media(max-width:700px){.dashboard-suggestion-callout{align-items:flex-start;flex-direction:column}.dashboard-suggestion-callout .btn{width:100%}}

/* v2.4.5 — external genealogy source catalogue */
.external-research-progress{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:14px}.external-research-progress h3{margin:4px 0;font:600 22px "Playfair Display",Georgia,serif}.external-research-progress p{margin:0;color:#74695e}.external-progress-kpis{display:flex;gap:9px;flex-wrap:wrap}.external-progress-kpis span{min-width:92px;padding:10px 12px;border:1px solid #e4d7c6;border-radius:10px;background:#fffaf3;text-align:center;font-size:11px;color:#74685a}.external-progress-kpis b{display:block;font-size:20px;color:#332b24}.external-search-builder{margin-bottom:14px}.external-query-line{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:12px;padding-top:12px;border-top:1px solid #eadfce;font-size:12px}.external-query-line code{font-size:12px;background:#f2eadf;padding:6px 8px;border-radius:7px}.external-provider-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-bottom:14px}.external-provider-card{position:relative;display:flex;flex-direction:column;gap:10px;min-height:215px}.external-provider-card.status-found{border-color:#a7c3ad!important;box-shadow:inset 4px 0 0 #6d9475!important}.external-provider-card.status-not_found{opacity:.86}.external-provider-head{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center}.external-provider-head h3{font:600 18px "Playfair Display",Georgia,serif;margin:3px 0}.external-provider-head .eyebrow{font-size:8px!important}.external-provider-card>p{margin:0;color:#6e655d;line-height:1.55;font-size:12px;flex:1}.external-provider-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.external-check-status{font-size:9px;font-weight:800;padding:5px 8px;border-radius:999px;background:#efebe5;color:#756b60;white-space:nowrap}.external-check-status.found{background:#e1efe4;color:#466b4e}.external-check-status.checked{background:#e7edf2;color:#4f6575}.external-check-status.not_found{background:#f0ece8;color:#81766b}.external-research-log{border-top:1px solid #eadfce;padding-top:9px}.external-research-log summary{cursor:pointer;font-size:11px;font-weight:800;color:#73532e}.external-save-source{margin-top:8px;border-top:1px dashed #d9c7ae}.external-source-help{margin-bottom:22px}.external-source-help p{margin-bottom:0;color:#6c6258;line-height:1.65}
@media(max-width:900px){.external-provider-grid{grid-template-columns:1fr}.external-research-progress{align-items:flex-start;flex-direction:column}.external-progress-kpis{width:100%}.external-progress-kpis span{flex:1}.external-provider-head{grid-template-columns:auto 1fr}.external-check-status{grid-column:2;justify-self:start}.external-provider-card{min-height:0}}

/* v2.4.6 — searchable source coverage catalogue + place/year recommendations */
.source-coverage-search{margin-bottom:14px}.coverage-context{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.coverage-context h3{margin:4px 0;font:600 20px "Playfair Display",Georgia,serif}.coverage-context p{margin:0;color:#71665c;max-width:860px;font-size:12px;line-height:1.55}
.source-coverage-results{display:grid;gap:11px;margin-bottom:16px}.source-coverage-card{display:grid;grid-template-columns:110px minmax(0,1fr) minmax(160px,220px);gap:16px;align-items:center}.source-coverage-rank{display:grid;justify-items:start;gap:5px}.source-coverage-rank .match-score{font-size:12px;padding:6px 9px}.source-coverage-rank small{font-size:9px;color:#786d62;line-height:1.35}.source-coverage-main h3{margin:4px 0 5px;font:600 18px "Playfair Display",Georgia,serif}.source-coverage-main>p{margin:0 0 7px;color:#675d53;font-size:11px}.coverage-meta{display:flex;gap:7px;flex-wrap:wrap}.coverage-meta span{font-size:9.5px;background:#f4ede4;border-radius:999px;padding:4px 7px;color:#6d604f}.coverage-note{display:block;margin-top:8px;color:#817467;line-height:1.45}.source-coverage-actions{display:grid;gap:7px;justify-items:stretch}.source-coverage-actions .btn{width:100%}.source-coverage-actions form{margin:0;text-align:center}.source-coverage-admin{align-items:start}.coverage-csv-help{margin-top:14px;padding:12px;border:1px solid #e4d6c2;border-radius:10px;background:#fffaf2;display:grid;gap:7px}.coverage-csv-help code{white-space:normal;word-break:break-word;font-size:10px}.coverage-csv-help small{color:#776a5f;line-height:1.5}
.recommended-coverage-panel{margin-bottom:14px}.recommended-coverage-panel .panel-title{align-items:flex-start}.recommended-coverage-panel .panel-title p{margin:4px 0 0;color:#71665c;font-size:11px}.recommended-coverage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.coverage-recommendation{border:1px solid #e4d7c5;border-radius:10px;padding:11px;background:#fffdf9}.coverage-recommendation.status-found{border-color:#a9c4ae;box-shadow:inset 3px 0 0 #729779}.coverage-rec-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px}.coverage-rec-head b{display:block;font:600 14px "Playfair Display",Georgia,serif;color:#3e342b}.coverage-rec-head small{display:block;margin-top:2px;font-size:9.5px;color:#7a6e61}.coverage-rec-meta{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.coverage-rec-meta span{font-size:9px;padding:4px 6px;border-radius:999px;background:#f3ece1;color:#715f4c}.coverage-rec-actions{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap}.coverage-rec-actions>details{flex:1;min-width:180px}.coverage-rec-actions summary{cursor:pointer;font-size:10px;font-weight:800;color:#76552f;padding:6px 0}.coverage-rec-actions details .compact-form{margin-top:6px}.coverage-save-found{border-top:1px dashed #dbc9af;margin-top:8px;padding-top:8px}
@media(max-width:1050px){.source-coverage-card{grid-template-columns:90px 1fr}.source-coverage-actions{grid-column:1/-1;display:flex;flex-wrap:wrap}.source-coverage-actions .btn{width:auto}.recommended-coverage-grid{grid-template-columns:1fr}}
@media(max-width:700px){.coverage-context{align-items:flex-start;flex-direction:column}.source-coverage-card{grid-template-columns:1fr;padding:12px!important}.source-coverage-rank{display:flex;align-items:center}.source-coverage-actions{display:grid}.source-coverage-actions .btn{width:100%}.recommended-coverage-panel{padding:12px!important}.coverage-rec-head{grid-template-columns:auto 1fr}.coverage-rec-head .external-check-status{grid-column:2;justify-self:start}.coverage-rec-actions{display:grid}.coverage-rec-actions>*,.coverage-rec-actions .btn{width:100%}}

/* v2.4.7 – denser metadata for the expanded external-source catalogue */
.external-provider-meta{display:flex;flex-wrap:wrap;gap:.45rem .85rem;margin:.55rem 0 .8rem;color:var(--muted,#64748b);font-size:.88rem}.external-provider-meta span{display:inline-flex;gap:.28rem;align-items:baseline}.external-provider-meta b{color:var(--text,#1f2937);font-weight:700}.external-provider-grid{align-items:start}.external-provider-card{min-width:0}
@media(max-width:720px){.external-provider-meta{display:grid;grid-template-columns:1fr;gap:.2rem}.external-provider-actions{align-items:stretch}.external-provider-actions .btn{width:100%;justify-content:center}}
.external-source-list-head{display:flex;justify-content:space-between;gap:1rem;align-items:flex-end;margin:1.1rem 0 .65rem}.external-source-list-head h3{margin:.12rem 0}.external-source-list-head p{margin:.15rem 0 0;color:var(--muted,#64748b)}
@media(max-width:720px){.external-source-list-head{align-items:stretch;flex-direction:column}.external-source-list-head .btn{width:100%;justify-content:center}}

/* v2.4.8 – unified genealogy search */
.omni-search-panel{position:relative;overflow:hidden}.omni-search-panel:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:linear-gradient(180deg,#7d6442,#b59a72)}
.omni-search-form{display:grid;grid-template-columns:1fr 1.15fr 1.2fr .7fr 1.1fr auto;gap:12px;align-items:end}.omni-search-form label{min-width:0}.omni-search-submit{height:44px;white-space:nowrap}.omni-search-note{margin-top:14px;padding:11px 13px;border-radius:10px;background:var(--surface-soft,#f5f2ec);font-size:.92rem;line-height:1.45}
.omni-start-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px}.omni-start-grid .panel{min-height:180px}.omni-start-grid h3{margin:.55rem 0}.omni-start-grid p{margin:0;color:var(--muted,#667085)}
.omni-kpis{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 16px}.omni-kpis span{background:#fff;border:1px solid var(--line,#e3ded5);border-radius:999px;padding:8px 12px}.omni-kpis b{font-size:1.05rem;margin-right:4px}
.omni-section{margin-bottom:18px}.omni-result-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.omni-result-card{display:block;border:1px solid var(--line,#e3ded5);border-radius:14px;padding:15px;background:#fff;color:inherit;text-decoration:none;min-width:0}.omni-result-card:hover{border-color:#baa984;box-shadow:0 5px 18px rgba(42,36,27,.06)}.omni-result-card h4{margin:8px 0 4px;font-size:1.02rem}.omni-result-card p{margin:2px 0;color:var(--muted,#667085);line-height:1.35}.omni-result-card small{display:block;margin-top:8px}.omni-result-top,.omni-card-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}.omni-card-actions{margin-top:12px;justify-content:flex-start;flex-wrap:wrap}.omni-card-actions form{margin:0}.fs-card{border-color:#d8e5dc;background:linear-gradient(180deg,#fbfefc,#fff)}
.omni-record-list{display:grid;gap:9px}.omni-record-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;border:1px solid var(--line,#e3ded5);border-radius:12px;padding:13px 14px;background:#fff}.omni-record-row h4{margin:5px 0 2px}.omni-record-row p,.omni-record-row small{margin:0;color:var(--muted,#667085)}.omni-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.omni-row-actions form{margin:0}
.integration-state{border-radius:999px;padding:6px 10px;font-weight:700;font-size:.83rem}.integration-state.on{background:#e8f5ec;color:#25703a}.integration-state.off{background:#f6efe3;color:#8b631e}.integration-empty{padding:14px;border:1px dashed var(--line,#d8d2c8);border-radius:12px}.integration-empty p{margin-top:0}.integration-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,.8fr);gap:18px;align-items:center}.integration-row p{margin:.3rem 0;color:var(--muted,#667085)}.integration-config{display:flex;gap:10px;align-items:center;justify-content:flex-end;flex-wrap:wrap}.inline-config-form{display:flex;gap:8px;align-items:center;flex:1;min-width:320px}.inline-config-form input{min-width:220px;flex:1}.compact-provider-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.external-provider-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.coverage-cards .omni-result-card{display:flex;flex-direction:column}.coverage-cards .omni-result-card .btn{margin-top:auto;align-self:flex-start}
@media(max-width:1180px){.omni-search-form{grid-template-columns:repeat(3,minmax(0,1fr))}.omni-search-submit{width:100%}.omni-result-grid,.compact-provider-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.omni-search-form{grid-template-columns:1fr 1fr}.omni-search-form label:nth-of-type(3),.omni-search-form label:nth-of-type(5),.omni-search-submit{grid-column:1/-1}.omni-start-grid,.omni-result-grid,.compact-provider-grid{grid-template-columns:1fr}.omni-record-row,.integration-row{grid-template-columns:1fr}.omni-row-actions{justify-content:flex-start}.inline-config-form{min-width:0;display:grid;grid-template-columns:1fr}.integration-config{justify-content:flex-start}.omni-kpis{display:grid;grid-template-columns:1fr}.omni-kpis span{border-radius:12px}}

/* v2.4.9 – interconnected person research hub */
.research-person-switch{display:flex;align-items:end;justify-content:space-between;gap:18px;flex-wrap:wrap}.research-person-switch .inline-form{margin:0}.research-context-tags{display:flex;gap:8px;flex-wrap:wrap}.research-context-tags span{display:inline-flex;align-items:center;min-height:32px;padding:5px 10px;border:1px solid var(--border,#d9d3c8);border-radius:999px;background:#fff;font-size:.92rem}.research-next{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px;padding:20px 22px;border-left:5px solid #6f7d4c}.research-next-icon{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:rgba(98,112,67,.12);font-size:1.4rem;font-weight:800}.research-next h2{margin:.1rem 0 .25rem;font-size:1.45rem}.research-next p{margin:0}.research-next.next-suggestion{border-left-color:#a16f25}.research-next.next-evidence{border-left-color:#6a5684}.research-next.next-external{border-left-color:#477a75}.research-hub-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:14px 0}.research-hub-kpis article{display:flex;flex-direction:column;min-height:128px;padding:16px}.research-hub-kpis b{font-size:1.65rem;line-height:1}.research-hub-kpis span{margin-top:7px;font-size:.93rem}.research-hub-kpis a{margin-top:auto;padding-top:10px;font-weight:700;text-decoration:none}.research-workflow{margin:14px 0}.research-workflow-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.research-workflow-grid>a{display:flex;flex-direction:column;gap:5px;min-height:118px;padding:14px;border:1px solid var(--border,#ded8ce);border-radius:14px;background:rgba(255,255,255,.7);text-decoration:none;color:inherit}.research-workflow-grid>a:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(40,35,28,.08)}.research-workflow-grid>a>span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#243f33;color:#fff;font-weight:800}.research-workflow-grid small{opacity:.72}.research-hub-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,.8fr);gap:16px;align-items:start}.research-hub-grid main,.research-hub-grid aside{display:grid;gap:16px}.research-list .list-item{gap:12px}.research-check-list{display:grid;gap:9px}.research-check-list>a{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid rgba(0,0,0,.07);text-decoration:none;color:inherit}.research-check-list>a:last-child{border-bottom:0}.research-check-list b,.research-check-list small{display:block}.research-quick-actions{display:grid;gap:8px}.record-participant-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:4px}.record-participant-links a{font-size:.82rem;font-weight:700;text-decoration:none}.research-hub-head .head-actions{align-items:center}
@media(max-width:1180px){.research-hub-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.research-workflow-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:860px){.research-hub-grid{grid-template-columns:1fr}.research-next{grid-template-columns:auto minmax(0,1fr)}.research-next>.btn{grid-column:1/-1;width:100%}.research-hub-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.research-workflow-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.research-hub-kpis{grid-template-columns:1fr 1fr}.research-hub-kpis article{min-height:112px}.research-workflow-grid{grid-template-columns:1fr}.research-next{grid-template-columns:1fr}.research-next-icon{display:none}.research-person-switch{align-items:stretch}.research-person-switch form,.research-person-switch label,.research-person-switch select{width:100%}.research-check-list>a{grid-template-columns:auto minmax(0,1fr)}.research-check-list .external-check-status{grid-column:2}.record-participant-links{gap:8px}.record-participant-links a{font-size:.9rem}}

/* v2.5.1 – safe hand-off to cemetery portals without public API */
.grave-handoff-section{border-left:4px solid #6f7d4c}.grave-handoff-card{display:flex;flex-direction:column}.grave-handoff-card .omni-card-actions{margin-top:auto;padding-top:12px}.handoff-query{display:grid;gap:3px;margin-top:10px;padding:10px 12px;border-radius:10px;background:var(--surface-soft,#f5f2ec);border:1px dashed var(--line,#ddd5c8)}.handoff-query small{margin:0;color:var(--muted,#667085);font-weight:700;text-transform:uppercase;letter-spacing:.04em}.handoff-query b{font-size:.94rem;word-break:break-word}.grave-handoff-card .pill{white-space:normal;text-align:center}
@media(max-width:760px){.grave-handoff-card .omni-card-actions{display:grid;grid-template-columns:1fr}.grave-handoff-card .omni-card-actions .btn,.grave-handoff-card .omni-card-actions .text-link{width:100%;justify-content:center;text-align:center}}

/* v2.6.0 — launch polish, help center, mobile safe areas and connection state */
.help-start-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:14px}.help-start-card{display:grid;grid-template-columns:48px 1fr;gap:14px;align-items:flex-start}.help-step{width:42px;height:42px;border-radius:14px;background:#173b2d;color:#fff;display:grid;place-items:center;font:700 18px "Playfair Display",Georgia,serif}.help-start-card h3{margin:3px 0 6px;font:700 21px "Playfair Display",Georgia,serif}.help-start-card p{margin:0;color:var(--muted,#756b60);line-height:1.55}.help-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.help-two-col{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}.help-flow{margin:0 0 17px;padding:0;list-style:none;counter-reset:helpflow}.help-flow li{counter-increment:helpflow;display:grid;grid-template-columns:34px 1fr;column-gap:10px;padding:10px 0;border-bottom:1px solid #eee4d8}.help-flow li:before{content:counter(helpflow);grid-row:1/3;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#efe3d1;color:#6b5030;font-weight:800}.help-flow li b{font-size:13px}.help-flow li span{font-size:11px;color:#81776d;margin-top:2px}.integration-help-list{display:grid;gap:4px}.integration-help-list>div{display:grid;grid-template-columns:14px 1fr;gap:10px;align-items:start;padding:10px 0;border-bottom:1px solid #eee4d8}.integration-help-list>div:last-child{border-bottom:0}.integration-help-list b,.integration-help-list small{display:block}.integration-help-list small{color:#81776d;margin-top:2px;line-height:1.45}.status-dot{width:10px;height:10px;margin-top:4px;border-radius:50%;background:#a7a096;box-shadow:0 0 0 3px rgba(130,120,110,.10)}.status-dot.on{background:#3f8a61;box-shadow:0 0 0 3px rgba(63,138,97,.12)}.status-dot.external{background:#b98737;box-shadow:0 0 0 3px rgba(185,135,55,.12)}.shortcut-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.shortcut-grid>div{display:flex;align-items:center;gap:10px;padding:11px;border:1px solid #e8dece;border-radius:10px;background:#fffdf9}.shortcut-grid kbd{min-width:98px;padding:5px 8px;border:1px solid #ded3c4;border-bottom-width:2px;border-radius:7px;background:#faf5ed;color:#5f554c;font-size:10px;text-align:center}.shortcut-grid span{font-size:11px;color:#766c61}.help-link{color:#6c645c}.connection-toast{position:fixed;right:18px;bottom:18px;z-index:1200;border-radius:12px;padding:10px 13px;background:#2b3136;color:#fff;font-size:12px;box-shadow:0 12px 28px rgba(0,0,0,.18);display:flex;align-items:center;gap:8px;opacity:0;transform:translateY(12px);pointer-events:none;transition:.18s ease}.connection-toast.show{opacity:1;transform:translateY(0)}.connection-toast.offline{background:#8c4b39}.connection-toast.online{background:#276448}.connection-toast span{width:8px;height:8px;border-radius:50%;background:currentColor}
@media(max-width:900px){.help-start-grid,.help-two-col{grid-template-columns:1fr}.shortcut-grid{grid-template-columns:1fr}.mobile-bottom-nav{padding-bottom:max(8px,env(safe-area-inset-bottom));height:calc(64px + env(safe-area-inset-bottom))}.ref-content{padding-bottom:calc(86px + env(safe-area-inset-bottom))}.ref-sidebar{padding-bottom:env(safe-area-inset-bottom)}}
@media(max-width:560px){.help-start-card{grid-template-columns:38px 1fr}.help-step{width:34px;height:34px;border-radius:11px;font-size:15px}.help-start-card h3{font-size:18px}.shortcut-grid>div{align-items:flex-start;flex-direction:column}.shortcut-grid kbd{min-width:0}.connection-toast{left:12px;right:12px;bottom:calc(76px + env(safe-area-inset-bottom));justify-content:center}}

/* =========================================================
   v2.6.1 · čitateľnosť, portréty a automatické externé hľadanie
   ========================================================= */
.photo-avatar{overflow:hidden;background:#eee3d2;border:1px solid #ddcdb7;color:#5a4736}
.photo-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.photo-avatar.is-sample:after,.family-person-photo.is-sample:after,.family-child-photo.is-sample:after,.evidence-person-photo.is-sample:after{content:"VZOR";position:absolute;right:2px;bottom:2px;padding:1px 3px;border-radius:4px;background:rgba(38,45,42,.76);color:#fff;font:700 7px/1.1 Arial,sans-serif;letter-spacing:.03em}

.family-unit-card{gap:15px}
.family-unit-card .panel-title{align-items:flex-start}
.family-unit-card h3{font-size:23px;line-height:1.18;color:#30271f;margin:4px 0 6px}
.family-unit-card .panel-title p{font-size:13px;line-height:1.5;color:#6d6257}
.family-members-line>a{min-height:70px;padding:10px 12px;gap:11px;background:#fffaf4;color:#30271f}
.family-members-line>a>span:last-child{min-width:0}
.family-members-line>a b{display:block;font-size:14px;line-height:1.25;color:#2e2923}
.family-members-line>a small{display:block;margin-top:3px;font-size:11px;font-weight:600;color:#817264}
.family-members-line.single{grid-template-columns:minmax(0,1fr)}
.family-person-photo{position:relative;display:block;flex:0 0 48px;width:48px;height:58px;border-radius:10px;overflow:hidden;background:#eee3d2;border:1px solid #ddcdb7;box-shadow:0 3px 9px rgba(66,49,33,.08)}
.family-person-photo img{display:block;width:100%;height:100%;object-fit:cover}
.family-children-list{gap:8px}
.family-children-list>a{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:4px 9px 4px 4px;font-size:12px;font-weight:700;color:#59442e;background:#f5ebdc}
.family-child-photo{position:relative;display:block;flex:0 0 26px;width:26px;height:26px;border-radius:50%;overflow:hidden;border:1px solid #ddcdb7;background:#eee3d2}
.family-child-photo img{display:block;width:100%;height:100%;object-fit:cover}

.evidence-layout{align-items:start}
.evidence-person-heading{display:flex;align-items:center;gap:13px}
.evidence-person-photo{position:relative;display:block;flex:0 0 54px;width:54px;height:64px;border-radius:11px;overflow:hidden;border:1px solid #ddcdb7;background:#eee3d2;box-shadow:0 4px 12px rgba(66,49,33,.08)}
.evidence-person-photo img{display:block;width:100%;height:100%;object-fit:cover}
.evidence-claims-list .list-item,.evidence-claims-list .list-item:visited{color:#342d26;text-decoration:none}
.evidence-claims-list .list-item:hover{background:#fbf7f0}
.evidence-claim-row{min-height:64px;padding:12px 8px}
.evidence-claim-row b{font-size:15px!important;line-height:1.25;color:#342d26!important;text-decoration:none}
.evidence-claim-row small{font-size:12px!important;line-height:1.4;color:#71665b!important}
.evidence-status-mark{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:8px;border:1px solid #e1d6c6;background:#fbf5e9;color:#9a6730;font:800 15px/1 Arial,sans-serif}
.evidence-status-mark.has-proof{background:#edf4ee;border-color:#cfe1d2;color:#37694c}
.evidence-status-mark.missing-proof{background:#fbf1df;border-color:#ead6b3;color:#97672f}
.evidence-claims-panel .status{font-size:10px;white-space:nowrap}
.simple-list a.list-item,.simple-list a.list-item:visited{color:inherit;text-decoration:none}

.auto-external-results{margin-top:18px}
.auto-external-results .panel-title{align-items:flex-start}
.auto-provider-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.auto-provider-card{min-width:0;border:1px solid #e4d8c8;border-radius:13px;background:#fffdf9;padding:13px;display:flex;flex-direction:column;gap:9px}
.auto-provider-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.auto-provider-head b{font-size:14px;color:#30271f}
.auto-provider-head small{display:block;margin-top:3px;font-size:10px;color:#7c7166}
.auto-provider-hits{display:grid;gap:7px}
.auto-external-hit{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:center;padding:9px 10px;border:1px solid #eee4d7;border-radius:9px;background:#fff;color:#342d26;text-decoration:none}
.auto-external-hit:hover{background:#faf5ed;border-color:#dcc9ae}
.auto-external-hit b{display:block;font-size:12px;line-height:1.25;color:#342d26}
.auto-external-hit small{display:block;margin-top:3px;font-size:10px;line-height:1.35;color:#756b61}
.auto-external-hit .ui-icon{width:15px;height:15px;color:#8a6a43}
.auto-provider-empty{font-size:11px;line-height:1.5;color:#7b7167;background:#f8f5ef;border-radius:8px;padding:9px}

@media(max-width:900px){
 .auto-provider-grid{grid-template-columns:1fr}
 .family-unit-card h3{font-size:21px}
 .evidence-claim-row{grid-template-columns:auto minmax(0,1fr);align-items:start}
 .evidence-claim-row .status{grid-column:2;justify-self:start;margin-top:4px}
}
.evidence-claim-row{display:grid!important;grid-template-columns:34px minmax(0,1fr) auto;align-items:center}
.auto-provider-list{display:grid;gap:7px}
.auto-handoff-row{margin-top:12px;padding:12px 13px;border:1px dashed #d9c8b0;border-radius:11px;background:#fbf7ef;display:flex;align-items:center;justify-content:space-between;gap:14px}
.auto-handoff-row b,.auto-handoff-row small{display:block}.auto-handoff-row b{font-size:13px;color:#362e27}.auto-handoff-row small{margin-top:3px;font-size:10.5px;line-height:1.45;color:#756a60}.auto-handoff-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:700px){.auto-handoff-row{align-items:flex-start;flex-direction:column}.auto-handoff-actions{justify-content:flex-start;width:100%}.auto-handoff-actions .btn{flex:1}}
.auto-provider-loading{display:flex;align-items:center;gap:8px;padding:10px;border-radius:8px;background:#f8f5ef;color:#7b7167;font-size:11px}.auto-provider-loading i{width:13px;height:13px;border:2px solid #d4c4ad;border-top-color:#896b45;border-radius:50%;animation:autoExtSpin .8s linear infinite}@keyframes autoExtSpin{to{transform:rotate(360deg)}}

/* v2.7.2 – zjednodušené Výstupy */
.reports-main-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px}.report-main-card{display:flex;flex-direction:column;min-height:230px}.report-main-card h3{font:600 21px "Playfair Display",Georgia,serif;margin:10px 0 7px}.report-main-card>p{font-size:12px;line-height:1.55;color:#74695e;flex:1}.report-main-card .form-stack{margin-top:auto}.report-tree-main{grid-column:span 2;background:linear-gradient(135deg,#fffdf8,#fbf2e4)!important;border-color:#d9c3a2!important}.reports-more{padding:0!important;overflow:hidden}.reports-more>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 20px;background:#fffdf9}.reports-more>summary::-webkit-details-marker{display:none}.reports-more>summary span:first-child{display:grid;gap:3px}.reports-more>summary b{font:600 19px "Playfair Display",Georgia,serif}.reports-more>summary small{font-size:11px;color:#7d7165}.reports-more[open]>summary{border-bottom:1px solid #e6dbce}.reports-advanced-grid{padding:16px;margin:0}.reports-advanced-grid>.panel{box-shadow:none;background:#fff;border-color:#eadfd2}@media(max-width:1000px){.reports-main-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-tree-main{grid-column:span 2}}@media(max-width:680px){.reports-main-grid{grid-template-columns:1fr}.report-tree-main{grid-column:auto}.reports-more>summary{padding:14px}.reports-advanced-grid{padding:10px}}

/* RODOPIS v2.7.3 – dashboard genealogy card + safer GEDCOM import */
.ref-tree-watermark{
  width:100%!important;height:100%!important;left:0!important;top:0!important;transform:none!important;
  background-image:url('../assets/brand/logo-header.svg')!important;
  background-repeat:no-repeat!important;background-position:center 58%!important;background-size:min(72%,430px) auto!important;
  opacity:.026!important;filter:grayscale(1) sepia(.22)!important;pointer-events:none!important;
}
.ref-card-title>img[src*="logo-mark"]{border-radius:10px;box-shadow:0 4px 10px rgba(35,39,42,.09)}
.gedcom-target-choice{display:grid;gap:9px;margin-top:5px}.gedcom-target-choice>.field-caption{font-size:10px;font-weight:800;letter-spacing:.055em;text-transform:uppercase;color:#786957}
.gedcom-target-card{display:grid!important;grid-template-columns:22px minmax(0,1fr);gap:9px;align-items:flex-start;border:1px solid #dfd4c5;border-radius:11px;background:#fffdf9;padding:10px 11px;margin:0!important;cursor:pointer}.gedcom-target-card.warning{background:#fff9ef;border-color:#e2ca9f}.gedcom-target-card input{width:17px!important;height:17px!important;margin:2px 0 0!important}.gedcom-target-card span{display:block!important;margin:0!important;text-transform:none!important;letter-spacing:0!important}.gedcom-target-card b{display:block;font-size:12px;color:#3d342b}.gedcom-target-card small{display:block;margin-top:3px;font-size:10px;line-height:1.4;color:#75695c;font-weight:500}.import-plan-note{border:1px solid #ead4ad;background:#fff7e7;border-radius:10px;padding:10px}.import-plan-note b,.import-plan-note span{display:block}.import-plan-note b{font-size:11px}.import-plan-note span{font-size:10px;color:#7a6854;margin-top:3px}.import-plan-note a{color:#7d582b;font-weight:700}
@media(max-width:600px){.gedcom-target-card{grid-template-columns:20px minmax(0,1fr)}}

/* RODOPIS v2.7.4 – aktuálny branding a prepojenie rodokmeňov */
.ref-tree-watermark{background-image:url('../assets/brand/logo-master-transparent.png')!important;background-size:min(60%,420px) auto!important;background-position:center 57%!important;opacity:.045!important;filter:none!important}.tree-merge-builder{margin-top:16px}.tree-merge-form{max-width:980px}.tree-merge-form .alert.info{margin-top:5px}.account-photo-wrap.is-generic img{object-fit:cover;filter:none}.ref-user-menu .ref-avatar img{object-fit:cover}
/* v2.7.4 – výročia */
.anniversary-list{display:grid;gap:7px}.anniversary-date{width:54px;min-width:54px;height:54px;border-radius:12px;background:#f4e7cf;border:1px solid #e3cfad;display:grid;place-items:center;align-content:center;color:#7c5a2f}.anniversary-date b{font:700 20px "Playfair Display",Georgia,serif;line-height:1}.anniversary-date small{font-size:9px;margin-top:3px;color:#8a755d}.anniversary-list .list-item{grid-template-columns:auto minmax(0,1fr) auto;align-items:center}.anniversary-list .list-item>div b{font-size:13px}.anniversary-list .list-item>div small{display:block;margin-top:3px}

/* RODOPIS v2.7.5 – generation badge + admin commerce */
.ref-tree-generation-badge{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2;display:grid;place-items:center;gap:2px;min-width:118px;padding:7px 12px;border:1px solid rgba(183,148,92,.30);border-radius:999px;background:rgba(255,252,246,.90);box-shadow:0 6px 18px rgba(78,58,33,.06);pointer-events:none;color:#79603d;text-align:center}.ref-tree-generation-badge b{font:600 11px "Playfair Display",Georgia,serif}.ref-tree-generation-badge span{font-size:7px;letter-spacing:.06em;text-transform:uppercase;color:#9a876d}.admin-quick-nav{display:flex;gap:8px;flex-wrap:wrap;margin:-2px 0 14px}.admin-quick-nav a{padding:8px 11px;border:1px solid #e1d5c6;border-radius:9px;background:#fffaf3;color:#6b5740;text-decoration:none;font-size:10px;font-weight:800}.admin-license-box{display:grid;gap:3px;padding:10px 12px;border:1px solid #e1cfac;background:#fff8e9;border-radius:10px;margin:10px 0}.admin-license-box b{font-size:12px}.admin-license-box small{font-size:9px;color:#75685a}.admin-price-card{border:1px solid #eadfce;background:#fffaf3;border-radius:11px;padding:12px}.admin-price-card>b{display:block;font:600 17px "Playfair Display",Georgia,serif;margin-bottom:8px}.annual-price{font-size:11px;color:#7f6d58;margin:-4px 0 10px}.price small{font-size:10px;font-family:inherit;margin-left:3px}.account-admin-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px}.account-admin-banner h3{margin:3px 0;font:600 19px "Playfair Display",Georgia,serif}.account-admin-banner p{margin:0;color:#74685c;font-size:11px}.account-admin-banner.muted{background:#faf7f1}.admin-order-row form{margin:0}@media(max-width:720px){.account-admin-banner{align-items:flex-start;flex-direction:column}.account-admin-banner .btn{width:100%}.ref-tree-generation-badge{top:48%}}

/* RODOPIS v2.7.6 – automatický celý rodokmeň vo Výstupoch */
.auto-tree-launch{display:grid;gap:11px;margin-top:auto}.auto-tree-summary{padding:12px 13px;border:1px solid #e4d3b8;border-radius:12px;background:linear-gradient(135deg,#fffaf0,#f6f2e9)}.auto-tree-summary b{display:block;font-family:"Playfair Display",Georgia,serif;font-size:16px;color:#3d3025}.auto-tree-summary small{display:block;margin-top:4px;font-size:11px;line-height:1.45;color:#766757}.auto-tree-launch form{margin:0}.auto-tree-launch>.muted-copy{font-size:10px;line-height:1.4}

/* RODOPIS v2.7.7 – platform admin handoff, Genealógovia a pomoc, fórum */
.admin-safety-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.8fr);gap:18px}.admin-safety-grid>.form-stack{border-left:1px solid #eadfce;padding-left:18px}.expert-explainer{margin-bottom:15px}.expert-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.expert-flow>div{border:1px solid #e8dccb;background:#fffaf2;border-radius:12px;padding:12px}.expert-flow b,.expert-flow span{display:block}.expert-flow b{font-family:"Playfair Display",Georgia,serif;font-size:14px}.expert-flow span{margin-top:4px;font-size:11px;line-height:1.45;color:#74695d}.expert-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:15px 0}.expert-card{display:flex;flex-direction:column;gap:10px}.expert-card-head{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center}.expert-avatar{width:66px;height:66px;border-radius:16px;overflow:hidden;background:#eee4d7;display:block}.expert-avatar img{width:100%;height:100%;object-fit:cover}.expert-card h3{margin:2px 0 3px;font-size:20px}.expert-card-head p,.expert-card>p{margin:0;color:#70665c;font-size:12px;line-height:1.55}.expert-meta{display:flex;gap:7px;flex-wrap:wrap}.expert-meta span{font-size:9px;border:1px solid #e2d7c9;background:#faf5ed;border-radius:999px;padding:5px 7px;color:#6d6258}.expert-services{display:grid;gap:7px;margin-top:auto}.expert-service{border:1px solid #e8ddcf;border-radius:10px;background:#fffdf9;overflow:hidden}.expert-service>summary{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 11px;cursor:pointer;list-style:none}.expert-service>summary::-webkit-details-marker{display:none}.expert-service summary span b,.expert-service summary span small{display:block}.expert-service summary span b{font-size:12px}.expert-service summary span small{font-size:9px;color:#786c61;margin-top:3px}.expert-service summary strong{white-space:nowrap;font-size:12px;color:#765126}.expert-service>p,.expert-service>form{margin:0 11px 11px}.order-money-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:12px 0}.order-money-grid>div{padding:11px;border:1px solid #e8ddcf;border-radius:10px;background:#faf6ef}.order-money-grid b,.order-money-grid span{display:block}.order-money-grid b{font-size:17px}.order-money-grid span{font-size:9px;color:#766a5f}.order-request,.order-result{border-left:3px solid #c39a55;padding:8px 12px;margin:12px 0;background:#fffaf2}.order-result{border-left-color:#5f8a6a;background:#f4f9f3}.order-request p,.order-result p{font-size:12px;line-height:1.6;margin:6px 0}.order-actions{display:grid;gap:10px;margin:12px 0}.order-messages{display:grid;gap:8px}.order-message{padding:10px 12px;border:1px solid #e8ddcf;border-radius:10px;background:#fff}.order-message b{font-size:11px}.order-message small{font-size:9px;color:#8a7d70;margin-left:8px}.order-message p{font-size:11px;line-height:1.55;margin:5px 0 0}.forum-category-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-bottom:14px}.forum-category{text-decoration:none;color:var(--ink);padding:12px!important}.forum-category.active{border-color:#c89b54!important;box-shadow:inset 0 0 0 1px #c89b54!important}.forum-category b{font:600 14px "Playfair Display",Georgia,serif}.forum-category p{font-size:9px;color:#756b61;line-height:1.4;min-height:38px}.forum-category small{font-size:9px;color:#9a7950}.forum-layout{align-items:start}.forum-original{background:#fffaf2;border:1px solid #e7dac8;border-radius:11px;padding:12px;margin-bottom:12px}.forum-original p{line-height:1.65}.forum-replies{display:grid;gap:9px;margin:12px 0}.forum-replies article{padding:11px 13px;border:1px solid #e8ddcf;border-radius:10px;background:#fff}.forum-replies article small{margin-left:8px;color:#8a7d70;font-size:9px}.forum-replies article p{font-size:12px;line-height:1.6;margin:7px 0 0}.admin-helper-row,.research-admin-order{grid-template-columns:auto minmax(0,1fr) auto!important}.admin-order-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.membership-help-market{margin-top:14px}.account-admin-banner{display:flex;align-items:center;justify-content:space-between;gap:18px}.account-admin-banner.muted{opacity:.85}.account-admin-banner h3{margin:3px 0}.account-admin-banner p{margin:0;color:#756b61;font-size:11px}
@media(max-width:1050px){.expert-flow{grid-template-columns:repeat(2,1fr)}.forum-category-grid{grid-template-columns:repeat(3,1fr)}.admin-safety-grid{grid-template-columns:1fr}.admin-safety-grid>.form-stack{border-left:0;border-top:1px solid #eadfce;padding-left:0;padding-top:15px}}
@media(max-width:720px){.expert-grid{grid-template-columns:1fr}.expert-flow{grid-template-columns:1fr}.forum-category-grid{grid-template-columns:1fr 1fr}.order-money-grid{grid-template-columns:1fr}.account-admin-banner{align-items:flex-start;flex-direction:column}}

/* RODOPIS v2.7.8 – platform admin is not a client plan */
.admin-admin-mode{border-color:#c8b183!important;background:linear-gradient(135deg,#fff9ed,#f7f2e9)!important}.admin-admin-mode .panel-title{margin-bottom:0}.admin-payment-stats{margin:12px 0 0}.admin-user-detail .alert.info{background:#edf4ef;border:1px solid #c8d9cd;color:#335843;border-radius:10px;padding:10px 12px}.admin-user-detail .simple-list .list-item{grid-template-columns:auto minmax(0,1fr)}.admin-user-detail>.divider{margin-top:16px}.admin-user-detail .danger-form{margin-top:14px}.admin-user-detail .inline-form{margin-top:10px}.admin-safety-grid .list-item{text-decoration:none;color:inherit}.admin-payment-stats .panel b{font-size:20px}.admin-payment-stats .panel span{font-size:10px}.view-admin .page-head>div p{max-width:900px}@media(max-width:900px){.admin-payment-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* RODOPIS v2.7.9 – Súkromný archív */
.archive-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:14px}.archive-kpis>.panel{padding:13px 14px!important;display:grid;gap:3px}.archive-kpis b{font:600 20px "Playfair Display",Georgia,serif}.archive-kpis span{font-size:10px;color:#7a6f63}.archive-locked{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px}.archive-locked h3,.archive-future h3{font:600 22px "Playfair Display",Georgia,serif;margin:4px 0}.archive-locked p,.archive-future p{margin:0;color:#70675e;font-size:12px;line-height:1.6}.private-archive-layout{display:grid;grid-template-columns:220px minmax(0,1fr) 330px;gap:14px;align-items:start}.private-archive-layout:not(:has(.archive-detail)){grid-template-columns:220px minmax(0,1fr)}.archive-sidebar{position:sticky;top:88px;padding:13px!important}.archive-folder{display:block;padding:9px 10px;margin:3px 0;border-radius:8px;text-decoration:none;color:#50473f;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.archive-folder:hover,.archive-folder.active{background:#f3eadc;color:#734f28}.archive-main{display:grid;gap:14px}.archive-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px!important}.archive-search{display:flex;gap:7px;flex:1}.archive-search input{width:100%}.archive-location{display:grid;text-align:right}.archive-location small{font-size:9px;color:#85796c;text-transform:uppercase;letter-spacing:.06em}.archive-location b{font-size:11px}.archive-upload-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.9fr);gap:18px;align-items:start}.archive-upload-card h3{font:600 21px "Playfair Display",Georgia,serif;margin:5px 0}.archive-upload-card p{font-size:12px;line-height:1.55;color:#71675d}.archive-upload-form{display:grid;gap:9px}.archive-upload-form label{display:grid;gap:5px}.archive-upload-form label>span{font-size:10px;font-weight:800;color:#64594d}.archive-rows{display:grid;gap:6px}.archive-row{display:grid;grid-template-columns:50px minmax(0,1fr) auto;gap:11px;align-items:center;padding:10px;border:1px solid #eadfd2;border-radius:10px;background:#fffdf9;text-decoration:none;color:#3f3832}.archive-row:hover,.archive-row.active{border-color:#d6b98e;background:#fff8ec}.archive-row b{display:block;font-size:12px}.archive-row small{display:block;margin-top:3px;font-size:9.5px;color:#807466}.archive-row p{font-size:10px;color:#6f655b;margin:5px 0 0;line-height:1.4}.archive-type{width:48px;height:42px;border-radius:8px;background:#eee3d3;display:grid;place-items:center;font-size:8px;font-weight:900;color:#775a36}.archive-detail{position:sticky;top:88px;padding:14px!important;display:grid;gap:12px}.archive-preview-actions{display:grid;gap:6px}.archive-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}.archive-meta>div{padding:8px;border:1px solid #eee3d6;border-radius:8px}.archive-meta dt{font-size:8px;text-transform:uppercase;color:#8a7d70}.archive-meta dd{margin:3px 0 0;font-size:10px;font-weight:700;overflow:hidden;text-overflow:ellipsis}.archive-links{display:grid;gap:7px;padding-top:8px;border-top:1px solid #eee3d6}.archive-links>b{font-size:11px}.archive-links>small{font-size:9px;color:#84786c}.archive-links>div{display:flex;justify-content:space-between;align-items:center;gap:8px}.archive-links>div>a{font-size:10px;color:#315d48;text-decoration:none}.archive-future{margin-top:14px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:center;background:linear-gradient(135deg,#fffdf8,#f4f7ef)!important}.archive-pipeline{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}.archive-pipeline span{font-size:9px;padding:7px 9px;border-radius:999px;background:#fff;border:1px solid #ddd1c1;color:#655a50}.archive-pipeline i{font-style:normal;color:#ad8a5b}.view-private-archive .page-head p{max-width:780px}
@media(max-width:1200px){.archive-kpis{grid-template-columns:repeat(3,1fr)}.private-archive-layout,.private-archive-layout:not(:has(.archive-detail)){grid-template-columns:190px minmax(0,1fr)}.archive-detail{position:static;grid-column:1/-1}.archive-upload-card{grid-template-columns:1fr}}
@media(max-width:760px){.archive-kpis{grid-template-columns:repeat(2,1fr)}.private-archive-layout,.private-archive-layout:not(:has(.archive-detail)){grid-template-columns:1fr}.archive-sidebar{position:static}.archive-toolbar{align-items:stretch;flex-direction:column}.archive-location{text-align:left}.archive-search{flex-direction:column}.archive-locked,.archive-future{grid-template-columns:1fr}.archive-pipeline{justify-content:flex-start}.archive-row{grid-template-columns:44px minmax(0,1fr) auto}.archive-upload-card{padding:12px!important}}


/* v2.7.11 — auto-hide desktop sidebar + full-width content */
@media(min-width:921px){
  .app-shell.ref-shell{grid-template-columns:238px minmax(0,1fr)!important;transition:grid-template-columns .22s ease!important}
  .ref-sidebar{transition:width .22s ease,padding .22s ease!important}
  .ref-shell.sidebar-collapsed{grid-template-columns:22px minmax(0,1fr)!important}
  .ref-shell.sidebar-collapsed .ref-sidebar{width:22px!important;padding:0!important;overflow:hidden!important;cursor:e-resize!important;background:linear-gradient(180deg,#232a2f,#1b2125)!important}
  .ref-shell.sidebar-collapsed .ref-sidebar>*{opacity:0!important;pointer-events:none!important}
  .ref-shell.sidebar-collapsed .ref-sidebar:after{content:"";position:absolute;inset:0 0 0 auto;width:4px;background:linear-gradient(180deg,transparent 3%,#c5964b 20%,#c5964b 80%,transparent 97%);opacity:.72;pointer-events:none}
  .ref-main{transition:width .22s ease!important}
}

/* v2.7.11 — pracovný rodostrom: pevné logo v pozadí a centrovaný priestor */
.view-tree .pedigree-canvas{
  background-image:url('../assets/brand/logo-icon.png'),radial-gradient(circle at 50% 39%,rgba(255,255,255,.99),rgba(249,243,233,.97))!important;
  background-repeat:no-repeat,no-repeat!important;
  background-position:center center,center center!important;
  background-size:min(38vw,430px) auto,cover!important;
  background-blend-mode:normal,normal!important;
}
.view-tree .pedigree-canvas:before{display:none!important}
.view-tree .pedigree-inner{margin:0 auto!important;transform-origin:center top!important}
.pedigree-actions [data-tree-fullscreen]{font-size:16px!important;line-height:1!important}
.pedigree-shell:fullscreen,.pedigree-shell.tree-fullscreen-fallback{background:#fffdf8!important;width:100vw!important;height:100vh!important;max-width:none!important;border-radius:0!important;display:flex!important;flex-direction:column!important;z-index:9999!important}
.pedigree-shell:fullscreen .pedigree-canvas,.pedigree-shell.tree-fullscreen-fallback .pedigree-canvas{flex:1!important;min-height:0!important;height:calc(100vh - 84px)!important}
.pedigree-shell:fullscreen .pedigree-inner,.pedigree-shell.tree-fullscreen-fallback .pedigree-inner{min-height:100%!important}
.pedigree-shell.tree-fullscreen-fallback{position:fixed!important;inset:0!important}
body:has(.pedigree-shell.tree-fullscreen-fallback){overflow:hidden!important}


/* RODOPIS v2.7.12 — jednotné nové logo, rodostrom a plná výška menu */
@media(min-width:921px){
  .ref-sidebar{height:100vh!important;min-height:100vh!important;position:sticky!important;top:0!important;align-self:start!important;background:linear-gradient(180deg,#232a2f 0%,#1f262a 55%,#1b2125 100%)!important}
}
.view-tree .pedigree-canvas{
  background-image:url('../assets/brand/logo-icon.png'),radial-gradient(circle at 50% 39%,rgba(255,255,255,.99),rgba(249,243,233,.97))!important;
  background-repeat:no-repeat,no-repeat!important;
  background-attachment:scroll,scroll!important;
  background-position:center center,center center!important;
  background-size:min(34vw,390px) auto,cover!important;
}
.tree-display-settings{position:relative;z-index:8;min-width:260px}
.tree-display-settings>summary{list-style:none;cursor:pointer;border:1px solid #dfcfb9;background:#fffaf2;border-radius:9px;padding:10px 13px;font-size:11px;font-weight:800;color:#6c5435}
.tree-display-settings>summary::-webkit-details-marker{display:none}
.tree-display-settings[open]{min-width:min(520px,48vw)}
.tree-display-settings .genealogy-tree-picker{margin-top:8px;padding:12px;border:1px solid #e5d8c7;border-radius:11px;background:#fffdf9;box-shadow:0 14px 34px rgba(69,53,33,.12);display:grid!important;grid-template-columns:1.35fr 1fr 1fr auto;gap:8px;align-items:end}
.tree-display-settings .genealogy-tree-picker label{display:grid;gap:4px}
.tree-display-settings .genealogy-tree-picker label>span{font-size:8px;text-transform:uppercase;letter-spacing:.07em;color:#887966;font-weight:800}
.tree-display-settings .genealogy-tree-picker select{width:100%;min-width:0}
.tree-display-settings .genealogy-tree-picker .text-link{grid-column:1/-1;font-size:10px}
.view-tree .pedigree-inner{min-width:max(760px,max-content)!important}
.view-tree .pedigree-row{flex-wrap:nowrap!important}
@media(max-width:920px){.tree-display-settings,.tree-display-settings[open]{width:100%;min-width:0}.tree-display-settings .genealogy-tree-picker{grid-template-columns:1fr!important}.tree-display-settings .genealogy-tree-picker .text-link{grid-column:auto}}

/* v2.7.13 — full-height sidebar, brighter vector watermark, denser connected tree view */
@media (min-width:921px){
  .ref-shell{align-items:stretch!important}
  .ref-sidebar{position:sticky!important;top:0!important;align-self:stretch!important;min-height:100vh!important;height:auto!important}
}
.pedigree-shell{overflow:visible!important}
.pedigree-canvas{min-height:calc(100vh - 210px)!important;background-image:radial-gradient(circle at 50% 38%,rgba(255,255,255,.985),rgba(249,243,233,.965)),url('../assets/brand/logo-mark.svg')!important;background-repeat:no-repeat,no-repeat!important;background-position:center top,center 190px!important;background-size:auto,min(58vw,700px)!important}
.pedigree-canvas:before{display:none!important}
.generation-label{display:inline-flex!important;align-items:center!important;gap:8px!important;padding:4px 11px!important;border-radius:999px!important;background:rgba(255,251,244,.9)!important;box-shadow:0 6px 16px rgba(81,60,35,.05)!important}
.pedigree-level{position:relative!important}
.pedigree-level:after{content:"";display:block;width:min(92%,1280px);height:1px;background:linear-gradient(90deg,transparent,rgba(196,161,107,.24) 12%,rgba(196,161,107,.24) 88%,transparent);margin:10px auto 0}
.pedigree-level:last-of-type:after{display:none}
.pedigree-row{max-width:1600px!important}
.pedigree-node.small-node{min-width:160px!important;max-width:198px!important}
.pedigree-foot{display:flex!important;justify-content:space-between!important;gap:12px!important;flex-wrap:wrap!important}

/* RODOPIS v2.7.14 — rollback poškodeného layoutu + svetlé logo iba v pozadí rodostromu */
/* Bežné logá ostávajú plnofarebné a bez zosvetľovania. */
.sidebar-logo-panel img,
.ref-brand-live img,
.auth-full-logo img,
.invite-logo,
.legal-logo,
.ref-card-title > img,
.ref-person-empty img,
.v3-empty-tree img{
  opacity:1!important;
  filter:none!important;
}

/* Desktop sidebar: plná výška, ale bez zásahu do geometrie hlavného obsahu. */
@media (min-width:921px){
  .ref-shell{align-items:start!important}
  .ref-sidebar{
    position:sticky!important;
    top:0!important;
    height:100dvh!important;
    min-height:100dvh!important;
    align-self:start!important;
  }
}

/* Zrušenie v2.7.13 pravidiel, ktoré roztiahli strom a rozbili pracovnú plochu. */
.view-tree .pedigree-shell{
  overflow:hidden!important;
}
.view-tree .pedigree-canvas{
  position:relative!important;
  overflow:auto!important;
  min-height:calc(100vh - 210px)!important;
  background-image:radial-gradient(circle at 50% 39%,rgba(255,255,255,.99),rgba(249,243,233,.97))!important;
  background-repeat:no-repeat!important;
  background-position:center center!important;
  background-size:cover!important;
  isolation:isolate!important;
}
/* Svetlé logo výhradne ako watermark na ploche rodostromu. */
.view-tree .pedigree-canvas:before{
  content:""!important;
  display:block!important;
  position:absolute!important;
  inset:0!important;
  width:auto!important;
  height:auto!important;
  margin:0!important;
  transform:none!important;
  background:url('../assets/brand/logo-mark.svg') center center / min(34vw,390px) auto no-repeat!important;
  opacity:.042!important;
  filter:grayscale(1) sepia(.12)!important;
  pointer-events:none!important;
  z-index:0!important;
}
.view-tree .pedigree-inner{
  position:relative!important;
  z-index:1!important;
  margin:0 auto!important;
  transform-origin:center top!important;
}
/* Zrušenie dekoratívnych zásahov 2.7.13, ktoré menili rozmery radov. */
.view-tree .pedigree-level:after{display:none!important}
.view-tree .generation-label{
  display:block!important;
  padding:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.view-tree .pedigree-row{max-width:none!important}
.view-tree .pedigree-node.small-node{min-width:0!important;max-width:none!important}

/* Fullscreen zostáva funkčný a watermark sa nehýbe s obsahom. */
.pedigree-shell:fullscreen .pedigree-canvas,
.pedigree-shell.tree-fullscreen-fallback .pedigree-canvas{
  overflow:auto!important;
}

/* RODOPIS v2.7.15 — menu bez scrollu v základnom stave + prepojený strom v Prehľade */
@media (min-width:921px){
  /* Základné menu ostáva celé viditeľné; rolovanie sa zapne až pri rozbalenej sekcii. */
  .ref-sidebar{overflow:hidden!important}
  .ref-nav{overflow-y:hidden!important;overflow-x:hidden!important;scrollbar-width:thin}
  .ref-nav.nav-has-open{overflow-y:auto!important;overscroll-behavior:contain}
  .nav-quick{gap:1px!important;margin-bottom:4px!important;padding-bottom:4px!important}
  .nav-quick a{min-height:36px!important;height:36px!important;font-size:14px!important}
  .nav-group>summary{min-height:35px!important;height:35px!important;padding-top:0!important;padding-bottom:0!important}
  .sidebar-role{margin-bottom:4px!important;padding-top:7px!important;padding-bottom:7px!important}
  .ref-premium-card{margin-top:auto!important;flex:0 0 auto}
}

/* Vrstva skutočných rodinných väzieb. */
.pedigree-inner,
.ref-tree-stage{position:relative!important}
.family-link-layer{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:visible;
  z-index:0;
  pointer-events:none;
}
.family-link-layer path{
  fill:none;
  stroke:#b4894a;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  vector-effect:non-scaling-stroke;
  opacity:.78;
}
.family-link-layer path.partner-link-line{stroke:#876735;stroke-width:2.1;opacity:.9}
.pedigree-inner>.pedigree-level,
.pedigree-inner>.pedigree-connector,
.pedigree-inner>.sample-photo-legend{position:relative;z-index:2}

/* Prehľad používa ten istý prepojený rodostrom, iba v kompaktnej pracovnej ploche. */
.ref-tree-stage.dashboard-linked-tree{
  min-height:410px!important;
  height:410px!important;
  overflow:auto!important;
  padding:24px 22px 58px!important;
  isolation:isolate;
  background:radial-gradient(circle at 50% 45%,#fffdf9 0%,#f8f2e8 100%)!important;
}
.dashboard-linked-tree .ref-tree-watermark{
  position:sticky!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  width:300px!important;
  height:300px!important;
  background:url('../assets/brand/logo-mark.svg') center/contain no-repeat!important;
  opacity:.035!important;
  pointer-events:none!important;
  z-index:0!important;
}
.dashboard-tree-inner{
  position:relative;
  z-index:2;
  width:max-content;
  min-width:100%;
  display:grid;
  gap:24px;
  padding:0 30px 20px;
  margin-top:-300px;
}
.dashboard-tree-generation{display:grid;gap:8px;justify-items:center;min-width:max-content}
.dashboard-tree-generation>small{font-size:9px;color:#8e795d;background:rgba(255,252,246,.92);border:1px solid #eadbc5;border-radius:999px;padding:3px 8px;position:relative;z-index:3}
.dashboard-tree-row{display:flex;align-items:center;justify-content:center;gap:14px;min-width:max-content}
.dashboard-tree-person{
  width:174px;
  min-height:56px;
  display:grid;
  grid-template-columns:40px minmax(0,1fr);
  gap:8px;
  align-items:center;
  padding:7px 9px;
  border:1px solid #dec7a4;
  border-radius:11px;
  background:#fffaf2;
  color:#41362b;
  text-decoration:none;
  box-shadow:0 5px 16px rgba(84,62,34,.06);
  position:relative;
  z-index:3;
}
.dashboard-tree-person:hover{border-color:#b78943;box-shadow:0 7px 20px rgba(84,62,34,.12)}
.dashboard-tree-person.active{background:#252d31;color:#fff;border-color:#c69b56;box-shadow:0 0 0 2px rgba(198,155,86,.22)}
.dashboard-tree-person b,.dashboard-tree-person small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dashboard-tree-person b{font:600 11px "Playfair Display",Georgia,serif}
.dashboard-tree-person small{font-size:8px;color:#897866;margin-top:2px}
.dashboard-tree-person.active small{color:#d9cdbd}
.dashboard-tree-face{width:38px;height:38px;border-radius:50%;overflow:hidden;border:2px solid #e1cfb1;position:relative;background:#eee5d8}
.dashboard-tree-face img{width:100%;height:100%;object-fit:cover}
.dashboard-tree-actions{
  position:sticky;
  left:12px;
  bottom:8px;
  z-index:8;
  display:flex;
  gap:5px;
  width:max-content;
  padding:5px;
  border:1px solid #dfceb2;
  border-radius:10px;
  background:rgba(255,252,246,.96);
  box-shadow:0 8px 24px rgba(63,48,30,.1);
}
.dashboard-tree-actions a{padding:6px 8px;border-radius:7px;text-decoration:none;color:#5b4935;font-size:9px;font-weight:800}
.dashboard-tree-actions a:hover{background:#f1e5d2}
.dashboard-family-links{z-index:1!important}

@media(max-width:920px){
  .ref-tree-stage.dashboard-linked-tree{height:380px!important;min-height:380px!important;padding-left:10px!important;padding-right:10px!important}
  .dashboard-tree-person{width:154px}
}

/* RODOPIS v2.7.16 — vetvové rozloženie rodostromu a 3D beta */
.tree-layout-switch{display:flex;align-items:center;gap:4px;padding:3px;border:1px solid #e2d4c1;border-radius:10px;background:#fffaf2}
.tree-layout-switch button{border:0;background:transparent;color:#75644f;border-radius:7px;padding:7px 9px;font-size:9px;font-weight:800;cursor:pointer;white-space:nowrap}
.tree-layout-switch button:hover{background:#f3e8d7}
.tree-layout-switch button.active{background:#252d31;color:#fff;box-shadow:0 2px 7px rgba(31,38,41,.14)}

/* Vetvy: karty sú absolútne rozložené podľa generačnej vrstvy a barycentra väzieb. */
.pedigree-inner.tree-layout-branches,
.pedigree-inner.tree-layout-3d{display:block!important;position:relative!important;padding:0!important;margin:0 auto!important}
.pedigree-inner.tree-layout-branches>.pedigree-level,
.pedigree-inner.tree-layout-3d>.pedigree-level{position:static!important;display:contents!important}
.pedigree-inner.tree-layout-branches .pedigree-row,
.pedigree-inner.tree-layout-3d .pedigree-row{display:contents!important}
.pedigree-inner.tree-layout-branches .generation-label,
.pedigree-inner.tree-layout-3d .generation-label,
.pedigree-inner.tree-layout-branches>.pedigree-connector,
.pedigree-inner.tree-layout-3d>.pedigree-connector,
.pedigree-inner.tree-layout-branches .pedigree-placeholder,
.pedigree-inner.tree-layout-3d .pedigree-placeholder,
.pedigree-inner.tree-layout-branches .partner-link,
.pedigree-inner.tree-layout-3d .partner-link{display:none!important}
.pedigree-inner.tree-layout-branches .pedigree-node,
.pedigree-inner.tree-layout-3d .pedigree-node{z-index:3!important;min-width:0!important;max-width:none!important;transition:left .28s ease,top .28s ease,box-shadow .2s ease,border-color .2s ease,transform .25s ease}
.pedigree-inner.tree-layout-branches .pedigree-node:hover{z-index:8!important;box-shadow:0 12px 28px rgba(71,51,29,.17)!important}

/* 3D beta: generačná hĺbka je naznačená perspektívou, karty ostávajú čitateľné. */
.view-tree .pedigree-canvas.tree-canvas-3d{perspective:1500px!important;perspective-origin:50% 42%!important}
.pedigree-inner.tree-layout-3d{transform-style:preserve-3d!important}
.pedigree-inner.tree-layout-3d .pedigree-node{transform:translateZ(var(--tree-z,0px)) rotateX(-1.2deg);transform-style:preserve-3d;box-shadow:0 12px 28px rgba(60,43,25,.16)!important}
.pedigree-inner.tree-layout-3d .pedigree-node.focus-node{transform:translateZ(34px) scale(1.035)!important;z-index:12!important}
.pedigree-inner.tree-layout-3d+.family-link-layer,.tree-canvas-3d .family-link-layer{opacity:.88}

/* Prehľad: rovnaký vetvový algoritmus, bez nútenia osôb do jedného horizontálneho radu. */
.dashboard-tree-inner.tree-layout-branches{display:block!important;position:relative!important;margin:0!important;padding:0!important}
.dashboard-tree-inner.tree-layout-branches .dashboard-tree-generation{display:contents!important}
.dashboard-tree-inner.tree-layout-branches .dashboard-tree-row{display:contents!important}
.dashboard-tree-inner.tree-layout-branches .dashboard-tree-generation>small{display:none!important}
.dashboard-tree-inner.tree-layout-branches .dashboard-tree-person{position:absolute;z-index:3;transition:left .25s ease,top .25s ease,box-shadow .2s ease}
.dashboard-tree-inner.tree-layout-branches .dashboard-tree-person:hover{z-index:8}
.dashboard-linked-tree .dashboard-tree-inner.tree-layout-branches{margin-top:-300px!important}

@media(max-width:1150px){.tree-layout-switch{order:3;width:100%;justify-content:center}.pedigree-toolbar{flex-wrap:wrap!important}}
@media(max-width:720px){.tree-layout-switch button{flex:1}.tree-layout-switch{width:100%}}
\n\n/* RODOPIS v2.7.17 — ovládanie zobrazenia musí byť vždy viditeľné */\n.view-tree .pedigree-toolbar{height:auto!important;min-height:49px!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;overflow:visible!important}\n.view-tree .pedigree-modes{flex:0 1 auto!important}\n.tree-view-controls{display:flex;align-items:center;gap:6px;flex:1 1 390px;min-width:300px;justify-content:center;flex-wrap:wrap}\n.tree-view-label{font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#9a8365}\n.tree-layout-switch{display:flex!important;align-items:center!important;gap:4px!important;padding:3px!important;border:1px solid #dfcfb9!important;border-radius:10px!important;background:#fffaf2!important;visibility:visible!important;opacity:1!important}\n.tree-layout-switch button{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:30px!important;padding:7px 10px!important;border:0!important;border-radius:7px!important;background:transparent!important;color:#6f604e!important;font-size:9px!important;font-weight:800!important;cursor:pointer!important;white-space:nowrap!important}\n.tree-layout-switch button.active{background:#202a30!important;color:#fff!important}\n.tree-links-toggle{display:inline-flex;align-items:center;justify-content:center;height:36px;padding:0 11px;border:1px solid #d8c7af;border-radius:9px;background:#fffdf9;color:#75644f;font-size:9px;font-weight:800;cursor:pointer;white-space:nowrap}\n.tree-links-toggle.active{background:#f5ead7;color:#6b4a22;border-color:#cfa968}\n.family-link-layer.links-hidden{display:none!important}\n.family-link-layer{z-index:2!important;pointer-events:none!important}\n.pedigree-inner{position:relative!important;z-index:3!important}\n.view-tree .pedigree-actions{margin-left:auto!important;flex:0 0 auto!important}\n@media(max-width:1280px){.tree-view-controls{order:3;flex-basis:100%;justify-content:flex-start}.view-tree .pedigree-actions{margin-left:auto!important}.view-tree .pedigree-toolbar{row-gap:7px!important}}\n@media(max-width:760px){.tree-view-controls{min-width:0;width:100%;justify-content:flex-start}.tree-layout-switch{width:100%}.tree-layout-switch button{flex:1}.tree-links-toggle{width:100%}}\n
/* RODOPIS v2.7.18 — skutočný priestorový rodostrom + presnejšie väzby */
.family-link-layer path.parent-child-link{stroke:#b88745!important;stroke-width:1.6!important;fill:none!important;opacity:.82!important;vector-effect:non-scaling-stroke}
.family-link-layer path.partner-link-line{stroke:#8f744e!important;stroke-width:1.45!important;fill:none!important;opacity:.8!important;stroke-dasharray:5 4!important;vector-effect:non-scaling-stroke}
.tree-orbit-view{position:absolute;inset:0;overflow:hidden;display:none;background:radial-gradient(circle at 50% 42%,rgba(255,255,255,.98),rgba(248,241,230,.96));cursor:grab;touch-action:none;user-select:none;z-index:7}
.tree-orbit-view.active{display:block}
.tree-orbit-view.dragging{cursor:grabbing}
.tree-orbit-links{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:1}
.tree-orbit-links path{fill:none;vector-effect:non-scaling-stroke}
.tree-orbit-links .orbit-parent{stroke:#b9843e;stroke-width:1.5;opacity:.72}
.tree-orbit-links .orbit-partner{stroke:#806746;stroke-width:1.35;stroke-dasharray:5 4;opacity:.75}
.tree-orbit-nodes{position:absolute;inset:0;z-index:2;pointer-events:none}
.tree-orbit-node{position:absolute;width:178px;min-width:178px;max-width:178px;pointer-events:auto;will-change:left,top,transform,opacity;transform-origin:center center;transition:box-shadow .16s ease,border-color .16s ease,opacity .12s linear;background:#fffaf2!important}
.tree-orbit-node:hover{box-shadow:0 14px 34px rgba(48,38,27,.22)!important;border-color:#bb8a49!important}
.tree-orbit-node.focus-node{background:#222c31!important;color:#fff!important;border-color:#c79652!important}
.tree-orbit-help{position:absolute;left:14px;bottom:14px;z-index:5;display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:8px 10px;border:1px solid #e0d3c2;border-radius:10px;background:rgba(255,252,246,.92);box-shadow:0 5px 18px rgba(55,42,29,.08);font-size:9px;color:#756958;backdrop-filter:blur(7px)}
.tree-orbit-controls{position:absolute;right:14px;bottom:14px;z-index:5;display:flex;gap:5px;padding:5px;border:1px solid #e0d3c2;border-radius:10px;background:rgba(255,252,246,.92);box-shadow:0 5px 18px rgba(55,42,29,.08);backdrop-filter:blur(7px)}
.tree-orbit-controls button{height:31px;min-width:34px;padding:0 9px;border:1px solid #dfd1bf;border-radius:7px;background:#fffaf2;color:#5d5348;font-size:9px;font-weight:800;cursor:pointer}
.tree-orbit-controls button.active{background:#202a30;color:#fff;border-color:#202a30}
.tree-orbit-title{position:absolute;left:50%;top:12px;transform:translateX(-50%);z-index:5;padding:6px 10px;border-radius:999px;background:rgba(34,44,49,.88);color:#fff;font-size:9px;font-weight:800;letter-spacing:.03em;pointer-events:none}
.tree-canvas-orbit .pedigree-inner,.tree-canvas-orbit>.family-link-layer,.tree-canvas-orbit>.sample-photo-legend{visibility:hidden!important;pointer-events:none!important}
.tree-canvas-orbit{overflow:hidden!important}
@media(max-width:760px){.tree-orbit-node{width:150px;min-width:150px;max-width:150px}.tree-orbit-help{right:14px}.tree-orbit-title{top:8px}}

/* RODOPIS v2.7.19 — rodinné jednotky a samostatná 3D mapa rodu */
.pedigree-inner.tree-family-layout{display:block!important;position:relative!important;padding:0!important;margin:0 auto!important}
.pedigree-inner.tree-family-layout>.pedigree-level,.pedigree-inner.tree-family-layout .pedigree-row{display:contents!important}
.family-rail-layer{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;z-index:1!important;pointer-events:none!important;overflow:visible!important}
.family-rail-layer path{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.family-rail-layer .partner-link-line{stroke:#8b6a3f;stroke-width:1.7}
.family-rail-layer .parent-child-link{stroke:#b37b36;stroke-width:1.55}
.family-rail-layer .sibling-rail{stroke:#b37b36;stroke-width:1.35;opacity:.9}
.pedigree-inner.tree-family-layout .pedigree-node{z-index:3!important}
.tree-space-active>.pedigree-inner,.tree-space-active>.family-link-layer,.tree-space-active>.sample-photo-legend{visibility:hidden!important;pointer-events:none!important}
.tree-orbit-view{display:none!important}
.tree-spatial-map{position:absolute;inset:0;display:none;overflow:hidden;z-index:20;background:radial-gradient(circle at 50% 45%,#fffdf9 0,#f7efe4 72%,#eee1d1 100%);cursor:grab;user-select:none;touch-action:none}
.tree-spatial-map.active{display:block!important}.tree-spatial-map.dragging{cursor:grabbing}
.tree-spatial-lines{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none}.tree-spatial-lines path{fill:none;vector-effect:non-scaling-stroke;stroke-linecap:round}.tree-spatial-lines .space-parent{stroke:#b47b35;stroke-width:1.35;opacity:.76}.tree-spatial-lines .space-partner{stroke:#7b6549;stroke-width:1.25;stroke-dasharray:5 4;opacity:.8}
.tree-spatial-nodes{position:absolute;inset:0;z-index:2;pointer-events:none}.tree-spatial-node{position:absolute!important;width:184px!important;min-width:184px!important;max-width:184px!important;margin:0!important;pointer-events:auto!important;will-change:left,top,transform,opacity;transform-origin:center center;background:#fffdf9!important;box-shadow:0 8px 22px rgba(50,38,25,.12)!important}.tree-spatial-node.focus-node{background:#202a30!important;color:#fff!important;border-color:#c79652!important}.tree-spatial-node:hover{border-color:#b98543!important;box-shadow:0 15px 34px rgba(49,37,24,.22)!important}
.tree-spatial-caption{position:absolute;left:14px;top:14px;z-index:5;display:flex;flex-direction:column;gap:2px;padding:8px 11px;border:1px solid #decdb7;border-radius:10px;background:rgba(255,252,246,.94);font-size:9px;color:#756553;backdrop-filter:blur(8px)}.tree-spatial-caption b{font-size:11px;color:#2b3134}
.tree-spatial-controls{position:absolute;right:14px;bottom:14px;z-index:5;display:flex;gap:5px;padding:5px;border:1px solid #dfd0bd;border-radius:10px;background:rgba(255,252,246,.94);backdrop-filter:blur(8px)}.tree-spatial-controls button{height:32px;min-width:34px;padding:0 10px;border:1px solid #dccbb5;border-radius:7px;background:#fffaf2;color:#5c5145;font-size:9px;font-weight:800;cursor:pointer}.tree-spatial-controls button.active{background:#202a30;color:#fff;border-color:#202a30}
@media(max-width:760px){.tree-spatial-node{width:152px!important;min-width:152px!important;max-width:152px!important}.tree-spatial-caption{right:14px}.tree-spatial-controls{left:14px;right:auto}}

/* RODOPIS v2.7.20 — nový samostatný renderer rodostromu */
.tree-renderer-badge{display:inline-flex;align-items:center;height:30px;padding:0 9px;border:1px solid #d8bd86;border-radius:9px;background:#fff9ee;color:#87652a;font:700 10px/1.1 system-ui,sans-serif;white-space:nowrap}
#treeV2720{position:absolute;inset:0;overflow:hidden;background:linear-gradient(180deg,rgba(255,253,248,.92),rgba(250,246,238,.96));z-index:4;touch-action:none}
#treeV2720::before{content:"";position:absolute;inset:0;background:url('brand/logo-icon.png') center/32% auto no-repeat;opacity:.025;pointer-events:none}
#treeV2720 .rt-stage{position:absolute;left:0;top:0;transform-origin:0 0;will-change:transform}
#treeV2720 .rt-lines{position:absolute;left:0;top:0;overflow:visible;pointer-events:none}
#treeV2720 .rt-card{position:absolute;width:188px;min-height:66px;display:flex;gap:9px;align-items:center;padding:7px 9px;border:1px solid #dcc7a0;border-radius:11px;background:rgba(255,252,246,.98);box-shadow:0 3px 10px rgba(63,48,26,.08);color:#2e2a24;text-decoration:none;transform:translate(-50%,-50%);box-sizing:border-box;transition:border-color .15s,box-shadow .15s,transform .15s}
#treeV2720 .rt-card:hover,#treeV2720 .rt-card.is-selected{border-color:#af7e2d;box-shadow:0 0 0 2px rgba(175,126,45,.16),0 5px 16px rgba(55,39,17,.12)}
#treeV2720 .rt-card.is-root{background:#202a2d;color:#fff;border-color:#c99a45}
#treeV2720 .rt-card img{width:43px;height:43px;border-radius:50%;object-fit:cover;flex:0 0 43px;border:2px solid #e6d5b5;background:#eee}
#treeV2720 .rt-card .rt-copy{min-width:0;display:grid;gap:2px}
#treeV2720 .rt-card b{font:700 12px/1.15 Georgia,serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#treeV2720 .rt-card small{font:500 9px/1.15 system-ui,sans-serif;opacity:.72;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#treeV2720 .rt-sample{position:absolute;right:5px;bottom:4px;font:700 7px/1 system-ui;background:#b88932;color:white;padding:2px 4px;border-radius:5px}
#treeV2720 .rt-generation{position:absolute;transform:translate(-50%,-50%);font:700 10px/1 system-ui,sans-serif;color:#997744;background:#fff8ec;border:1px solid #ead9bb;border-radius:999px;padding:5px 9px;white-space:nowrap}
#treeV2720 .rt-toolbar{position:absolute;left:14px;bottom:14px;z-index:20;display:flex;gap:6px;align-items:center;padding:6px;border:1px solid #e1d3ba;border-radius:12px;background:rgba(255,252,246,.94);box-shadow:0 8px 24px rgba(48,37,19,.1)}
#treeV2720 .rt-toolbar button{min-width:34px;height:32px;border:1px solid #dfcfb4;border-radius:8px;background:#fff;color:#333;font:700 12px system-ui;cursor:pointer}
#treeV2720 .rt-toolbar .rt-status{padding:0 7px;font:600 10px system-ui;color:#786b5a;white-space:nowrap}
#treeV2720 .rt-hint{position:absolute;right:14px;bottom:16px;z-index:20;font:600 10px system-ui;color:#8c7d68;background:rgba(255,252,246,.9);border:1px solid #e4d8c3;border-radius:999px;padding:7px 10px}
#treeV2720 .rt-parent-line{fill:none;stroke:#ae8241;stroke-width:1.65;opacity:.82}
#treeV2720 .rt-partner-line{fill:none;stroke:#795f35;stroke-width:2;opacity:.86}
#treeV2720.no-links .rt-lines{display:none}
#treeV2720 .rt-space{position:absolute;inset:0;display:none;overflow:hidden;perspective:1200px;background:radial-gradient(circle at 50% 45%,#fffdf8 0,#f7f0e4 70%,#eee4d4 100%)}
#treeV2720.mode-space .rt-space{display:block}
#treeV2720.mode-space .rt-2d{display:none}
#treeV2720 .rt-space-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
#treeV2720 .rt-space-node{position:absolute;width:154px;min-height:54px;display:flex;align-items:center;gap:7px;padding:6px 8px;box-sizing:border-box;border:1px solid #d8c39d;border-radius:10px;background:rgba(255,252,246,.97);box-shadow:0 5px 18px rgba(43,34,23,.12);text-decoration:none;color:#292621;transform:translate(-50%,-50%);transform-origin:center;will-change:left,top,transform,opacity}
#treeV2720 .rt-space-node img{width:36px;height:36px;border-radius:50%;object-fit:cover;border:2px solid #e3d1af}
#treeV2720 .rt-space-node b{display:block;font:700 11px/1.1 Georgia,serif;max-width:96px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#treeV2720 .rt-space-node small{display:block;font:500 8px/1.15 system-ui;opacity:.7}
#treeV2720 .rt-space-node.is-root{background:#202a2d;color:white;border-color:#c99a45}
#treeV2720 .rt-space-caption{position:absolute;left:50%;top:16px;transform:translateX(-50%);z-index:30;display:flex;gap:8px;align-items:center;padding:8px 12px;border:1px solid #dfcfb3;border-radius:999px;background:rgba(255,252,246,.94);font:600 11px system-ui;color:#665a49;white-space:nowrap}
#treeV2720 .rt-space-caption b{color:#2a2824}
.pedigree-canvas>#pedigreeInner{visibility:hidden;pointer-events:none}
@media(max-width:900px){#treeV2720 .rt-card{width:160px}.tree-renderer-badge{display:none}#treeV2720 .rt-hint{display:none}}
\n\n/* RODOPIS v2.7.21 — stabilný viewport a family-centric väzby */
#treeV2720{min-height:520px!important}
#treeV2720 .rt-2d{position:absolute;inset:0;overflow:hidden}
#treeV2720 .rt-stage{z-index:2}
#treeV2720 .rt-cards{position:absolute;inset:0}
#treeV2720 .rt-lines{z-index:1}
#treeV2720 .rt-card{z-index:2}
#treeV2720 .rt-generation{z-index:3}
#treeV2720 .rt-3d-parent{stroke:#ad8244;stroke-width:1.5;opacity:.72;vector-effect:non-scaling-stroke}
#treeV2720 .rt-3d-partner{stroke:#715a38;stroke-width:2;stroke-dasharray:5 4;opacity:.78;vector-effect:non-scaling-stroke}
#treeV2720 .rt-error{padding:24px;font:600 13px system-ui;color:#7b6851}
@media(max-width:900px){#treeV2720{min-height:460px!important}}


/* RODOPIS v2.7.22 — plný kontrast značky + čitateľný centrovaný rodostrom */
/* Každé skutočné logo v UI je plnofarebné; jediná výnimka je watermark v rodostrome. */
img[src*="/brand/logo-"],img[src*="assets/brand/logo-"]{opacity:1!important;filter:none!important}
.sidebar-logo-panel img,.ref-brand-live img,.auth-full-logo img,.invite-logo,.legal-logo,.ts-brand-lockup img,.brand img{opacity:1!important;filter:none!important}
/* Watermark ostáva jediný zámerne svetlý brand prvok. */
.view-tree .pedigree-canvas:before{opacity:.038!important;filter:grayscale(1) sepia(.10)!important}
#treeV2720::before{background-image:url('brand/logo-mark.svg')!important;background-position:center!important;background-size:min(34vw,390px) auto!important;opacity:.038!important;filter:grayscale(1) sepia(.10)!important}
/* Renderer musí mať vždy skutočnú výšku a stred pracovnej plochy. */
#treeV2720{min-height:560px!important;height:100%!important}
#treeV2720 .rt-2d,#treeV2720 .rt-space{min-height:560px!important}
#treeV2720 .rt-toolbar{z-index:50!important}

/* RODOPIS v2.7.23 — bezpečné drag ovládanie + kompaktné priestorové vetvy */
#treeV2720{cursor:grab}
#treeV2720.is-dragging{cursor:grabbing!important}
#treeV2720.mode-space{cursor:default}
#treeV2720 .rt-space{cursor:grab}
#treeV2720 .rt-space.is-dragging{cursor:grabbing!important}
#treeV2720 .rt-space-node{transition:opacity .08s linear,box-shadow .14s ease!important}
#treeV2720 .rt-space-lines line{vector-effect:non-scaling-stroke}
#treeV2720 .rt-space-caption span{max-width:420px;white-space:normal;text-align:center}


/* RODOPIS v2.7.24 — čistá hlavička, sidebar po celú výšku a Rodostrom ako pracovná obrazovka */
/* Dashboard: odstránený historický obrázok kostola/dediny aj polopriehľadné logo z hlavičky. */
.view-dashboard .ref-dashboard-head{
  background:#f8f3eb!important;
  background-image:none!important;
  overflow:visible!important;
}
.view-dashboard .ref-dashboard-head:before,
.view-dashboard .ref-dashboard-head:after{display:none!important}

/* Desktop: ľavé menu je stále od vrchu po spodok viditeľného okna aj pri rolovaní stránky. */
@media (min-width:921px){
  body:not(.view-tree) .app-shell.ref-shell{position:relative!important}
  body:not(.view-tree) .ref-sidebar{
    position:fixed!important;
    left:0!important;
    top:0!important;
    bottom:0!important;
    height:100vh!important;
    min-height:100vh!important;
    max-height:100vh!important;
    z-index:60!important;
  }
  body:not(.view-tree) .ref-main{grid-column:2!important;min-width:0!important}
}

/* Rodostrom sa po otvorení správa ako samostatná pracovná plocha na celú aplikáciu. */
@media (min-width:921px){
  body.view-tree{overflow:hidden!important;background:#fbf7ef!important}
  body.view-tree .app-shell.ref-shell,
  body.view-tree .app-shell.ref-shell.sidebar-collapsed{
    display:block!important;
    grid-template-columns:1fr!important;
    width:100vw!important;
    height:100vh!important;
    min-height:100vh!important;
  }
  body.view-tree .ref-sidebar,
  body.view-tree .sidebar-backdrop,
  body.view-tree .ref-topbar,
  body.view-tree .genealogy-head{display:none!important}
  body.view-tree .ref-main{
    width:100vw!important;
    height:100vh!important;
    min-width:0!important;
    overflow:hidden!important;
  }
  body.view-tree .ref-content{
    width:100%!important;
    max-width:none!important;
    height:100vh!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
  }
  body.view-tree .tree-workspace-grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 340px!important;
    gap:0!important;
    width:100%!important;
    height:100vh!important;
    min-height:100vh!important;
    align-items:stretch!important;
  }
  body.view-tree .pedigree-shell{
    width:100%!important;
    height:100vh!important;
    min-height:0!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
    background:#fffdf8!important;
  }
  /* Horné ovládanie ostáva vždy viditeľné a nič ho neprekrýva. */
  body.view-tree .pedigree-toolbar{
    position:relative!important;
    top:auto!important;
    z-index:140!important;
    flex:0 0 auto!important;
    width:100%!important;
    min-height:62px!important;
    height:auto!important;
    padding:7px 10px!important;
    display:flex!important;
    align-items:center!important;
    align-content:center!important;
    justify-content:flex-start!important;
    flex-wrap:wrap!important;
    gap:7px 10px!important;
    overflow:visible!important;
    background:#fffaf3!important;
    border-bottom:1px solid #e3d4bf!important;
    box-shadow:0 3px 12px rgba(65,49,30,.05)!important;
  }
  body.view-tree .pedigree-modes{flex:0 0 auto!important;display:flex!important;gap:5px!important;overflow:visible!important}
  body.view-tree .tree-view-controls{
    display:flex!important;
    flex:1 1 430px!important;
    min-width:360px!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    flex-wrap:wrap!important;
  }
  body.view-tree .tree-view-label{display:none!important}
  body.view-tree .pedigree-actions{
    display:flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    gap:5px!important;
    margin-left:auto!important;
    position:static!important;
    transform:none!important;
  }
  body.view-tree .pedigree-actions [data-tree-fullscreen]{
    position:static!important;
    transform:none!important;
    margin:0!important;
    width:34px!important;
    min-width:34px!important;
    font-size:15px!important;
  }
  body.view-tree .pedigree-canvas{
    flex:1 1 auto!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:auto!important;
  }
  body.view-tree #treeV2720,
  body.view-tree #treeV2720 .rt-2d,
  body.view-tree #treeV2720 .rt-space{min-height:100%!important;height:100%!important}
  body.view-tree .pedigree-foot{flex:0 0 auto!important}
  body.view-tree .tree-inspector.tree-profile-card,
  body.view-tree .tree-inspector{
    position:relative!important;
    top:0!important;
    width:340px!important;
    height:100vh!important;
    max-height:100vh!important;
    overflow:auto!important;
    margin:0!important;
    border-radius:0!important;
    border-top:0!important;
    border-right:0!important;
    border-bottom:0!important;
    box-shadow:-6px 0 18px rgba(61,46,28,.045)!important;
    z-index:20!important;
  }
}

/* Užšie notebooky: pracovný panel osoby ostáva vedľa stromu, ale je kompaktnejší. */
@media (min-width:921px) and (max-width:1180px){
  body.view-tree .tree-workspace-grid{grid-template-columns:minmax(0,1fr) 300px!important}
  body.view-tree .tree-inspector.tree-profile-card,
  body.view-tree .tree-inspector{width:300px!important}
  body.view-tree .tree-view-controls{flex-basis:100%!important;order:3!important;justify-content:flex-start!important;min-width:0!important}
}

/* Skutočný browser fullscreen používa rovnaké usporiadanie; tlačidlo X zostáva vpravo v toolbare. */
.pedigree-shell:fullscreen,
.pedigree-shell.tree-fullscreen-fallback{display:flex!important;flex-direction:column!important}
.pedigree-shell:fullscreen .pedigree-toolbar,
.pedigree-shell.tree-fullscreen-fallback .pedigree-toolbar{position:relative!important;z-index:160!important;flex:0 0 auto!important}
.pedigree-shell:fullscreen .pedigree-canvas,
.pedigree-shell.tree-fullscreen-fallback .pedigree-canvas{flex:1 1 auto!important;height:auto!important;min-height:0!important}


/* RODOPIS v2.7.25 — viditeľná Celá vetva + vysúvací sidebar aj v pracovnom rodostrome */
@media (min-width:921px){
  body.view-tree .ref-sidebar{
    display:block!important;
    position:fixed!important;
    left:0!important;top:0!important;bottom:0!important;
    width:22px!important;height:100vh!important;min-height:100vh!important;max-height:100vh!important;
    padding:0!important;overflow:hidden!important;
    z-index:320!important;
    background:linear-gradient(180deg,#232a2f,#1b2125)!important;
    transition:width .18s ease,padding .18s ease!important;
    box-shadow:2px 0 10px rgba(25,25,25,.10)!important;
  }
  body.view-tree .ref-sidebar:after{
    content:"";position:absolute;right:0;top:0;bottom:0;width:4px;
    background:linear-gradient(180deg,transparent 2%,#c5964b 18%,#c5964b 82%,transparent 98%);
    opacity:.78;pointer-events:none;
  }
  body.view-tree .ref-sidebar>*{opacity:0!important;pointer-events:none!important}
  body.view-tree .ref-sidebar:hover,
  body.view-tree .ref-sidebar:focus-within{
    width:238px!important;padding:0 0 14px!important;overflow-y:auto!important;overflow-x:hidden!important;
  }
  body.view-tree .ref-sidebar:hover>*,
  body.view-tree .ref-sidebar:focus-within>*{opacity:1!important;pointer-events:auto!important}
  body.view-tree .ref-sidebar:hover:after,
  body.view-tree .ref-sidebar:focus-within:after{opacity:0!important}
  body.view-tree .sidebar-collapse{display:none!important}
  body.view-tree .ref-main{padding-left:22px!important;box-sizing:border-box!important}
}
#treeV2720[data-ready="2725"] .rt-stage{visibility:visible!important;opacity:1!important}

/* RODOPIS v2.7.26 — primary logos always full-contrast; only tree watermark may be faded */
.auth-full-logo img,
.invite-logo,
.legal-logo,
.sidebar-logo-panel img,
.ref-brand-live img,
.ref-card-title > img,
.tree-mini-logo img,
.ts-brand-lockup img,
body:not(.view-tree) img[src*="logo-primary-v2726.png"]{
  opacity:1!important;
  filter:none!important;
  mix-blend-mode:normal!important;
}

/* RODOPIS v2.7.34 — jazykový prepínač prihlásenej platformy */
.app-language-switch{display:flex;align-items:center;margin-left:auto;margin-right:6px;position:relative;z-index:360}
.app-language-switch .lang-switch{position:relative;display:flex;align-items:center}
.app-language-switch .lang-switch>summary{list-style:none}.app-language-switch .lang-switch>summary::-webkit-details-marker{display:none}
.app-language-switch .lang-label{height:36px;min-width:46px;padding:0 10px;border:1px solid #d9d0c4;border-radius:11px;background:#fffaf2;color:#26342e;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:11px;letter-spacing:.07em;cursor:pointer}
.app-language-switch .lang-menu{display:none;position:absolute;right:0;top:42px;min-width:78px;padding:6px;background:#fffdf8;border:1px solid #ddd2c3;border-radius:11px;box-shadow:0 14px 32px rgba(31,36,32,.16);z-index:500}
.app-language-switch .lang-switch[open] .lang-menu,.app-language-switch .lang-switch:hover .lang-menu,.app-language-switch .lang-switch:focus-within .lang-menu{display:grid}
.app-language-switch .lang-menu a{padding:7px 10px;border-radius:7px;font-size:11px;font-weight:800;text-align:center;color:#344038;text-decoration:none}
.app-language-switch .lang-menu a:hover,.app-language-switch .lang-menu a.active{background:#efe4d3;color:#173b2d}
@media(max-width:760px){.app-language-switch{margin-left:0;margin-right:2px}.app-language-switch .lang-label{height:34px;min-width:42px;padding:0 8px}.app-language-switch .lang-menu{top:39px}}
/* v2.7.35 — Rodopis ↔ Cintir integration */
.integration-card{margin-top:16px}.integration-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center}.integration-main b{font-size:1.08rem}.integration-main p{margin:.35rem 0}.integration-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.integration-actions form{margin:0}.integration-candidates{display:grid;gap:10px;margin-top:14px}.integration-candidates h4{margin:0 0 4px}.integration-candidates article{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:12px 14px;border:1px solid rgba(120,96,58,.22);border-radius:14px;background:rgba(255,250,240,.48)}.integration-candidates small{display:block;margin-top:4px;opacity:.72}.integration-conflicts{margin-top:14px;padding:14px;border-radius:14px;border:1px solid rgba(175,102,65,.35);background:rgba(175,102,65,.08)}.integration-conflicts>div{display:grid;grid-template-columns:130px 1fr 1fr;gap:10px;padding:7px 0;border-bottom:1px solid rgba(120,96,58,.12)}.integration-conflicts>div:last-of-type{border-bottom:0}.integration-conflicts p{margin:.7rem 0 0;font-size:.9rem;opacity:.78}@media(max-width:720px){.integration-grid,.integration-candidates article{grid-template-columns:1fr}.integration-actions{align-items:stretch}.integration-actions .btn,.integration-actions button{width:100%}.integration-conflicts>div{grid-template-columns:1fr}.integration-card{font-size:1rem}}

/* v2.7.40 – richer platform-admin client overview */
.admin-client-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:4px 0 14px}
.admin-client-metric{border:1px solid #eadcc5;background:linear-gradient(180deg,#fffdfa,#fbf5e9);border-radius:16px;padding:16px;min-height:108px;display:flex;flex-direction:column;justify-content:center}
.admin-client-metric.primary{border-color:#d7b06a;box-shadow:inset 0 0 0 1px rgba(183,133,48,.08)}
.admin-client-metric b{font-family:Georgia,serif;font-size:30px;line-height:1;color:#27231f}
.admin-client-metric span{font-weight:800;margin-top:7px;color:#443a2d}
.admin-client-metric small{display:block;margin-top:5px;line-height:1.35;color:#817464}
.admin-client-status-strip{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.admin-client-status-strip span{border:1px solid #eadcc5;background:#fffaf0;border-radius:999px;padding:8px 11px;font-size:12px;color:#665947}
.admin-client-status-strip b{color:#9b6c24}
.admin-privacy-note{margin-bottom:18px}
@media(max-width:1100px){.admin-client-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.admin-client-metrics{grid-template-columns:1fr}.admin-client-metric{min-height:auto}.admin-client-metric b{font-size:27px}}

/* RODOPIS v2.7.41 — pracovný rodostrom je 2D-first, rýchly a bez experimentálneho 3D */
.view-tree .pedigree-toolbar{gap:8px;align-items:center;flex-wrap:wrap}
.view-tree .pedigree-modes{display:flex;gap:5px;flex-wrap:wrap}
.view-tree .pedigree-modes a{min-height:34px;padding:8px 11px;border-radius:9px;font-size:11px}
.view-tree .tree-view-controls{margin-left:auto}
.view-tree .tree-layout-switch{display:flex;gap:4px;padding:3px;border:1px solid #e1d4c0;border-radius:10px;background:#fffaf3}
.view-tree .tree-layout-switch button{min-height:30px;padding:6px 10px;border:0;border-radius:7px;background:transparent;font-size:10px;font-weight:750;color:#6d604f;cursor:pointer}
.view-tree .tree-layout-switch button.active{background:#263238;color:#fff;box-shadow:0 2px 6px rgba(31,42,46,.15)}
.view-tree .pedigree-actions{display:flex;gap:5px;align-items:center;flex-wrap:wrap}
.view-tree .pedigree-actions .tree-save-link{min-height:32px;display:inline-flex;align-items:center;padding:0 10px;font-size:10px}
.view-tree .pedigree-actions button{min-width:34px;height:32px}
#treeV2720 .rt-initials{width:43px;height:43px;flex:0 0 43px;border-radius:50%;display:grid;place-items:center;border:2px solid #e6d5b5;background:#f2e8d7;color:#785d35;font:800 12px/1 system-ui,sans-serif;letter-spacing:.03em}
#treeV2720 .rt-card.is-root .rt-initials{background:#344349;border-color:#d4ad68;color:#fff}
#treeV2720.rt-large-tree .rt-card{width:164px;min-height:58px;padding:6px 8px;gap:7px}
#treeV2720.rt-large-tree .rt-card img,#treeV2720.rt-large-tree .rt-initials{width:36px;height:36px;flex-basis:36px}
#treeV2720.rt-large-tree .rt-card b{font-size:11px}
#treeV2720.rt-large-tree .rt-card small{font-size:8px}
#treeV2720.rt-large-tree .rt-card .rt-place{display:none}
#treeV2720 .rt-toolbar{left:12px;bottom:12px;padding:5px}
#treeV2720 .rt-toolbar button{height:34px;padding:0 9px;min-width:36px}
#treeV2720 .rt-toolbar button[data-rta="fit"]{min-width:82px}
#treeV2720 .rt-toolbar button[data-rta="center"]{min-width:58px}
.tree-legacy-disabled{display:none!important}
.import-name-warning{margin-top:10px;padding:10px 12px;border:1px solid #e6c98d;background:#fff8e9;border-radius:10px;color:#725526;font-size:11px;line-height:1.5}
@media(max-width:980px){
 .view-tree .tree-view-controls{margin-left:0;order:3}
 .view-tree .pedigree-actions{margin-left:auto}
 .view-tree .pedigree-foot{font-size:10px}
}
@media(max-width:680px){
 .view-tree .pedigree-toolbar{padding:7px;align-items:stretch}
 .view-tree .pedigree-modes{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .view-tree .pedigree-modes a{text-align:center;font-size:12px}
 .view-tree .tree-view-controls{width:auto}
 .view-tree .tree-layout-switch button{font-size:11px;padding:7px 9px}
 .view-tree .pedigree-actions{margin-left:auto}
 .view-tree .pedigree-actions .tree-save-link{display:none}
 #treeV2720{min-height:520px!important}
 #treeV2720 .rt-card{width:168px;min-height:62px}
 #treeV2720 .rt-card b{font-size:12px}
 #treeV2720 .rt-card small{font-size:9px}
 #treeV2720 .rt-hint{display:none}
 #treeV2720 .rt-toolbar .rt-status{display:none}
}
.view-tree .tree-inspector.is-loading{opacity:.58;pointer-events:none;transition:opacity .12s}
.view-tree .tree-profile-initials{display:grid;place-items:center;background:#efe3d2;color:#73552d;font:800 18px/1 system-ui,sans-serif;letter-spacing:.04em}
.view-tree .tree-initial-face{display:grid;place-items:center;background:#f2e8d7;color:#72552e;font:800 10px/1 system-ui,sans-serif}
.view-tree .tree-profile-tabs>span{display:inline-flex;align-items:center;gap:4px;padding:7px 8px;color:#776b5f;font-size:10px}


/* RODOPIS v2.7.42 — čistý pracovný rodostrom + prepínač rodokmeňov */
.top-tree-switcher{display:flex;align-items:center;min-width:210px;max-width:310px}.top-tree-switcher label{display:grid;grid-template-columns:auto minmax(120px,1fr);align-items:center;gap:8px;width:100%}.top-tree-switcher label>span{font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#8a7357}.top-tree-switcher select{height:38px;border:1px solid #decfb9;border-radius:10px;background:#fffaf3;color:#3d342b;padding:0 28px 0 10px;font-weight:700;font-size:11px;min-width:0}.view-tree [data-tree20-layout="space"],.view-tree [data-tree20-layout="3d"],.view-tree .tree-links-toggle,.view-tree .renderer-badge,.view-tree [data-renderer-version]{display:none!important}.view-tree .tree-layout-switch{max-width:260px}.view-tree .pedigree-toolbar{gap:8px!important}.view-tree .pedigree-canvas{min-height:540px!important}.import-name-repair{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px;padding-top:12px;border-top:1px solid #eadfce}.import-name-repair small{color:#7a6d5f}@media(max-width:1180px){.top-tree-switcher{min-width:170px;max-width:220px}.top-tree-switcher label>span{display:none}.top-tree-switcher label{grid-template-columns:1fr}}@media(max-width:760px){.top-tree-switcher{order:3;width:100%;max-width:none}.top-tree-switcher select{width:100%}}


/* RODOPIS v2.7.43 — celý strom, fotografické výsledky a prepracovaný panel osoby */
.view-tree .tree-workspace-grid{grid-template-columns:minmax(0,1fr) 390px!important}
.view-tree .tree-inspector.tree-profile-card{width:390px!important;padding:16px 16px 18px!important;background:#fffdf9!important}
.view-tree .tree-profile-head{display:grid!important;grid-template-columns:108px minmax(0,1fr) 38px!important;gap:14px!important;align-items:start!important;padding-bottom:14px!important;border-bottom:1px solid #eadfce!important}
.view-tree .tree-profile-photo{width:108px!important;height:132px!important;border-radius:16px!important;box-shadow:0 8px 22px rgba(64,47,27,.08)!important}
.view-tree .tree-profile-identity h2{font-size:28px!important;line-height:1.02!important;margin:4px 0 7px!important}
.view-tree .tree-profile-identity>p{font-size:13px!important;margin:0 0 9px!important;color:#6f6357!important}
.view-tree .tree-profile-meta{display:flex!important;flex-direction:column!important;gap:4px!important}
.view-tree .tree-profile-meta span{font-size:11px!important}
.view-tree .tree-profile-tabs{display:flex!important;overflow-x:auto!important;gap:4px!important;padding:10px 0 8px!important;border-bottom:1px solid #eadfce!important}
.view-tree .tree-profile-tabs a,.view-tree .tree-profile-tabs>span{font-size:10px!important;padding:7px 9px!important;white-space:nowrap!important;border-radius:8px!important}
.view-tree .tree-profile-tabs .active{background:#f4eadc!important;color:#8c5f24!important}
.view-tree .tree-profile-family-grid{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;margin-top:12px!important}
.view-tree .tree-profile-family-grid>section+section{border-left:0!important;padding-left:0!important}
.view-tree .tree-relation-block,.view-tree .tree-profile-children{background:#fbf6ed!important;border:1px solid #eadcc8!important;border-radius:14px!important;padding:11px!important}
.view-tree .tree-relation-block h3,.view-tree .tree-profile-children h3{display:flex!important;align-items:center!important;justify-content:space-between!important;font-size:14px!important;margin:0 0 8px!important}
.view-tree .tree-relation-block h3 i{font:700 9px/1 system-ui!important;background:#eadcc8!important;color:#795b32!important;border-radius:999px!important;padding:4px 6px!important}
.view-tree .tree-family-person{display:grid!important;grid-template-columns:42px minmax(0,1fr) 18px!important;gap:9px!important;align-items:center!important;min-height:52px!important;padding:6px!important;border-radius:10px!important;text-decoration:none!important}
.view-tree .tree-family-person:hover{background:#fff!important;box-shadow:0 3px 12px rgba(61,46,28,.05)!important}
.view-tree .tree-family-face{width:42px!important;height:42px!important;border-radius:11px!important}
.view-tree .tree-family-person b{font-size:12px!important;line-height:1.15!important}
.view-tree .tree-family-person small{font-size:9px!important;margin-top:2px!important}
.view-tree .tree-family-person em{font-style:normal!important;color:#a77838!important;font-size:15px!important}
.view-tree .tree-profile-children{margin-top:10px!important}
.view-tree .tree-profile-children>div{display:grid!important;grid-template-columns:1fr!important;gap:4px!important}
.view-tree .tree-profile-actions{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:6px!important;margin-top:12px!important}
.view-tree .tree-profile-actions a{font-size:10px!important;min-height:38px!important;display:flex!important;align-items:center!important;justify-content:center!important;border:1px solid #dfcfb9!important;border-radius:10px!important;background:#fffaf3!important;text-decoration:none!important;color:#6a5130!important;font-weight:800!important}
.view-tree .tree-profile-full{margin-top:7px!important;min-height:42px!important;font-size:11px!important;border-radius:10px!important}
.view-tree #treeV2720 .rt-card>img{width:44px!important;height:44px!important;object-fit:cover!important;border-radius:11px!important;margin:7px 0 7px 7px!important;flex:0 0 auto!important}
.view-tree #treeV2720 .rt-card{display:flex!important;align-items:center!important;gap:7px!important;padding:0 7px 0 0!important}
.view-tree #treeV2720 .rt-copy{min-width:0!important}
.omni-result-card.omni-person-card{display:grid!important;grid-template-columns:76px minmax(0,1fr)!important;gap:13px!important;align-items:center!important;padding:12px!important}
.omni-person-photo{width:76px;height:92px;border-radius:13px;overflow:hidden;position:relative;background:#f0e6d8}.omni-person-photo img{width:100%;height:100%;object-fit:cover;display:block}.omni-person-copy{min-width:0}.omni-person-copy h4{margin:3px 0 5px!important}.omni-person-copy .omni-result-top{min-height:22px;justify-content:flex-end}.portal-person-card{background:linear-gradient(135deg,#fffdf8,#f8f1e5)!important}
@media (min-width:921px) and (max-width:1180px){body.view-tree .tree-workspace-grid{grid-template-columns:minmax(0,1fr) 330px!important}body.view-tree .tree-inspector.tree-profile-card{width:330px!important}.view-tree .tree-profile-head{grid-template-columns:86px minmax(0,1fr) 34px!important}.view-tree .tree-profile-photo{width:86px!important;height:106px!important}.view-tree .tree-profile-identity h2{font-size:23px!important}}
@media(max-width:720px){.omni-result-card.omni-person-card{grid-template-columns:62px minmax(0,1fr)!important}.omni-person-photo{width:62px;height:76px}}


/* RODOPIS v2.7.44 — repaired live tree renderer + safe tree archive UI */
.view-tree #treeV2720::before{opacity:.018!important;background-size:min(26vw,310px) auto!important;z-index:0!important}
.view-tree #treeV2720 .rt-2d,.view-tree #treeV2720 .rt-toolbar,.view-tree #treeV2720 .rt-hint{position:relative;z-index:2}
.tree-switch-card{gap:12px}.tree-switch-main{min-width:0;flex:1}.tree-switch-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.tree-switch-actions form{margin:0}.btn.danger{border-color:#d8aca5!important;background:#fff7f5!important;color:#8b3c32!important}.btn.danger:hover{background:#fce9e5!important}.tree-archive-note{margin:14px 0 0;padding:12px 14px;border-radius:12px;background:#f7f2e8;color:#6b5c4b;font-size:12px;line-height:1.5}.archived-trees-panel{margin-top:16px}.tree-switch-list.archived .tree-switch-card{opacity:.88;background:#faf7f1}.tree-switch-card.archived b:before{content:'ARCHÍV · ';font-size:9px;letter-spacing:.08em;color:#98733d}
@media(max-width:700px){.tree-switch-actions{width:100%;justify-content:flex-start}.tree-switch-card{align-items:flex-start;flex-wrap:wrap}}

/* v2.7.45 portal discovery + direct messaging */
.portal-person-contact{display:flex;flex-direction:column;gap:16px;min-height:220px}.portal-message-form{margin-top:auto}.portal-message-form .btn{justify-content:center}.messages-layout{display:grid;grid-template-columns:minmax(280px,34%) 1fr;gap:18px;align-items:start}.messages-list,.message-detail{min-height:610px}.message-thread-list{display:flex;flex-direction:column;gap:8px}.message-thread-item{display:grid;grid-template-columns:44px 1fr auto;gap:12px;align-items:center;padding:14px;border:1px solid var(--line,#e5d8c7);border-radius:16px;text-decoration:none;color:inherit}.message-thread-item.active{background:#f6efe2;border-color:#c8a66b}.message-thread-item p{margin:4px 0 0;color:#756b60;font-size:.9rem}.message-thread-item small{display:block;color:#8a7968}.message-avatar{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#efe4d3;color:#9a6a2b;font-weight:800}.message-unread{min-width:24px;height:24px;border-radius:999px;display:grid;place-items:center;background:#1d2b31;color:#fff;font-size:.75rem}.message-detail{display:flex;flex-direction:column}.message-detail-head{padding-bottom:16px;border-bottom:1px solid var(--line,#eadfce)}.message-bubbles{display:flex;flex-direction:column;gap:12px;padding:20px 4px;max-height:520px;overflow:auto}.message-bubble{max-width:76%;padding:12px 14px;border-radius:16px;background:#f4eee4}.message-bubble.mine{align-self:flex-end;background:#1d2b31;color:#fff}.message-bubble.theirs{align-self:flex-start}.message-bubble p{margin:6px 0;white-space:normal}.message-bubble small{opacity:.7}.message-compose{margin-top:auto;display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end}.message-compose textarea{min-height:92px}.messages-empty{margin:auto;text-align:center;max-width:420px;padding:50px 20px}@media(max-width:860px){.messages-layout{grid-template-columns:1fr}.messages-list,.message-detail{min-height:auto}.message-compose{grid-template-columns:1fr}.message-bubble{max-width:90%}}

/* v2.7.46 – compact portal search rows */
.portal-result-table{display:grid;border:1px solid var(--line,#e5d8c7);border-radius:14px;overflow:hidden;background:#fff}.portal-result-head,.portal-result-row{display:grid;grid-template-columns:minmax(180px,1.5fr) 110px minmax(150px,1.1fr) minmax(150px,1fr) 76px 110px;gap:12px;align-items:center;padding:10px 14px}.portal-result-head{background:#f7f2ea;color:#7b6a56;font-size:.74rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.portal-result-row{border-top:1px solid var(--line,#eadfce);min-height:62px}.portal-result-row:hover{background:#fcfaf6}.portal-person-main{display:grid;gap:2px}.portal-person-main strong{font-family:Georgia,serif;font-size:1rem}.portal-person-main small{margin:0;color:#8a7968;font-size:.78rem}.portal-years,.portal-tree-name,.portal-owner{font-size:.9rem;color:#514b44}.portal-message-inline{margin:0;justify-self:end}.portal-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:14px}.portal-pagination span{font-size:.9rem;color:#756b60}@media(max-width:980px){.portal-result-head{display:none}.portal-result-row{grid-template-columns:1fr auto;gap:6px 12px;padding:12px}.portal-person-main{grid-column:1}.portal-years{grid-column:2;grid-row:1}.portal-tree-name,.portal-owner{grid-column:1}.portal-result-row>div:nth-of-type(5){grid-column:2;grid-row:2}.portal-message-inline{grid-column:2;grid-row:3/5;align-self:end}.portal-tree-name:before{content:'Rodokmeň: ';font-weight:700}.portal-owner:before{content:'Spravuje: ';font-weight:700}}@media(max-width:620px){.portal-result-row{grid-template-columns:1fr}.portal-years,.portal-tree-name,.portal-owner,.portal-result-row>div:nth-of-type(5),.portal-message-inline{grid-column:1;grid-row:auto;justify-self:start}.portal-pagination{flex-wrap:wrap}}

/* v2.7.47 – smarter all-tree search */
.omni-search-form-v2747{display:grid;grid-template-columns:minmax(150px,.85fr) minmax(180px,.95fr) minmax(180px,1fr) minmax(105px,.55fr) minmax(190px,.9fr) auto;gap:12px;align-items:end}
.omni-search-form-v2747 .omni-fuzzy-option{grid-column:1 / -2;display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid rgba(174,130,68,.22);border-radius:14px;background:rgba(250,246,238,.72);cursor:pointer}
.omni-search-form-v2747 .omni-fuzzy-option input{width:19px;height:19px;margin:0;accent-color:#263238;flex:0 0 auto}
.omni-search-form-v2747 .omni-fuzzy-option>span{display:flex;flex-direction:column;gap:2px;line-height:1.25}
.omni-search-form-v2747 .omni-fuzzy-option small{font-size:12px;color:var(--muted,#746d62);font-weight:400}
.omni-search-form-v2747 .omni-search-submit{grid-column:-2 / -1;grid-row:2;min-height:48px;white-space:nowrap}
.portal-person-main small{display:block;margin-top:3px}
@media(max-width:1100px){.omni-search-form-v2747{grid-template-columns:repeat(2,minmax(0,1fr))}.omni-search-form-v2747 .omni-fuzzy-option{grid-column:1 / -1}.omni-search-form-v2747 .omni-search-submit{grid-column:1 / -1;grid-row:auto}}
@media(max-width:680px){.omni-search-form-v2747{grid-template-columns:1fr}.omni-search-form-v2747 .omni-fuzzy-option,.omni-search-form-v2747 .omni-search-submit{grid-column:1}.omni-search-form-v2747 .omni-fuzzy-option small{font-size:13px}}
