:root{--bg:#faf8fd;--paper:#fff;--ink:#302843;--muted:#756d83;--primary:#7350b1;--line:#ece5f3;--lilac:#eee5fb;--mint:#e5f5ee;--peach:#fff0e2;--rose:#fae5ef;--blue:#e7effb;--danger:#b23753;font:15px/1.5 'Segoe UI',system-ui,-apple-system,sans-serif;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid var(--line);background:white;border-radius:12px;padding:10px 15px;min-height:42px;transition:background .15s,box-shadow .15s}button:hover{background:#f6f0fc;box-shadow:0 3px 10px #57417a0c}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #ac8ed5;outline-offset:3px}.primary{background:var(--primary);border-color:var(--primary);color:#fff;font-weight:600}.primary:hover{background:#614198}.secondary{background:var(--lilac);color:#60408f;border-color:transparent}.danger{color:var(--danger)}.quiet{border-color:transparent;background:transparent}.icon{padding:8px;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;min-width:42px;flex-shrink:0;border-radius:12px}.icon svg,.inline svg{width:19px;height:19px;pointer-events:none}svg{width:20px;height:20px;vertical-align:middle;flex-shrink:0}.quick-form .primary{display:inline-flex;align-items:center;justify-content:center;gap:7px}.inline{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.spread{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.muted,small{color:var(--muted)}.muted{font-size:.92rem}h1,h2,h3,p{margin-top:0}h1{font-size:30px;line-height:1.2;letter-spacing:-.8px;margin-bottom:10px}h2{font-size:20px;line-height:1.3;letter-spacing:-.3px;margin-bottom:14px}h3{font-size:16px;margin-bottom:7px}p{margin-bottom:12px}a{color:var(--primary)}.app-shell{display:grid;grid-template-columns:228px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:#fff;border-right:1px solid var(--line);padding:30px 18px 20px;display:flex;flex-direction:column;overflow-y:auto}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);margin-bottom:35px}.brand strong{display:block;font-size:25px;letter-spacing:-1px}.brand small{display:block;font-size:10px}.brand-mark{background:#e8dcfa;border-radius:15px;width:43px;height:47px;text-align:center;font-size:35px;line-height:43px;font-weight:750;color:#6c47a9}.brand-mark span{color:#c47e55}.nav-label{font-size:10px;letter-spacing:1.5px;font-weight:700;color:#9b8fa8;margin:0 12px 10px}nav{display:flex;flex-direction:column;gap:5px}nav button{display:flex;align-items:center;gap:12px;text-align:left;border:0;background:transparent;font-size:14px;padding:12px 14px}nav button svg{width:19px;height:19px;color:#9c8bad}nav button.active{background:#f0e8fb;color:#66459a;font-weight:650}nav button.active svg{color:#7955b2}.sidebar-note{margin:28px 8px 18px;background:#fcf4ec;border-radius:20px;padding:20px 15px;position:relative}.sidebar-note strong{font-size:14px}.sidebar-note p{font-size:11px;color:#997e6d;margin:9px 0 0}.sparkle{float:right;color:#c49261;font-size:28px}.logout{font-size:12px;color:#93839f;margin-top:auto}.workspace{min-width:0}.topbar{position:sticky;top:0;z-index:10;background:#faf8fdf0;backdrop-filter:blur(12px);border-bottom:1px solid #ece5f399;padding:19px 34px;display:flex;align-items:center;justify-content:space-between;gap:10px}.mobile-brand{display:none}main{max-width:1350px;padding:30px 34px;margin:auto;min-height:80vh}footer{font-size:11px;text-align:center;padding:12px 25px 25px;color:#a393b0}footer span{padding:0 10px}.page-intro{margin-bottom:24px}.page-intro p{color:var(--muted);margin:0}.eyebrow{font-size:11px;letter-spacing:1.4px;text-transform:uppercase;font-weight:700;color:#9b79b3;margin-bottom:10px}.card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:24px;box-shadow:0 4px 22px #54397505;margin-bottom:20px;min-width:0}.hero{background:linear-gradient(110deg,#f0e6fc,#f9eaf4 54%,#fff1e3);position:relative;overflow:hidden;border:0;padding:30px}.hero h1{font-size:37px;max-width:500px;letter-spacing:-1px}.hero p{max-width:480px;color:#796483}.hero-decoration{position:absolute;right:34px;top:15px;font-size:96px;color:#d3bcdf;transform:rotate(12deg);pointer-events:none}.quick-form{margin-top:22px;display:flex;gap:8px;background:white;border:1px solid #e6d9ef;padding:7px;border-radius:16px;max-width:760px;position:relative}.quick-form input{border:0;min-width:0;flex:1;outline:0}.quick-form button{white-space:nowrap}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-bottom:24px}.stat{border-radius:17px;padding:18px 20px;background:var(--mint);display:flex;align-items:center;justify-content:space-between;gap:12px}.stat:nth-child(2){background:var(--peach)}.stat:nth-child(3){background:var(--lilac)}.stat strong{font-size:27px;display:block;line-height:1.2}.stat small{display:block;margin-top:6px;color:#6e627c;font-size:12px}.stat svg{width:27px;height:27px;opacity:.5}.columns{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(270px,1fr);gap:20px}.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;margin-bottom:20px}.tile{border:1px solid var(--line);border-radius:19px;padding:20px;background:#fff}.tile.tint0,.tint0{background:#efe7fb;color:#684691}.tile.tint1,.tint1{background:#e5f3ec;color:#396e58}.tile.tint2,.tint2{background:#fff0e2;color:#8d633b}.tile.tint3,.tint3{background:#e8effb;color:#4f6791}.tile.tint4,.tint4{background:#fae5ee;color:#995c75}.tile .big{font-size:24px;letter-spacing:-.6px;font-weight:700;margin:15px 0 3px}.tile small{color:inherit;opacity:.8}.tile .tile-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.tile .icon{background:#ffffff8a;border:0}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.section-head h2{margin:0}.section-head .quiet{font-size:12px;color:var(--primary)}.entry{display:flex;gap:14px;justify-content:space-between;padding:17px 0;border-top:1px solid #f1ecf5;align-items:flex-start}.entry:first-child{border-top:0}.entry-main{flex:1;min-width:0}.entry-title{border:0;padding:0;background:none!important;box-shadow:none!important;min-height:auto;text-align:left;font-weight:650;line-height:1.4;overflow-wrap:anywhere}.entry .meta-line{margin-top:5px;display:flex;gap:7px;align-items:center;flex-wrap:wrap;font-size:11px;color:#8c7f97}.entry .notes{margin:7px 0 0;color:#83748d;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.entry-actions{display:flex;gap:3px}.entry-actions .icon{width:34px;height:34px;min-width:34px;min-height:34px;border:0;background:#f8f5fb}.entry-actions svg{width:16px;height:16px}.badge,.chip{display:inline-flex;align-items:center;gap:4px;padding:4px 9px;border-radius:99px;font-size:11px;line-height:1.4;max-width:100%;overflow-wrap:anywhere}.badge{background:#f0eaf7;color:#80639a}.chip{border:1px solid #e7ddef;background:#fff;min-height:30px;cursor:pointer}.chip.picked{background:#7853b2;color:white;border-color:#7853b2}.chips{display:flex;gap:6px;flex-wrap:wrap;margin:9px 0}.empty{text-align:center;padding:27px 12px;border:1px dashed #ded2e9;border-radius:17px;background:#fcfaff;color:#9684a5}.empty strong{display:block;color:#675375;margin-bottom:5px}.empty p{font-size:13px;margin-bottom:0}.empty svg{height:29px;width:29px;margin-bottom:9px;opacity:.6}.mini-calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.mini-day{border:0;background:transparent;padding:5px;min-height:35px;font-size:12px;position:relative}.mini-day.today{background:var(--lilac);font-weight:bold}.dot{display:inline-block;width:5px;height:5px;border-radius:100%;background:#a987ca}.mini-day .dot{position:absolute;bottom:2px;left:calc(50% - 2px)}label{display:block;font-weight:600;font-size:13px;margin:14px 0 6px}input,textarea,select{width:100%;padding:11px 12px;background:#fff;border:1px solid #ded4e8;border-radius:11px;min-width:0}textarea{resize:vertical;min-height:95px}input:focus,textarea:focus,select:focus{outline:2px solid #c9afe6;outline-offset:1px}input[type=checkbox]{width:18px;height:18px;accent-color:var(--primary)}.check{display:flex;gap:9px;align-items:center;font-weight:400}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.help{font-size:11px;color:#95839f;margin-top:5px}.filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}.filters>*{flex:1;min-width:135px}.filters input{flex:2}.calendar-toolbar{margin-bottom:18px}.segmented{display:flex;background:#f4eef9;border-radius:12px;padding:4px}.segmented button{background:transparent;border:0;font-size:12px;padding:6px 12px;min-height:34px}.segmented button.active{background:#fff;color:#7652a9;box-shadow:0 2px 6px #6f4b9610}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.weekday{font-size:11px;color:#92849d;text-align:center;padding:8px 0}.day{min-height:104px;text-align:left;border:1px solid #efe8f4;padding:8px;border-radius:12px;overflow:hidden;display:flex;flex-direction:column;gap:5px;font-size:12px;background:#fefdff}.day.outside{background:#faf8fc;opacity:.5}.day.today .num{background:#7856b1;color:white;border-radius:50%}.num{display:inline-grid;place-items:center;width:25px;height:25px}.day.selected{border-color:#b296d5;box-shadow:0 0 0 1px #b296d5;background:#f9f5fe}.day-event{display:block;font-size:10px;border-radius:5px;padding:3px 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;width:100%}.day .extra{font-size:10px;color:#93819f}.day-dots{display:none}.week-list{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.week-column{padding:12px 9px;border:1px solid var(--line);border-radius:13px;min-width:0}.week-column.selected{background:#faf5ff}.week-column>button{width:100%;min-height:35px;font-size:11px;padding:4px;border:0}.week-item{margin-top:8px;border:0;width:100%;font-size:11px;text-align:left;padding:7px;border-radius:8px;overflow-wrap:anywhere}.agenda-date{font-size:13px;font-weight:650;color:#8c6aa8;margin:18px 0 3px}.calendar-detail{border-top:1px solid var(--line);margin-top:20px;padding-top:22px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:13px}th{text-align:left;color:#928299;font-size:11px;font-weight:600;white-space:nowrap}th,td{padding:12px 10px;border-bottom:1px solid #eee7f3;vertical-align:top}.bar-row{display:grid;grid-template-columns:115px minmax(0,1fr) 35px;align-items:center;gap:10px;font-size:12px;margin:13px 0}.bar-track{height:13px;background:#f5eefb;border-radius:99px;overflow:hidden}.bar{height:100%;background:#b196d3;border-radius:99px;min-width:2px}.answer{background:linear-gradient(120deg,#eee6f9,#f8f4fc);border-radius:17px;padding:22px;margin:20px 0}.answer h2{color:#68468f}.answer p:last-child{margin:0}.notice{padding:14px 17px;border-radius:13px;background:#fff3e4;border:1px solid #f0dbbe;color:#896743;font-size:12px;margin:12px 0}.error{color:#a83c58;background:#fff0f5;border-color:#f5d1de}.success{background:#eaf6ef;color:#3e7359;border-color:#cbe6d7}.due{color:#a14662;background:#fae5ed}.soon{color:#9c713c;background:#fff0df}dialog{border:1px solid #e5d9ee;border-radius:24px;padding:0;max-width:760px;width:calc(100% - 24px);max-height:90vh;color:var(--ink);background:#fff;box-shadow:0 30px 90px #3a225c33}dialog::backdrop{background:#30203f66;backdrop-filter:blur(3px)}.modal-head{padding:22px 25px 17px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:3}.modal-head h2{margin:0}.modal-body{padding:4px 25px 25px}.modal-actions{position:sticky;bottom:0;display:flex;gap:9px;justify-content:flex-end;background:#fff;padding:15px 0 0;margin-top:20px;border-top:1px solid var(--line)}.attachments{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px;margin:15px 0}.attachment{border:1px solid var(--line);border-radius:13px;overflow:hidden;min-width:0}.attachment img{width:100%;height:120px;object-fit:cover;display:block}.attachment-info{padding:9px;font-size:11px;overflow-wrap:anywhere}.attachment-info>a{display:block}.attachment-placeholder{height:80px;background:#f4eef9;display:grid;place-items:center}.attachment-placeholder svg{width:28px;height:28px}.custom-row{display:grid;grid-template-columns:1fr 1fr 42px;gap:6px;margin-bottom:7px}.suggestion{padding:13px;background:#f5effd;border:1px solid #e3d6f2;border-radius:12px;margin-top:10px;font-size:12px}.review-row{padding:12px 0;border-top:1px solid var(--line)}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 30px);padding:14px 22px;color:white;background:#584176;border-radius:14px;box-shadow:0 5px 30px #3e24592b;z-index:100;font-size:13px}#connection{background:#fff0d9;padding:8px;text-align:center;font-size:12px}.loader{padding:35px;text-align:center}.login-page{max-width:450px;margin:10vh auto;padding:20px}.login-page .brand{justify-content:center}.login-page .card{padding:30px}.login-page .primary{width:100%;margin:18px 0 8px}.login-page input{font-size:17px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.progress{background:#f4edf9;padding:14px;border-radius:12px;font-size:13px;white-space:pre-line}.details-grid{display:grid;grid-template-columns:130px 1fr;gap:9px;font-size:13px;margin:18px 0}.details-grid dt{color:#97849e}.details-grid dd{margin:0;overflow-wrap:anywhere}.loading-dot{display:inline-block;width:8px;height:8px;background:#b295d3;border-radius:50%;margin-right:7px}@media(min-width:1500px){main{padding-top:36px}.hero h1{font-size:42px}}@media(max-width:1150px){.app-shell{grid-template-columns:196px minmax(0,1fr)}.sidebar{padding:24px 12px}.brand strong{font-size:23px}.brand small{font-size:9px}.columns{grid-template-columns:1fr}.hero-decoration{right:18px;font-size:80px;opacity:.5}main{padding:24px}.topbar{padding:17px 24px}.stat{padding:16px}.day{min-height:91px}}@media(max-width:800px){.app-shell{display:block}.sidebar{position:static;height:auto;padding:0;border:0;background:transparent}.sidebar .brand,.nav-label,.sidebar-note,.sidebar>.logout{display:none}nav{position:fixed;bottom:0;left:0;right:0;z-index:20;flex-direction:row;gap:2px;background:#fffffff5;backdrop-filter:blur(12px);border-top:1px solid var(--line);padding:6px 6px max(6px,env(safe-area-inset-bottom));overflow-x:auto}nav button{flex:1;flex-direction:column;gap:4px;min-width:65px;font-size:9px;border-radius:10px;padding:9px 5px}nav button svg{width:20px;height:20px}.topbar{padding:13px 17px}.mobile-brand{display:block;font-weight:750;font-size:23px;color:#6f4a9f}.topbar #today-label{font-size:10px}.topbar .primary{font-size:12px;padding:9px 12px}main{padding:20px 15px 80px}.hero{padding:24px}.hero h1{font-size:31px}.hero-decoration{font-size:65px;right:16px;top:12px;opacity:.4}.hero p{font-size:12px;max-width:85%}.quick-form{margin-top:16px;flex-wrap:wrap}.quick-form input{flex-basis:calc(100% - 60px);font-size:13px;padding:8px}.quick-form .primary{width:100%;font-size:12px}.stats{gap:8px;margin-bottom:18px}.stat{padding:14px 11px}.stat strong{font-size:23px}.stat small{font-size:10px}.stat svg{display:none}.card{padding:18px;border-radius:19px}.entry-actions{flex-direction:column}.entry{gap:8px}.entry-actions .icon{height:30px;min-height:30px;width:30px;min-width:30px}.entry .notes{font-size:11px}.tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.tile{padding:15px}.tile h3{font-size:14px}.tile .big{font-size:20px}.tile .icon{width:32px;height:32px;min-width:32px;min-height:32px}.tile small{font-size:10px}.day{min-height:65px;padding:4px;gap:2px;font-size:11px;border-radius:8px}.day-event{display:none}.day-dots{display:flex;flex-wrap:wrap;gap:3px}.num{width:23px;height:23px}.day .extra{font-size:8px}.calendar{gap:3px}.weekday{font-size:9px}.calendar-toolbar h2{font-size:17px}.calendar-toolbar .icon{width:34px;min-width:34px;height:34px;min-height:34px}.week-list{display:block}.week-column{margin-bottom:8px;min-height:60px}.week-column>button{text-align:left;font-size:12px}.week-item{width:auto;display:inline-block;margin:6px 4px 0 0}.field-grid{gap:0 10px}.filters{gap:7px}.filters>*{min-width:100px;font-size:12px;padding:9px}.modal-head{padding:17px}.modal-body{padding:0 17px 20px}dialog{max-height:92vh}.modal-actions{flex-wrap:wrap}.modal-actions button{font-size:12px}.custom-row{grid-template-columns:1fr 1fr 33px}.custom-row .icon{min-width:33px;width:33px}.custom-row input{font-size:12px;padding:9px}.details-grid{grid-template-columns:95px 1fr}footer{display:none}.bar-row{grid-template-columns:90px 1fr 25px;font-size:11px}.calendar-detail h2{font-size:17px}#toast{bottom:85px}.quick-form .icon{min-width:40px}.page-intro h1{font-size:27px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.mobile-more{display:none}@media(max-width:800px){nav .secondary-nav{display:none}nav .mobile-more{display:flex}nav button{min-width:0}.quick-form input{font-size:14px}}

.file-action{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:11px 16px;border-radius:13px;background:#efe7fb;color:#48316e;font-weight:700;border:1px solid #cfc1e6;margin:0 0 8px}.file-action:hover{background:#e4d5fa}

/* Daybook 2.3: visible photographs in every activity listing */
.entry-thumbs{display:flex;flex-wrap:wrap;gap:7px;margin-top:11px;align-items:center}.photo-thumb{width:78px;height:78px;min-height:0;padding:0;border:1px solid #e8dff0;border-radius:12px;overflow:hidden;background:#f4eff9}.photo-thumb img{width:100%;height:100%;object-fit:cover;display:block}.photo-more{font-size:12px;color:#795d9a}.tile-photo{width:100%;height:130px;object-fit:cover;border-radius:12px;margin:10px 0 0;display:block}.day-event-photo{height:18px;width:18px;object-fit:cover;border-radius:4px;vertical-align:middle;margin-right:5px}.week-photo{height:28px;width:28px;object-fit:cover;border-radius:5px;vertical-align:middle;margin-right:6px}.calendar-photo-dot{width:21px;height:21px;object-fit:cover;border-radius:5px}.day-event{height:auto;min-height:23px}.week-item{display:flex;align-items:center}.photo-thumb:hover{outline:2px solid #a785d3}@media(max-width:800px){.photo-thumb{width:64px;height:64px}.tile-photo{height:115px}.day-dots{align-items:center}.calendar-photo-dot{width:19px;height:19px}}

/* 2.4: month events open directly; blank calendar cells select the day. */
.day[data-action=select-day]{cursor:pointer}.day[data-action=select-day]:focus-visible{outline:3px solid #a785d3;outline-offset:2px}.day .day-event{display:block;text-align:left;border:0;min-height:23px;cursor:pointer;box-shadow:none}.day .day-event:hover{filter:brightness(.95);text-decoration:underline}.day .day-event:focus-visible{outline:2px solid #7350b1;outline-offset:1px}@media(max-width:800px){.day .day-event{display:none}}
