:root{--ink: #33293a;--muted: #7a6d7e;--line: #eadce8;--paper: #fffdfd;--canvas: #fff7fb;--plum: #9f4d78;--plum-dark: #74385f;--plum-soft: #f5e5ef;--lavender: #eee8fa;--green: #287c59;--green-soft: #e5f5ec;--red: #b63f59;--red-soft: #fbe8ed;--shadow: 0 18px 45px rgba(115, 72, 110, .09);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:var(--ink);background:var(--canvas);font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;background:var(--canvas);color:var(--ink)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.62}body:before{content:"";position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;opacity:.52;background-image:radial-gradient(#eac8dc 1px,transparent 1px),radial-gradient(#dfd3f0 1px,transparent 1px);background-size:74px 74px,115px 115px;background-position:8px 12px,46px 28px;z-index:-1}.page-shell{min-height:100vh}.site-header{position:sticky;top:0;z-index:10;background:#fffafde6;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-bottom:1px solid rgba(234,220,232,.9)}.header-inner{max-width:1180px;min-height:74px;margin:0 auto;padding:14px 28px;display:flex;align-items:center;justify-content:space-between;gap:18px}.wordmark{display:flex;align-items:center;gap:11px}.wordmark-icon,.brand-mark{display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#d278a7,#9b72b9);box-shadow:0 8px 18px #9f4d7830}.wordmark-icon{width:32px;height:32px;border-radius:11px 11px 11px 4px;font-size:18px}.wordmark strong{display:block;letter-spacing:.09em;color:var(--plum-dark);font-size:15px}.wordmark small{display:block;margin-top:2px;color:var(--muted);font-size:11px}.header-actions{display:flex;align-items:center;gap:9px}.role-pill,.sync-pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:8px 11px;font-size:12px;font-weight:700}.role-pill.leader{color:var(--plum-dark);background:var(--plum-soft)}.role-pill.viewer{color:#5e5571;background:var(--lavender)}.logout-button{border:0;background:transparent;color:var(--muted);display:inline-flex;align-items:center;gap:5px;font-weight:700;font-size:12px;padding:8px}.logout-button:hover{color:var(--red)}.auth-wrap{min-height:calc(100vh - 74px);padding:8vh 18px 48px;display:grid;place-items:start center}.auth-card{width:min(100%,472px);padding:34px;border:1px solid var(--line);border-radius:27px;background:#fffdfded;box-shadow:var(--shadow);position:relative;overflow:hidden}.auth-card:after{content:"✦  ·  ✧";position:absolute;right:26px;top:20px;color:#dcb9d1;letter-spacing:8px}.brand-mark{width:44px;height:44px;border-radius:15px 15px 15px 6px;margin-bottom:20px}.brand-mark.small{width:36px;height:36px;border-radius:12px 12px 12px 5px;margin:0;font-size:20px}.eyebrow{margin:0 0 8px;color:var(--plum);font-size:11px;font-weight:800;letter-spacing:.15em}h1,h2,p{margin-top:0}.auth-card h1{max-width:370px;margin-bottom:12px;color:var(--plum-dark);font-size:clamp(25px,5vw,34px);line-height:1.15;letter-spacing:-.04em}.auth-heading{margin:0 0 10px;color:var(--plum-dark);font-size:17px;line-height:1.4;font-weight:800}.auth-copy,.hero-subtitle{color:var(--muted);line-height:1.6;font-size:14px}.auth-actions{display:grid;gap:10px;margin-top:26px}.button{border:0;border-radius:12px;min-height:42px;padding:10px 15px;display:inline-flex;justify-content:center;align-items:center;gap:8px;font-weight:800;font-size:13px;transition:transform .15s ease,box-shadow .15s ease,filter .15s ease}.button:hover:not(:disabled){transform:translateY(-1px);filter:brightness(1.02)}.button.primary{color:#fff;background:linear-gradient(135deg,var(--plum),#bb6d9d);box-shadow:0 8px 17px #9f4d782e}.button.secondary{color:var(--plum-dark);background:var(--plum-soft)}.button.ghost{color:var(--muted);background:transparent}.button.large{min-height:48px;font-size:14px}.button-row{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin-top:16px}.leader-login{padding-top:20px;margin-top:20px;border-top:1px dashed var(--line)}.section-title{display:flex;align-items:center;gap:8px;color:var(--plum-dark);font-weight:850;margin-bottom:13px}label,.field-label{display:grid;gap:7px;color:#5d4e61;font-size:12px;font-weight:800}input,select,textarea{width:100%;border:1px solid #e2d5e0;border-radius:11px;padding:11px 12px;color:var(--ink);background:#ffffffd6;outline:none;transition:border-color .15s ease,box-shadow .15s ease}input:focus,select:focus,textarea:focus{border-color:#c77eaa;box-shadow:0 0 0 3px #c77eaa26}textarea{min-height:82px;resize:vertical}.field-help,.small-muted,.optional{color:var(--muted);font-size:11px;font-weight:500;line-height:1.45}.field-help{display:block}.sync-note{display:flex;align-items:center;gap:7px;margin-top:24px;padding-top:17px;border-top:1px solid var(--line);color:var(--muted);font-size:11px}.status-dot{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:#4ca77b;box-shadow:0 0 0 4px #4ca77b21}.error-card{text-align:center}.error-card .brand-mark{margin-left:auto;margin-right:auto;background:linear-gradient(135deg,var(--red),#da8395)}.error-card h1{margin-left:auto;margin-right:auto}.error-card p{color:var(--muted);font-size:13px;line-height:1.5}.content-shell{width:min(100% - 36px,1180px);margin:0 auto;padding:38px 0 60px}.hero-row{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:24px}.hero-row h1{margin:0 0 7px;color:var(--plum-dark);font-size:clamp(27px,5vw,42px);letter-spacing:-.055em}.wave{color:#d18aae;font-size:.75em}.hero-subtitle{margin:0}.sync-pill{color:var(--green);background:var(--green-soft);white-space:nowrap}.icon-button{width:31px;height:31px;padding:0;border:0;border-radius:9px;display:inline-grid;place-items:center;color:var(--muted);background:#ffffffb3}.icon-button:hover{color:var(--plum);background:#fff}.icon-button.danger:hover{color:var(--red)}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:25px}.stat-card{padding:18px 17px;border:1px solid var(--line);border-radius:17px;background:#fffdfde0;box-shadow:0 8px 20px #73486e0a}.stat-card strong{display:block;color:var(--ink);font-size:26px;letter-spacing:-.05em}.stat-card span{display:block;margin-top:4px;color:var(--muted);font-size:11px}.stat-card.accent strong{color:var(--plum)}.stat-card.positive strong{color:var(--green)}.stat-card.negative strong{color:var(--red)}.tabs{display:flex;gap:8px;margin-bottom:13px}.tabs button{border:0;border-radius:11px;padding:10px 14px;display:inline-flex;align-items:center;gap:7px;color:var(--muted);background:transparent;font-weight:800;font-size:13px}.tabs button.active{color:var(--plum-dark);background:var(--plum-soft)}.tab-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#fff;font-size:11px}.panel{margin-bottom:14px;padding:22px;border:1px solid var(--line);border-radius:20px;background:#fffdfde6;box-shadow:0 10px 25px #73486e0b}.add-panel{background:linear-gradient(135deg,#fffdfdf5,#f9effad1)}.panel-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:15px}.panel-heading h2{margin:0;color:var(--plum-dark);font-size:19px;letter-spacing:-.03em}.panel-heading .eyebrow{margin-bottom:4px}.form-grid{display:grid;grid-template-columns:1.25fr 1.25fr .75fr auto;gap:11px;align-items:end}.form-grid.two{grid-template-columns:1fr 1fr;margin-top:13px}.table-wrap{width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:14px}table{width:100%;min-width:720px;border-collapse:collapse}th{padding:12px;color:var(--muted);background:#fcf5fa;text-align:left;font-size:10px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}td{padding:13px 12px;border-top:1px solid #f0e6ef;color:#5d5061;font-size:13px;white-space:nowrap}.member-link{padding:0;border:0;display:grid;gap:3px;color:var(--plum-dark);background:transparent;text-align:left}.member-link:not(.viewer):hover strong{text-decoration:underline}.member-link span{color:var(--muted);font-size:11px}.member-link.viewer{cursor:default}.positive-text{color:var(--green)!important}.negative-text{color:var(--red)!important}.score-text{color:var(--plum-dark)}.grade-badge{display:inline-block;padding:5px 8px;border-radius:999px;color:var(--plum-dark);background:var(--plum-soft);font-size:11px;font-weight:800}.grade-badge.good{color:var(--green);background:var(--green-soft)}.grade-badge.warning{color:var(--red);background:var(--red-soft)}.empty-state{padding:40px 16px;text-align:center;color:var(--muted)}.empty-icon{width:42px;height:42px;margin:0 auto 10px;display:grid;place-items:center;border-radius:14px;color:var(--plum);background:var(--plum-soft)}.empty-state strong{color:var(--plum-dark);display:block}.empty-state p{margin:7px auto 0;max-width:420px;font-size:12px;line-height:1.5}.record-panel{background:linear-gradient(135deg,#fffdfdfa,#faf1f9e6);scroll-margin-top:90px}.segmented{display:grid;grid-template-columns:1fr 1fr;padding:4px;margin-bottom:15px;border-radius:12px;background:#f6edf4}.segmented button{border:0;border-radius:9px;padding:10px;color:var(--muted);background:transparent;font-size:12px;font-weight:800}.segmented button.selected{color:var(--plum-dark);background:#fff;box-shadow:0 3px 9px #73486e14}.segmented button.selected.negative-segment{color:var(--red)}.segmented button.selected.positive-segment{color:var(--green)}.category-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.check-card{display:flex;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;padding:10px;border:1px solid #ebdfe9;border-radius:11px;color:#65586a;background:#ffffffb8;font-size:12px;cursor:pointer}.check-card:has(input:checked){border-color:#cf91b4;background:var(--plum-soft)}.check-card input{width:16px;height:16px;accent-color:var(--plum)}.check-card span{flex:1}.check-card b{font-size:12px}.custom-record{margin-top:14px;padding:14px;border:1px dashed #e3ccdc;border-radius:13px;background:#fff7fcbf}.field-label{margin:0;color:var(--plum-dark)}.upload-box{min-height:44px;margin-top:13px;padding:11px 12px;display:flex;align-items:center;gap:8px;border:1px dashed #d8bbcf;border-radius:11px;color:var(--muted);background:#ffffffbf;position:relative}.upload-box input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;cursor:pointer}.image-preview{display:block;max-width:190px;max-height:150px;margin-top:9px;border-radius:11px;object-fit:cover;border:1px solid var(--line)}.filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-bottom:16px}.history-list{display:grid;gap:10px}.history-item{padding:14px;border:1px solid var(--line);border-left:4px solid;border-radius:13px;background:#ffffffb8}.history-item.negative-border{border-left-color:var(--red)}.history-item.positive-border{border-left-color:var(--green)}.history-top{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.history-top strong{display:block;color:var(--plum-dark);font-size:13px}.history-title{display:block;margin-top:3px;color:#5f5264;font-size:13px}.history-top>b{font-size:16px}.history-meta{margin:8px 0 0;color:var(--muted);font-size:11px}.history-note{margin:8px 0 0;color:#5b4e60;font-size:12px;line-height:1.5}.history-image{display:block;max-width:190px;max-height:150px;margin-top:10px;border-radius:10px;object-fit:cover}.text-danger{margin-top:10px;padding:0;display:inline-flex;align-items:center;gap:5px;border:0;color:var(--red);background:transparent;font-size:11px;font-weight:800}.bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.encouragement{display:flex;align-items:center;gap:13px;background:linear-gradient(135deg,#fff7fb,#f6f0ff)}.encouragement strong{color:var(--plum-dark);font-size:14px}.encouragement p{margin:4px 0 0;color:var(--muted);font-size:12px;line-height:1.45}.password-panel{margin-bottom:14px}.password-toggle{width:100%;padding:0;display:flex;justify-content:flex-start;align-items:center;gap:7px;border:0;color:var(--plum-dark);background:transparent;font-size:13px;font-weight:850}.password-toggle span{margin-left:auto;font-size:18px}.password-panel form{display:grid;gap:11px;margin-top:14px;padding-top:14px;border-top:1px dashed var(--line)}.loading-screen{min-height:calc(100vh - 74px);display:grid;place-content:center;justify-items:center;gap:9px;color:var(--muted);font-size:13px}.loader-ring,.button-spinner{border:2px solid rgba(159,77,120,.18);border-top-color:var(--plum);border-radius:50%;animation:spin .7s linear infinite}.loader-ring{width:38px;height:38px}.button-spinner{width:14px;height:14px}.summary-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;padding:16px;display:grid;place-items:center;background:#291d2a94}.summary-dialog{width:min(100%,960px);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);padding:20px;overflow:auto;border:1px solid var(--line);border-radius:20px;background:var(--paper);box-shadow:0 22px 70px #1e0f2247}.summary-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.summary-dialog-heading .eyebrow{margin-bottom:4px}.summary-dialog-heading h2{margin:0;color:var(--plum-dark);font-size:21px}.summary-save-help{margin:12px 0;padding:11px 13px;border-radius:12px;color:#66566a;background:#f8eff7;font-size:12px;line-height:1.55}.summary-preview-list{display:grid;gap:14px}.summary-preview-card{padding:12px;border:1px solid var(--line);border-radius:14px;background:#fffafd}.summary-preview-card h3{margin:0 0 8px;color:var(--plum-dark);font-size:13px}.summary-page-navigation{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0;color:var(--plum-dark);font-size:12px;font-weight:800}.summary-page-navigation .button{min-height:38px;padding:8px 12px}.summary-image-frame{max-height:68vh;max-height:68dvh;overflow:auto;border:1px solid #eadce8;border-radius:10px;background:#fff7fb;overscroll-behavior:contain}.summary-image-frame img{display:block;width:100%;height:auto}.summary-image-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.summary-image-actions .button{text-decoration:none}@keyframes spin{to{transform:rotate(360deg)}}.quantity-row{display:grid;grid-template-columns:minmax(150px,230px) 1fr;gap:12px;align-items:end;margin:14px 0}.quantity-row input{min-height:45px}.quantity-summary{min-height:45px;padding:10px 14px;border:1px solid #e8d9e8;border-radius:12px;background:linear-gradient(120deg,#fff7fb,#f4effc);display:grid;grid-template-columns:1fr auto;gap:3px 10px;align-items:center}.quantity-summary small{color:var(--muted);font-size:10px;font-weight:850;letter-spacing:.08em}.quantity-summary strong{grid-row:span 2;color:var(--plum-dark);font-size:23px;white-space:nowrap}.quantity-summary span{color:var(--muted);font-size:11px}@media (max-width: 850px){.header-inner{padding:13px 18px}.content-shell{width:min(100% - 24px,700px);padding-top:26px}.stats-grid{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:1fr 1fr}.form-grid>.button{width:100%}.bottom-grid{grid-template-columns:1fr}}@media (max-width: 560px){.wordmark small{display:none}.wordmark strong{font-size:13px}.role-pill{padding:7px 8px}.logout-button{padding-right:0}.auth-wrap{padding:5vh 12px 30px}.auth-card{padding:25px 20px;border-radius:22px}.content-shell{width:calc(100% - 18px);padding-top:22px}.hero-row{display:block}.sync-pill{margin-top:15px;width:max-content}.stats-grid{gap:8px}.stat-card{padding:14px 12px}.stat-card strong{font-size:22px}.panel{padding:16px 13px;border-radius:17px}.panel-heading{align-items:center}.panel-heading h2{font-size:17px}.small-muted{font-size:10px}.form-grid,.form-grid.two,.filter-grid,.category-grid,.quantity-row{grid-template-columns:1fr}.quantity-summary{min-height:58px}.segmented button{padding:9px 6px;font-size:11px}.button-row .button{flex:1}.history-top{gap:8px}.history-meta{line-height:1.5}.summary-overlay{padding:7px}.summary-dialog{max-height:calc(100vh - 14px);max-height:calc(100dvh - 14px);padding:13px;border-radius:16px}.summary-dialog-heading h2{font-size:18px}.summary-image-frame{max-height:58vh;max-height:58dvh}.summary-image-actions{display:grid;grid-template-columns:1fr}.summary-image-actions .button{width:100%}}
