:root{--brand:#821b30;--brand-dark:#651322;--brand-light:#f8e9ec;--surface:#fffefd;--canvas:#f8f6f2;--line:#e5dfe0;--ink:#242631;--muted:#68707e;--weekend:#fcf0f1;--green:#207b50;--blue:#1c62be;--orange:#bb651a;--purple:#7750b2;--shadow:0 2px 9px #48252a06;color-scheme:light;font-family:'DM Sans',sans-serif;font-size:14px;color:var(--ink);background:var(--canvas)}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,.button{min-height:34px;border:1px solid var(--line);border-radius:4px;background:var(--surface);color:var(--ink);padding:7px 12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;text-decoration:none;white-space:nowrap;line-height:1.3}button:hover,.button:hover{border-color:var(--brand);background:var(--brand-light);color:var(--brand)}button:disabled{opacity:.55;cursor:wait}.primary,.button.primary{background:var(--brand);color:white;border-color:var(--brand)}.primary:hover,.button.primary:hover{background:var(--brand-dark);color:white}a{color:var(--brand)}a:hover{text-decoration-thickness:2px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #bf7a41;outline-offset:3px}h1,h2,h3,h4,p,figure{margin:0}h1,h2,h3,h4{font-family:'DM Sans',sans-serif}h1{font-size:44px;line-height:1.12}h2{font-size:20px;line-height:1.2}h3{font-size:18px;line-height:1.2}p{line-height:1.5}input,textarea,select{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:4px;min-width:0;padding:8px 10px}input[type=checkbox],input[type=radio]{accent-color:var(--brand);width:17px;height:17px;flex-shrink:0}textarea{resize:vertical}.icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;flex-shrink:0;stroke-linecap:round;stroke-linejoin:round}.svg-sprite{position:absolute;width:0;height:0;overflow:hidden}.skip-link{position:fixed;top:-100px;left:10px;background:var(--surface);padding:14px;z-index:100}.skip-link:focus{top:10px}.topbar{min-height:54px;background:linear-gradient(105deg,#861e35,#6c1525);color:#fff;display:flex;align-items:center;gap:26px;padding:0 32px}.brand{font-family:'DM Sans',sans-serif;font-weight:700;font-size:31px;letter-spacing:-.6px;display:flex;align-items:center;gap:11px;color:inherit;text-decoration:none;white-space:nowrap}.brand>.icon{height:31px;width:31px;stroke-width:2.1}.brand-number{color:#ef8592}.primary-nav{display:flex;gap:26px;height:54px;align-items:center;flex:1;justify-content:center}.primary-nav a{color:#fff;text-decoration:none;font-size:14px;white-space:nowrap;height:100%;display:flex;align-items:center;position:relative}.primary-nav a:hover:after,.primary-nav a[aria-current=page]:after{content:"";position:absolute;left:0;right:0;bottom:7px;height:2px;background:#ee8796}.header-search{background:transparent;border-color:#ffffff45;color:#fff;justify-content:flex-start;width:295px;min-width:180px;font-size:13px}.header-search:hover{background:#ffffff15;color:white}.header-search kbd{font:10px 'DM Sans',sans-serif;margin-left:auto;opacity:.7}.country{display:flex;gap:10px;align-items:center;white-space:nowrap}.latvian-flag{display:inline-block;width:31px;height:21px;background:linear-gradient(#9e1b34 0 40%,white 40% 60%,#9e1b34 60%);border:1px solid #ffffff90}.secondary-nav{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:39px;padding:0 45px;border-bottom:1px solid var(--line);background:var(--surface);overflow-x:auto}.secondary-nav a{font-size:13px;color:var(--ink);text-decoration:none;display:flex;align-items:center;gap:12px;white-space:nowrap;padding:9px 4px}.secondary-nav a:hover{color:var(--brand)}.nav-divider{height:17px;border-right:1px solid var(--line)}.mobile-menu{display:none}.home-hero{height:109px;display:flex;align-items:center;position:relative;overflow:hidden;padding:0 46px;gap:54px;background:#f4eee4;border-bottom:1px solid var(--line)}.home-hero>div,.home-hero>button{z-index:1}.home-hero h1{font-size:58px;color:#72172a;letter-spacing:-1.8px;white-space:nowrap}.home-hero p{font-family:'DM Sans',sans-serif;font-size:21px;color:#4c5361}.home-hero>button{border-color:#a85e6a;background:#fffaf5d9;color:var(--brand);font-weight:600}.hero-skyline{position:absolute;right:0;bottom:0;width:48%;height:150px;object-fit:cover;object-position:50% 60%;opacity:.88;mask-image:linear-gradient(90deg,transparent,#000 27%)}.folk-border{width:20px;position:absolute;right:4px;top:0;bottom:0;background:repeating-conic-gradient(from 45deg,#8d2639 0 25%,#f4eee4 0 50%) 0 0/12px 12px;opacity:.8}.dashboard{max-width:1880px;margin:9px auto 0;padding:0 30px;display:grid;grid-template-columns:minmax(250px,25fr) minmax(530px,49fr) minmax(245px,23fr);gap:10px}.left-column,.right-column{display:flex;flex-direction:column;gap:10px;min-width:0}.card{border:1px solid var(--line);border-radius:6px;background:var(--surface);box-shadow:var(--shadow);padding:13px 15px;min-width:0}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.card-heading a{font-size:12px;white-space:nowrap}.card-heading button{font-size:12px;min-height:28px;padding:5px 9px}.today-card{padding:0;overflow:hidden}.today-card h2{padding:7px 15px;font-size:20px}.today-card figure{position:relative;background:#eddbc5;overflow:hidden;height:139px}.today-card figure img{width:100%;height:100%;object-fit:cover}.today-card figcaption{position:absolute;right:8px;bottom:5px;font:12px 'DM Sans',sans-serif;color:#3f3e3b;background:#f7e9d4bf;padding:2px 6px;border-radius:3px}.today-body{padding:7px 14px 10px}.today-body>p:first-child{font-size:13px}.clock-row{display:flex;align-items:center;justify-content:space-between;margin:0 0 7px}.clock-row time{font:700 36px/1.15 'DM Sans',sans-serif;letter-spacing:1px}.clock-row>span{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:3px;padding:5px 7px;font-size:12px}.clock-row small{font-size:9px;color:var(--muted)}.today-links{display:flex;justify-content:space-between;gap:8px;font-size:12px}.today-names{margin-top:7px;color:var(--muted);font-size:12px;max-height:36px;overflow:auto}.upcoming-card{padding-top:10px;padding-bottom:7px}.upcoming-card h2{font-size:18px}.holiday-row{display:grid;grid-template-columns:53px 1fr auto;gap:10px;border-bottom:1px solid var(--line);padding:9px 0;align-items:start;font-size:12px}.holiday-row:last-child{border:0}.holiday-row time{font-weight:bold;color:var(--brand);font-size:14px}.holiday-row strong{font-family:'DM Sans',sans-serif;line-height:1.35}.badge{font-size:10px;border-radius:4px;padding:3px 6px;background:var(--brand-light);color:var(--brand);white-space:nowrap}.badge.neutral{background:none;color:var(--muted)}.layer-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.layer-grid label{display:flex;gap:6px;align-items:center;font-size:11px;line-height:1.3}.layer-grid input{margin:0}.dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--brand);flex-shrink:0}.dot.pale{background:#f3d9df;width:13px;height:13px}.calendar-column{min-width:0}.metrics{height:45px;border:1px solid var(--line);border-radius:5px;background:var(--surface);display:flex;align-items:center;justify-content:space-around;margin-bottom:8px}.metrics>div{display:flex;align-items:center;justify-content:center;gap:17px;flex:1;border-right:1px solid var(--line)}.metrics>div:last-child{border:0}.metrics .icon{color:var(--brand)}.metrics span{display:flex;flex-direction:column;font-size:12px}.metrics strong{font-size:16px;line-height:1.2}.main-calendar{padding:12px 13px}.calendar-heading{display:flex;align-items:center;gap:12px;margin-bottom:13px}.calendar-arrows{display:flex;gap:10px}.calendar-arrows button{font-size:25px;min-height:34px;line-height:1;padding:2px 12px;border-color:#e6bcc5;color:var(--brand)}.calendar-heading h2{text-align:center;flex:1;color:var(--brand-dark);font-size:29px;letter-spacing:-.7px;white-space:nowrap}.calendar-heading-actions{display:flex;gap:10px}.calendar-heading-actions button{font-size:11px;border-color:#ba7886;color:var(--brand)}.calendar-heading-actions .primary{color:white;border-color:var(--brand)}.plus{font-size:25px;line-height:15px}.calendar-controls{display:flex;gap:10px;align-items:center;margin-bottom:10px}.view-tabs{display:flex;flex:1;min-width:0}.view-tabs button{font-size:11px;min-width:0;flex:1;border-radius:0;padding:7px 8px;margin-left:-1px;min-height:31px}.view-tabs button:first-child{border-radius:4px 0 0 4px;margin-left:0}.view-tabs button:last-child{border-radius:0 4px 4px 0}.view-tabs button[aria-pressed=true]{background:var(--brand);border-color:var(--brand);color:white;z-index:1}.event-search{display:flex;align-items:center;border:1px solid var(--line);border-radius:4px;padding-left:8px;width:150px;color:var(--muted)}.event-search input{width:100%;border:0;padding:7px;font-size:11px}.event-search .icon{width:14px;height:14px}.calendar-controls select{font-size:11px;padding:7px}.category-filters{display:flex;gap:9px;margin-bottom:11px;overflow:auto}.category-filters button{font-size:10px;min-height:28px;padding:5px 12px;gap:7px}.category-filters button[aria-pressed=true]{border-color:#efcfd5;background:var(--brand-light);color:var(--brand);font-weight:bold}.calendar-table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;border:1px solid var(--line);border-radius:3px;overflow:hidden;font-size:13px}.calendar-table th{background:#faf8f6;font-weight:600;height:32px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.calendar-table th:first-child{width:43px;color:var(--muted);font-size:12px}.calendar-table td{height:66px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:0;vertical-align:top;position:relative}.calendar-table tr:last-child td{border-bottom:0}.calendar-table th:last-child,.calendar-table td:last-child{border-right:0}.calendar-table .week-number{background:#faf8f6;vertical-align:top;text-align:center;padding-top:18px;color:var(--muted);font-size:11px}.calendar-table .week-number a{color:inherit;text-decoration:none}.calendar-table .weekend{background:var(--weekend);color:var(--brand)}.calendar-table .other-month{color:#6c707a;background:#faf9f7}.calendar-table .holiday{background:var(--weekend)}.calendar-table .selected-day{box-shadow:inset 0 0 0 2px #a7435b;background:var(--brand-light)}.day-button{width:100%;height:100%;min-height:66px;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;border:0;background:transparent;white-space:normal;border-radius:0;padding:9px 5px 4px;color:inherit;gap:3px}.day-button:hover{background:#921c3010}.date-number{align-self:center;display:flex;align-items:center;justify-content:center;width:25px;height:25px;border-radius:50%;line-height:1;font-weight:600}.is-today .date-number{background:var(--brand);color:white}.day-event{font-size:9px;line-height:1.15;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;gap:3px;align-items:center}.day-event .dot{width:6px;height:6px}.more-events{font-size:9px;color:var(--muted);text-align:center}.calendar-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:14px}.calendar-legend{display:flex;gap:18px;font-size:11px}.calendar-legend span{display:flex;align-items:center;gap:8px}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.calendar-footer button{font-size:11px;min-height:32px;padding:6px 10px}.right-column h2{font-size:19px}.day-plan{min-height:165px}.day-plan .card-heading{margin-bottom:3px}.muted{color:var(--muted);font-size:12px}.day-plan .muted{font-size:12px;margin-bottom:10px}.empty-state{color:var(--muted);font-size:12px;line-height:1.6;padding:13px 0}.plan-event{display:grid;grid-template-columns:42px 12px 1fr auto;gap:8px;align-items:start;padding:9px 0;border-top:1px solid var(--line);font-size:12px}.plan-event .dot{margin-top:3px}.plan-event .event-edit{border:0;padding:0;min-height:0;background:none;display:block;text-align:left;white-space:normal}.plan-event strong{font-size:12px}.plan-event small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.notes-card{padding:10px 12px}.notes-card textarea{width:100%;min-height:68px;font-size:12px;line-height:1.5}.save-status{font-size:10px;color:var(--muted)}.tasks-card{padding-top:10px;padding-bottom:11px}.tasks-card h2{margin-bottom:7px}.task-row{display:flex;align-items:center;gap:7px;font-size:12px;margin:7px 0}.task-row label{display:flex;gap:8px;align-items:center;flex:1;overflow-wrap:anywhere}.task-row input{margin:0}.task-row.done span{text-decoration:line-through;color:var(--muted)}.icon-button{width:31px;min-height:28px;border:0;background:none;padding:4px;font-size:20px}.inline-form{display:flex;gap:5px;margin-top:9px}.inline-form input{width:100%;font-size:12px}.inline-form button{font-size:22px;min-height:32px;width:35px;padding:3px}.local-tools h2{margin-bottom:7px}.button-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.button-grid button{font-size:11px;min-height:31px;padding:6px}.button-grid .icon{width:14px;height:14px}.local-tools>small{font-size:9px;color:var(--muted);display:block;line-height:1.4;margin-top:7px}.tools-band{max-width:1820px;margin:10px 30px 0;padding:9px 14px}.tools-band>.card-heading{margin-bottom:8px}.tools-band h2{font-size:25px}.tool-feature-grid{display:grid;grid-template-columns:1.2fr .92fr 1.05fr;gap:12px}.tool-feature{border:1px solid var(--line);border-radius:5px;min-width:0;padding:10px 13px;overflow:hidden}.feature-title{display:flex;align-items:flex-start;gap:14px}.feature-title .icon{width:25px;height:25px;color:var(--brand)}.feature-title p{font-size:11px;color:var(--muted)}.feature-title h3{font-size:17px}.collection-body{display:flex;align-items:center;gap:25px;margin-top:9px;min-height:105px}.collection-body>div:last-child{flex:1}.paper-preview{background:#fffaf1;width:162px;height:115px;flex-shrink:0;transform:rotate(-6deg);padding:9px 10px;box-shadow:4px 2px 9px #2a1d1a15;color:#711b2b;font-family:'DM Sans',sans-serif;border:1px solid #ece3d6;margin-left:6px;position:relative}.paper-preview b{font-size:19px}.paper-preview small{float:right;font-size:6px;margin-top:3px}.paper-preview strong{font:5px 'DM Sans',sans-serif;position:absolute;bottom:6px;right:9px}.paper-grid{height:65px;margin-top:5px;background:repeating-linear-gradient(0deg,transparent 0 10px,#d9d3cd 10px 11px),repeating-linear-gradient(90deg,transparent 0 19px,#c8b7b5 19px 20px)}.year-links{display:flex;margin-bottom:15px}.year-links a{border:1px solid var(--line);border-right:0;padding:5px 10px;font-size:11px;text-decoration:none;color:var(--ink)}.year-links a:last-child{border-right:1px solid var(--line)}.year-links a:first-child{background:var(--brand-light);color:var(--brand)}.collection-body p{font-size:10px;margin-bottom:9px}.collection-body .button{font-size:11px;width:100%}.date-calculator{margin-top:15px}.date-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.date-pair label{display:flex;align-items:center;gap:7px;font-size:11px}.date-pair input{width:100%;font-size:11px;padding:7px 4px}.calculator-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px}.check-label{display:flex;gap:6px;align-items:center;font-size:11px}.calculator-bottom button{font-size:11px;min-height:32px}.date-calculator output{display:block;color:var(--brand);font-size:12px;margin-top:7px;font-weight:600}.date-calculator output:empty{display:none}.swatches{display:flex;gap:9px;margin:16px 0}.swatches i{width:29px;height:29px;border-radius:3px;background:#99233a;border:3px solid var(--surface);outline:1px solid #99233a}.swatches i:nth-child(2){background:#ede4d3;outline:0}.swatches i:nth-child(3){background:#caa78b;outline:0}.swatches i:nth-child(4){background:#6c7775;outline:0}.swatches i:nth-child(5){background:repeating-conic-gradient(#922139 0 25%,#f9f1e7 0 50%) 0/7px 7px;outline:0}.custom-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px}.custom-bottom>span{font-size:11px;color:var(--muted)}.custom-bottom button{font-size:11px}.quick-links{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:10px}.quick-links a{border:1px solid var(--line);border-radius:4px;padding:10px 12px;text-decoration:none;display:flex;gap:15px;align-items:center;color:var(--ink);min-height:55px}.quick-links .icon,.quick-symbol{color:var(--brand);font-size:34px;width:32px;height:32px;flex-shrink:0}.quick-links strong{display:block;font:700 15px 'DM Sans',sans-serif}.quick-links small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.quick-links b{margin-left:auto;color:var(--brand);font-size:24px;font-weight:normal}.quick-links a:hover{border-color:var(--brand)}.site-footer{max-width:1880px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 35px;margin:auto}.site-footer .brand{font-size:16px;color:var(--brand)}.site-footer .brand .icon{width:17px;height:17px}.site-footer nav{display:flex;flex-wrap:wrap;align-items:center;gap:20px;font-size:10px}.site-footer a,.site-footer small{color:var(--muted);text-decoration:none}.site-footer small{font-size:10px;white-space:nowrap}.text-button{border:0;background:none;padding:0;min-height:24px;color:var(--muted);font-size:inherit}.week-view{display:grid;grid-template-columns:repeat(7,1fr);border:1px solid var(--line);border-radius:4px;min-height:330px;overflow:hidden}.week-day{border-right:1px solid var(--line);padding:8px 5px;min-width:0}.week-day:last-child{border:0}.week-day>button{border:0;width:100%;display:flex;flex-direction:column;gap:5px;font-size:11px;padding:5px 1px;background:none;white-space:normal}.week-day>button strong{font:24px 'DM Sans',sans-serif}.week-day .plan-event{display:block;padding:8px 3px}.week-day .plan-event time{font-size:10px}.week-day .plan-event .dot{display:none}.week-day .plan-event strong{font-size:10px;overflow-wrap:anywhere}.week-day .empty-state{font-size:10px}.week-day.is-today{background:var(--brand-light)}.day-timeline{min-height:330px}.timeline-hour{display:grid;grid-template-columns:55px 1fr;min-height:37px;border-bottom:1px solid var(--line);font-size:12px;align-items:center}.timeline-hour>span{color:var(--muted)}.timeline-hour button{white-space:normal;justify-content:flex-start;text-align:left;background:var(--brand-light);border:0;font-size:12px}.list-view{min-height:330px;max-height:450px;overflow:auto}.list-date{font-family:'DM Sans',sans-serif;padding:11px 0;color:var(--brand);border-bottom:1px solid var(--line)}.year-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.mini-month h3{font:700 15px 'DM Sans',sans-serif;color:var(--brand);margin-bottom:5px}.mini-month>button{border:0;padding:0;min-height:24px;background:none}.mini-grid{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;font-size:10px;gap:3px}.mini-grid .mini-label{font-weight:bold;color:var(--muted)}.mini-grid button{font-size:10px;padding:1px;min-height:20px;border:0;background:none}.mini-grid button:hover{background:var(--brand-light)}.mini-grid .weekend{color:var(--brand)}.mini-grid .other-month{opacity:1;color:#555d6b}.mini-grid .is-today{border-radius:50%;background:var(--brand);color:white}.inner-page,.page-content{max-width:1320px;margin:30px auto;padding:0 30px}.page-hero{background:var(--surface);border-bottom:1px solid var(--line);padding:35px 0 28px}.page-hero .container{max-width:1320px;margin:auto;padding:0 30px}.page-hero h1{color:var(--brand-dark);margin:12px 0}.page-hero p{max-width:780px;color:var(--muted)}.breadcrumb{font-size:12px;color:var(--muted);display:flex;flex-wrap:wrap;gap:7px}.content-grid,.cards-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.content-grid .card h2,.cards-grid h2{margin-bottom:10px}.content-grid .card p,.cards-grid p{font-size:14px;line-height:1.7}.section-heading{margin:25px 0 15px}.year-nav{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.year-nav a{padding:8px 18px;border:1px solid var(--line);border-radius:4px;text-decoration:none;background:var(--surface)}.year-nav .active{background:var(--brand);color:white}.data-table{width:100%;border-collapse:collapse;font-size:14px}.data-table th,.data-table td{padding:12px;text-align:left;border-bottom:1px solid var(--line)}.data-table th{background:var(--brand-light)}.notice{padding:18px 20px;background:var(--brand-light);border-left:3px solid var(--brand);margin:20px 0;line-height:1.6}.source-panel{font-size:13px;line-height:1.6;padding:20px;border:1px solid var(--line);border-radius:5px;background:var(--surface);margin:20px 0}.tool-panel{padding:24px;border:1px solid var(--line);border-radius:7px;background:var(--surface);margin:20px 0}.tool-panel h2{margin-bottom:15px}.tool-panel input,.tool-panel select{min-height:40px}.tool-panel label{display:flex;flex-direction:column;gap:6px;font-size:13px}.tool-panel .check-label{flex-direction:row}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:15px 0}.tool-result{padding:20px;background:var(--brand-light);border-radius:5px;margin-top:16px;line-height:1.6}.tool-result:empty{display:none}.tool-result strong{font:700 30px 'DM Sans',sans-serif;color:var(--brand)}.names-results{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:20px}.name-result{border:1px solid var(--line);border-radius:5px;padding:15px}.name-result strong{font:700 22px 'DM Sans',sans-serif;display:block;color:var(--brand);margin-bottom:8px}.name-result small{font-size:12px;color:var(--muted)}.moon-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.moon-card{border:1px solid var(--line);border-radius:6px;padding:16px;display:flex;align-items:center;gap:15px}.moon-card .moon-icon{font-size:40px;color:var(--brand)}.moon-card strong,.moon-card time{display:block;font-size:13px;line-height:1.6}.moon-card small{color:var(--muted);font-size:10px}.design-gallery{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin:20px 0}.design-card{border:1px solid var(--line);border-radius:6px;overflow:hidden;background:var(--surface)}.design-card>button{width:100%;padding:0;border:0;display:block;text-align:left;white-space:normal}.design-preview{height:145px;background:#f3ece5;padding:15px;position:relative;display:flex;align-items:center;justify-content:center}.design-paper{background:#fff;width:92px;height:120px;box-shadow:0 2px 8px #0002;padding:9px;color:#821b30}.design-paper strong{font:700 20px 'DM Sans',sans-serif}.design-paper i{display:block;height:72px;margin-top:8px;background:repeating-linear-gradient(0deg,transparent 0 11px,#bbb 11px 12px),repeating-linear-gradient(90deg,transparent 0 10px,#ddd 10px 11px)}.design-card:nth-child(3n) .design-paper{color:#222}.design-card:nth-child(2n) .design-paper{width:125px;height:88px}.design-card:nth-child(2n) .design-paper i{height:42px}.design-card:nth-child(4n) .design-paper{border-left:8px double #8e2138}.design-card:nth-child(5n) .design-paper{background:#f8f2e3}.design-card h3{font:700 14px 'DM Sans',sans-serif;padding:11px 10px 3px}.design-card p{font-size:11px;color:var(--muted);padding:0 10px 11px}.design-card .actions{padding:0 10px 10px;gap:4px}.design-card .actions button{font-size:11px;padding:5px 8px;flex:1}.zodiac-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.zodiac-card{border:1px solid var(--line);border-radius:6px;padding:20px;text-decoration:none;background:var(--surface)}.zodiac-card .symbol{font-size:32px}.zodiac-card h3{margin:10px 0}.zodiac-card small{color:var(--muted)}dialog{border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);padding:23px;width:min(660px,calc(100vw - 28px));max-height:90vh;box-shadow:0 22px 100px #32141d44}dialog::backdrop{background:#25151975;backdrop-filter:blur(2px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding-bottom:13px;margin-bottom:18px}.dialog-heading h2{font-size:25px;color:var(--brand)}dialog form{display:block}dialog label{display:flex;flex-direction:column;gap:7px;font-size:13px;margin-bottom:14px}dialog label.check-label{flex-direction:row;align-items:center}dialog .field-grid label{margin:0}dialog .actions{margin-top:20px}dialog .actions .danger{color:#b42335;margin-right:auto}dialog p{font-size:13px;margin:8px 0 15px}dialog input,dialog select,dialog textarea{width:100%;min-height:40px}dialog input[type=checkbox]{width:17px;min-height:17px}dialog textarea{min-height:75px}.search-field{display:flex;gap:10px;margin-bottom:12px}.search-field input{width:100%}.search-results{max-height:50vh;overflow:auto}.search-result{display:block;text-decoration:none;border-bottom:1px solid var(--line);padding:13px 3px}.search-result strong{display:block;margin-bottom:4px}.search-result small{color:var(--muted);font-size:11px}.dialog-message{padding:12px;background:var(--brand-light);color:var(--brand);border-radius:4px;line-height:1.5}.preview-photo{max-width:100%;max-height:180px;display:block;margin:10px auto;object-fit:contain}.consent-banner{position:fixed;bottom:14px;left:20px;right:20px;z-index:30;background:var(--surface);border:1px solid var(--line);border-radius:7px;padding:15px 20px;box-shadow:0 4px 30px #371b2430;display:flex;align-items:center;gap:25px}.consent-banner[hidden]{display:none}.consent-banner>div:first-child{flex:1}.consent-banner strong{font-family:'DM Sans',sans-serif}.consent-banner p{font-size:12px;margin-top:5px}.consent-banner button{font-size:12px}#toast{position:fixed;left:50%;bottom:25px;transform:translateX(-50%);z-index:100;background:var(--brand-dark);color:white;border-radius:6px;padding:13px 22px;box-shadow:0 3px 15px #0002;font-size:13px;max-width:90vw;text-align:center}.loading{opacity:.65}.print-hint{font-size:11px;color:var(--muted);line-height:1.5}.big-number{font:700 68px 'DM Sans',sans-serif;color:var(--brand);line-height:1.1}.button-row{display:flex;gap:10px;flex-wrap:wrap}.link-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.link-cards a{padding:20px;border:1px solid var(--line);background:var(--surface);border-radius:5px;text-decoration:none;font:700 19px 'DM Sans',sans-serif}.status-dot{display:inline-block;width:7px;height:7px;background:var(--green);border-radius:50%;margin-right:5px}.mobile-day-agenda{display:none}.table-scroll{overflow-x:auto}
@media(min-width:1650px){.dashboard{grid-template-columns:minmax(300px,25fr) minmax(650px,49fr) minmax(300px,23fr)}.calendar-table td,.day-button{min-height:80px;height:80px}.today-card figure{height:170px}.tools-band{margin-left:auto;margin-right:auto}.topbar{padding-left:45px;padding-right:45px}.home-hero{padding-left:55px}}
@media(max-width:1350px){.topbar{gap:18px;padding:0 24px}.brand{font-size:27px}.primary-nav{gap:17px}.primary-nav a{font-size:12px}.header-search{width:240px}.header-search kbd{display:none}.country{font-size:12px}.secondary-nav{padding:0 27px;gap:11px}.secondary-nav a{font-size:12px;gap:7px}.home-hero h1{font-size:48px}.home-hero p{font-size:18px}.home-hero{padding-left:32px;gap:30px}.dashboard{padding:0 20px;grid-template-columns:minmax(215px,24fr) minmax(485px,50fr) minmax(220px,24fr)}.calendar-heading{gap:8px}.calendar-heading h2{font-size:24px}.calendar-arrows{gap:5px}.calendar-arrows button{padding:2px 9px}.calendar-heading-actions{gap:5px}.calendar-heading-actions button{font-size:10px;padding:6px 8px}.calendar-heading-actions .icon{width:14px;height:14px}.category-filters{gap:5px}.category-filters button{padding:5px 9px}.event-search{width:125px}.card{padding-left:11px;padding-right:11px}.today-card{padding:0}.today-card figure{height:130px}.holiday-row{grid-template-columns:43px 1fr;gap:8px}.holiday-row .badge{display:none}.upcoming-card h2{font-size:17px}.layer-grid label{font-size:10px}.tools-band{margin-left:20px;margin-right:20px}.collection-body{gap:12px}.paper-preview{width:140px}.tool-feature{padding:10px}.year-links a{padding:5px 7px}.custom-bottom{flex-direction:column;align-items:flex-start}.quick-links a{gap:10px;padding:9px}.quick-links strong{font-size:13px}.quick-links small{font-size:9px}}
@media(max-width:1120px){.country{display:none}.topbar{gap:15px}.header-search{width:205px;font-size:11px}.primary-nav{gap:15px}.secondary-nav{justify-content:flex-start;gap:22px}.secondary-nav .nav-divider{display:none}.home-hero{height:112px}.home-hero h1{font-size:44px}.home-hero p{font-size:17px}.home-hero>button{font-size:11px}.dashboard{grid-template-columns:260px minmax(0,1fr);gap:12px}.calendar-column{grid-column:2;grid-row:1}.left-column{grid-row:1}.right-column{grid-column:1/-1;display:grid;grid-template-columns:1.1fr 1fr 1fr 1fr;gap:10px}.right-column .day-plan{min-height:150px}.right-column h2{font-size:17px}.right-column .card-heading{align-items:flex-start}.right-column .card-heading button{font-size:10px;padding:4px}.local-tools>small{font-size:10px}.button-grid{grid-template-columns:1fr}.calendar-table td,.day-button{height:76px;min-height:76px}.tool-feature-grid{grid-template-columns:1fr 1fr}.custom-feature{grid-column:1/-1;display:flex;align-items:center;gap:25px}.custom-feature .swatches{margin:0}.custom-bottom{flex-direction:row;align-items:center;flex:1}.quick-links{grid-template-columns:repeat(2,1fr)}.quick-links small{font-size:11px}.quick-links strong{font-size:15px}.site-footer{padding:15px 25px}.site-footer nav{gap:12px}.content-grid,.cards-grid{grid-template-columns:repeat(2,1fr)}.design-gallery{grid-template-columns:repeat(4,1fr)}.moon-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:850px){.topbar{min-height:58px;padding:0 20px;gap:15px}.brand{font-size:26px}.primary-nav{gap:14px}.primary-nav a:nth-child(3){display:none}.header-search{width:39px;min-width:39px;padding:8px;justify-content:center}.header-search span{display:none}.secondary-nav{gap:23px;padding:0 20px}.home-hero{padding-left:23px;gap:20px;height:110px}.home-hero h1{font-size:40px}.home-hero p{font-size:16px;max-width:430px}.home-hero>button{padding:7px;font-size:0;min-width:35px}.home-hero>button .icon{width:20px}.hero-skyline{width:50%}.dashboard{grid-template-columns:220px minmax(0,1fr);padding:0 15px;gap:10px}.calendar-heading{flex-wrap:wrap}.calendar-heading h2{order:0;font-size:24px}.calendar-heading-actions{width:100%;justify-content:flex-end}.calendar-heading-actions button{font-size:11px}.calendar-controls{flex-wrap:wrap}.view-tabs{width:100%;flex:auto}.event-search{flex:1}.category-filters{gap:6px}.category-filters button{padding:5px 10px}.calendar-table td,.day-button{min-height:65px;height:65px}.calendar-table th:first-child{width:27px}.calendar-table .week-number{font-size:10px}.day-event{font-size:8px}.right-column{grid-template-columns:repeat(2,1fr)}.button-grid{grid-template-columns:1fr 1fr}.tools-band{margin-left:15px;margin-right:15px}.tool-feature-grid{grid-template-columns:1fr 1fr}.collection-body{gap:15px}.paper-preview{width:115px}.year-links a{padding:5px}.custom-feature{flex-wrap:wrap;gap:15px}.feature-title h3{font-size:16px}.custom-bottom{justify-content:flex-end}.site-footer{flex-wrap:wrap}.site-footer nav{order:3;flex-basis:100%;justify-content:center}.inner-page,.page-content{padding:0 20px}.design-gallery{grid-template-columns:repeat(3,1fr)}.moon-grid{grid-template-columns:repeat(2,1fr)}.names-results{grid-template-columns:repeat(2,1fr)}.zodiac-grid{grid-template-columns:repeat(3,1fr)}.link-cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){:root{font-size:14px}.topbar{padding:0 15px;justify-content:space-between;gap:12px}.brand{font-size:27px}.brand>.icon{width:26px;height:26px}.primary-nav{display:none}.header-search{margin-left:auto;min-height:36px}.mobile-menu{display:flex;color:white;min-width:32px;font-size:23px}.site-header.menu-open .primary-nav{display:flex;position:absolute;top:58px;left:0;right:0;z-index:20;height:auto;background:#70192b;padding:18px;flex-wrap:wrap;justify-content:flex-start;gap:20px}.site-header.menu-open .primary-nav a{display:block;padding:6px}.secondary-nav{gap:21px;min-height:42px;padding-left:16px}.secondary-nav a{font-size:13px}.secondary-nav .icon{width:17px;height:17px}.home-hero{height:118px;padding:15px 17px;gap:12px;align-items:center}.home-hero h1{font-size:36px;white-space:normal;max-width:330px;letter-spacing:-1px}.home-hero p{font-size:15px;line-height:1.35;max-width:305px;margin-top:4px}.home-hero>button{margin-left:auto}.hero-skyline{width:65%;opacity:.25;mask-image:linear-gradient(90deg,transparent,#000)}.folk-border{width:12px}.dashboard{display:flex;flex-direction:column;padding:0 10px;margin-top:10px;gap:12px}.calendar-column{order:0}.left-column{order:2;display:grid;grid-template-columns:1fr 1fr;gap:10px}.right-column{order:1;grid-template-columns:1fr 1fr}.left-column .today-card{grid-row:span 2}.layers-card{grid-column:2}.left-column .upcoming-card h2{font-size:16px}.upcoming-card .card-heading a{font-size:10px}.upcoming-card .holiday-row{font-size:11px;grid-template-columns:35px 1fr}.upcoming-card .holiday-row time{font-size:12px}.layer-grid{grid-template-columns:1fr;font-size:12px;gap:9px}.layer-grid label{font-size:11px}.left-column .today-card figure{height:145px}.today-card h2{font-size:19px;padding:9px 11px}.today-body{padding:9px 11px}.today-body>p:first-child{font-size:12px}.clock-row{flex-wrap:wrap;gap:5px}.clock-row time{font-size:32px}.clock-row>span{font-size:11px}.today-links{flex-direction:column;gap:9px}.today-names{max-height:none;font-size:11px}.main-calendar{padding:12px 10px}.metrics{height:48px}.metrics>div{gap:10px}.metrics span{font-size:10px}.metrics strong{font-size:17px}.metrics .icon{width:17px;height:17px}.calendar-heading{margin-bottom:10px;gap:7px;flex-wrap:nowrap}.calendar-heading h2{font-size:25px;text-align:left;padding-left:3px}.calendar-heading-actions{width:auto}.calendar-heading-actions>button:first-child{display:none}.calendar-heading-actions .add-event{font-size:0;padding:6px;width:35px;height:35px}.add-event .plus{font-size:25px}.calendar-arrows button{min-height:35px;min-width:32px}.calendar-controls{gap:8px}.view-tabs{order:0;width:100%}.view-tabs button{min-height:36px;font-size:12px}.event-search{order:1}.event-search input{font-size:12px;min-height:34px}.calendar-controls select{font-size:12px;min-height:34px;order:2}.category-filters{margin-bottom:10px}.category-filters button{min-height:31px;font-size:10px}.calendar-table th{font-size:12px;height:31px}.calendar-table th:first-child{width:26px;font-size:10px}.calendar-table td,.day-button{height:62px;min-height:62px}.day-button{padding:5px 2px}.date-number{width:25px;height:25px;font-size:13px}.day-event{font-size:8px;justify-content:center}.day-event .event-label{display:none}.day-event .dot{width:5px;height:5px}.more-events{font-size:8px}.calendar-table .week-number{font-size:10px;padding-top:13px}.calendar-footer{padding-top:12px}.calendar-legend{gap:10px;font-size:10px}.calendar-legend span{gap:5px}.calendar-footer button{font-size:10px;padding:5px 7px}.calendar-footer .icon{width:14px;height:14px}.right-column .day-plan{grid-column:1/-1;min-height:125px}.day-plan .card-heading h2{font-size:21px}.day-plan .card-heading button{font-size:12px;min-height:32px}.right-column .notes-card,.right-column .tasks-card{min-height:155px}.notes-card textarea{min-height:95px}.right-column .local-tools{grid-column:1/-1}.local-tools .button-grid{grid-template-columns:repeat(4,1fr)}.local-tools .button-grid button{flex-direction:column;gap:5px;font-size:10px;min-height:48px}.local-tools>small{font-size:10px}.tools-band{margin:12px 10px 0;padding:12px 10px}.tools-band h2{font-size:23px}.tool-feature-grid{grid-template-columns:1fr;gap:10px}.tool-feature{padding:13px}.collection-body{justify-content:space-between;gap:30px}.paper-preview{width:160px}.year-links a{padding:7px 10px;flex:1;text-align:center}.collection-body .button{min-height:38px;font-size:12px}.feature-title h3{font-size:18px}.feature-title p{font-size:12px;margin-top:3px}.date-pair input{font-size:12px;min-height:38px}.date-pair label{font-size:12px}.check-label{font-size:12px}.calculator-bottom button{font-size:12px;min-height:37px}.custom-feature{grid-column:auto;display:block}.custom-feature .swatches{margin:15px 0}.custom-bottom{justify-content:space-between;font-size:12px}.custom-bottom button{min-height:38px;font-size:12px}.quick-links{gap:8px}.quick-links a{padding:12px 8px;gap:8px;align-items:flex-start}.quick-links .icon,.quick-symbol{width:23px;height:23px;font-size:25px}.quick-links strong{font-size:14px;line-height:1.3}.quick-links small{font-size:10px;line-height:1.4}.quick-links b{display:none}.site-footer{padding:20px 18px;gap:15px}.site-footer nav{gap:10px 20px;font-size:11px;line-height:1.7}.site-footer small{font-size:10px}.week-view{display:flex;flex-direction:column;min-height:0}.week-day{border-right:0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:65px 1fr;gap:10px;padding:8px}.week-day>button{justify-content:flex-start;font-size:12px}.week-day>button strong{font-size:24px}.week-day .plan-event{border:0;padding:6px}.week-day .plan-event strong{font-size:12px}.week-day .empty-state{font-size:12px;padding:12px 0}.year-grid{grid-template-columns:repeat(2,1fr);gap:18px 12px}.mini-month h3{font-size:16px}.mini-grid{font-size:11px;gap:4px}.mini-grid button{font-size:11px;min-height:23px}.inner-page,.page-content{padding:0 15px;margin:20px auto}.page-hero{padding:23px 0}.page-hero .container{padding:0 17px}.page-hero h1{font-size:36px}.page-hero p{font-size:14px}.content-grid,.cards-grid{grid-template-columns:1fr}.field-grid{gap:12px}.tool-panel{padding:17px}.tool-panel .field-grid{grid-template-columns:1fr}.tool-panel .date-pair{grid-template-columns:1fr}.data-table{font-size:12px}.data-table td,.data-table th{padding:10px 7px}.design-gallery{grid-template-columns:repeat(2,1fr);gap:10px}.names-results{grid-template-columns:repeat(2,1fr);gap:9px}.name-result{padding:12px}.name-result strong{font-size:20px}.moon-grid{grid-template-columns:1fr}.zodiac-grid{grid-template-columns:repeat(2,1fr);gap:10px}.zodiac-card{padding:15px}.consent-banner{bottom:8px;left:8px;right:8px;padding:13px;display:block}.consent-banner .actions{margin-top:12px;gap:6px}.consent-banner .actions button{flex:1;font-size:11px;padding:7px 8px;min-height:38px}.consent-banner p{font-size:11px}.dialog-heading h2{font-size:22px}dialog{padding:18px}dialog .field-grid{grid-template-columns:1fr 1fr}.search-field{flex-wrap:wrap}.search-field input{flex:1;min-width:180px}.button{min-height:40px}}
@media(max-width:370px){.home-hero h1{font-size:31px}.home-hero p{font-size:14px}.brand{font-size:25px}.topbar{padding:0 11px;gap:8px}.dashboard{padding:0 7px}.calendar-heading h2{font-size:21px}.calendar-arrows{gap:3px}.calendar-arrows button{min-width:27px;padding:2px 6px}.calendar-heading{gap:4px}.main-calendar{padding:10px 7px}.calendar-table th:first-child{width:22px}.calendar-table td,.day-button{height:54px;min-height:54px}.calendar-footer{align-items:flex-start}.calendar-legend{flex-direction:column;gap:6px}.calendar-footer .actions{gap:5px}.calendar-footer button{font-size:9px;padding:5px}.right-column{grid-template-columns:1fr}.right-column .notes-card,.right-column .tasks-card{min-height:0}.left-column{grid-template-columns:1fr}.left-column .today-card{grid-row:auto}.left-column .layers-card{grid-column:auto}.layer-grid{grid-template-columns:1fr 1fr}.today-card figure{height:135px!important}.today-links{flex-direction:row}.clock-row{flex-wrap:nowrap}.collection-body{gap:13px}.paper-preview{width:125px}.year-links a{padding:6px 7px}.quick-links{grid-template-columns:1fr}.quick-links a{align-items:center}.quick-links small{font-size:11px}.tools-band h2{font-size:21px}.names-results{grid-template-columns:1fr}.field-grid,dialog .field-grid{grid-template-columns:1fr}.consent-banner .actions button{font-size:10px;padding:7px 5px}.link-cards{grid-template-columns:1fr}}
@media(prefers-reduced-motion:no-preference){button,a{transition:background-color .12s,border-color .12s,color .12s}.card{animation:appear .25s ease-out}@keyframes appear{from{opacity:.7}to{opacity:1}}}
@media print{.site-header,.home-hero,.site-footer,.left-column,.right-column,.tools-band,.calendar-controls,.category-filters,.calendar-heading-actions,.calendar-arrows,.calendar-footer,dialog,.consent-banner,#toast{display:none!important}:root{--surface:#fff;--canvas:#fff;--ink:#111;--line:#bbb;--weekend:#f5eeee;--brand:#70172b;--brand-dark:#70172b;color-scheme:light}.dashboard{display:block;padding:0;margin:0}.calendar-column{width:100%}.card{box-shadow:none}.calendar-table td,.day-button{height:90px;min-height:90px}.calendar-heading h2{text-align:center}.inner-page,.page-content{max-width:none;margin:0}.calendar-table{break-inside:avoid}.tool-panel{break-inside:avoid}body:after{content:"Kalendārs365 · Latvijas kalendārs";display:block;text-align:center;font:10px 'DM Sans',sans-serif;margin-top:15px}}

/* Match the compact desktop reference while keeping personal/source data real. */
@media(min-width:1121px) and (max-width:1649px){.topbar,.primary-nav{min-height:52px;height:52px}.secondary-nav{min-height:37px}.home-hero{height:104px}.calendar-table td,.day-button{height:56px;min-height:56px}.today-card h2{padding-top:4px;padding-bottom:4px}.today-body{padding-top:6px;padding-bottom:7px}.clock-row time{font-size:33px}.clock-row{margin-bottom:5px}.today-names{font-size:10px;margin-top:5px;line-height:1.35;max-height:28px}.upcoming-card .holiday-row{padding:7px 0}.layers-card{padding-top:10px;padding-bottom:10px}.layers-card .card-heading{margin-bottom:6px}.layers-card .layer-grid{gap:7px}}

/* Reserve the month grid and category row before the first script paint. */
#calendar-view:empty{min-height:434px}#category-filters:empty{min-height:28px}.site-footer .brand-number{color:var(--brand)}.photo-preview-frame{height:180px;overflow:hidden;border-radius:6px;background:var(--canvas);margin:12px 0}.photo-preview-frame .preview-photo{display:block;width:100%;height:100%;max-height:none;margin:0;object-fit:cover;border-radius:0}.photo-adjustments input{width:100%;padding:0;accent-color:var(--brand)}
@media(min-width:1650px){#calendar-view:empty{min-height:518px}}@media(min-width:1121px) and (max-width:1649px){#calendar-view:empty{min-height:374px}}@media(min-width:851px) and (max-width:1120px){#calendar-view:empty{min-height:494px}}@media(min-width:681px) and (max-width:850px){#calendar-view:empty{min-height:428px}}@media(max-width:680px){#calendar-view:empty{min-height:409px}#category-filters:empty{min-height:31px}}@media(max-width:370px){#calendar-view:empty{min-height:361px}}


/* Keep annual-view dates legible and comfortably tappable at every width. */
.year-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))}.mini-grid button{min-height:28px}.mini-month>button{min-height:28px}
