*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Arial,sans-serif;background:linear-gradient(180deg,#eef5fa,#e8f1f6);color:#11283b}.top{height:76px;background:#1e3b55;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 22px;position:sticky;top:0;z-index:10;box-shadow:0 4px 18px #10283b22}.brand{display:flex;align-items:center;gap:12px;color:white;text-decoration:none;font-size:24px}.brand span{background:#ffd15c;color:#0d2b43;border-radius:14px;width:38px;height:38px;display:grid;place-items:center;font-weight:900;font-size:14px}.top nav{display:flex;gap:14px;align-items:center}.top select,.top .ghost{height:44px;border-radius:12px;border:1px solid #ffffff26;background:#fff;color:#1e2f40;padding:0 16px;font-size:15px}.plus{width:44px;height:44px;border-radius:14px;background:#ffd15c;color:#0c2b43;text-decoration:none;display:grid;place-items:center;font-weight:900}.btn{border:0;border-radius:12px;padding:12px 18px;text-decoration:none;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.primary{background:#2d5d8d;color:white}.secondary,.ghost{background:#667b91;color:white}.danger{background:#d9534f;color:white}.mini{padding:8px 12px;font-size:13px}.page{max-width:1140px;margin:48px auto;padding:0 18px}.login-wrap{min-height:calc(100vh - 76px);display:grid;place-items:center;padding:30px}.paper{background:#fff8e9;border:1px solid #e6c98e;border-radius:10px;box-shadow:0 18px 40px #24415c1a;position:relative;background-image:linear-gradient(#e8ddc4 1px,transparent 1px);background-size:100% 31px}.paper:before{content:"";position:absolute;left:36px;top:0;bottom:0;border-left:3px solid #f1cbc1;opacity:.7}.login{width:min(440px,100%);padding:46px 32px}.login input,.form input,.form textarea,.inline input,.task input{width:100%;border:1px solid #c9d4df;border-radius:12px;padding:13px 14px;font-size:16px;background:white}.login label,.form label{display:block;margin:14px 0 6px;font-weight:700}.login .btn{width:100%;margin:18px 0}.pin{position:absolute;top:-10px;left:50%;width:20px;height:20px;background:#df4b4b;border-radius:50%;box-shadow:0 4px 12px #0002}.alert{background:#ffe1e1;padding:10px;border-radius:10px}.section{display:flex;align-items:center;justify-content:space-between;margin:34px 0 22px}.business-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px}.business-card{min-height:180px;padding:36px 22px 22px;text-decoration:none;color:inherit;display:block;transition:.18s}.business-card:hover{transform:translateY(-2px);box-shadow:0 25px 60px #24415c30}.badge{display:inline-block;background:#edf5ff;border:1px solid #cce0f7;color:#6f95bd;border-radius:999px;padding:7px 12px;font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.business-card h2{font-size:32px;margin:16px 0 6px}.float-plus{position:absolute;right:22px;top:68px;background:#2d5d8d;color:white;border-radius:12px;width:44px;height:44px;display:grid;place-items:center;font-size:28px;font-weight:900}.bar{height:10px;background:#dfe9ef;border-radius:999px;overflow:hidden;margin:16px 0}.bar i{display:block;height:100%;background:#4caf77}.big{height:14px}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:18px;margin-top:26px}.stat{min-height:110px;display:grid;place-items:center;text-align:center;padding:16px}.stat b{font-size:32px;display:block}.stat span{color:#667b91;font-weight:800}.today{border:1px solid #a8efc1;background:#ecfff4;border-radius:18px;padding:20px}.today p{text-align:center;color:#667b91}.hide{display:none}.hero{padding:34px 28px;margin-bottom:22px}.hero h1{font-size:40px;margin:14px 0 6px}.hero-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.hero-actions b{font-size:28px}.add{padding:24px;margin:22px 0}.inline{display:grid;grid-template-columns:1fr 220px auto;gap:12px}.category{margin:28px 0}.task{background:white;border:1px solid #d8e2ea;border-radius:14px;margin:10px 0;padding:10px;display:grid;grid-template-columns:50px 1fr;gap:10px}.task.done{background:#edfff4;border-color:#a8eec0}.check button{width:44px;height:44px;border-radius:12px;border:0;background:#e9f0f6;color:#315a80;font-weight:900;font-size:18px}.done .check button{background:#4caf77;color:white}.task-edit{display:grid;grid-template-columns:1fr 210px auto auto;gap:10px}.task input[readonly]{background:#f8fbfd}.form{padding:28px}.form textarea{min-height:110px}.back{display:inline-block;margin-bottom:18px;color:#2d5d8d;font-weight:900;text-decoration:none}table{width:100%;border-collapse:collapse;background:white;border-radius:12px;overflow:hidden}th,td{text-align:left;padding:12px;border-bottom:1px solid #e6eef4}th{font-size:12px;text-transform:uppercase;color:#667b91}@media(max-width:720px){.top{padding:0 12px}.brand b{font-size:20px}.top nav{gap:8px}.top .ghost{display:none}.page{margin:26px auto}.inline,.task-edit{grid-template-columns:1fr}.task{grid-template-columns:1fr}.business-card h2{font-size:28px}.stats{grid-template-columns:1fr 1fr}}

/* v22 mobile task list polish */
.task-edit input{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;}
.task-edit .btn{width:100%;min-height:44px;}
@media(max-width:720px){
  html,body{max-width:100%;overflow-x:hidden;}
  .page{padding:0 12px;margin:18px auto;}
  .top{height:auto;min-height:68px;flex-wrap:wrap;gap:8px;}
  .top nav{margin-left:auto;}
  .top select{max-width:118px;padding:0 10px;}
  .hero,.add,.paper{max-width:100%;}
  .category h2{font-size:21px;line-height:1.15;}
  .task{grid-template-columns:42px minmax(0,1fr);align-items:start;padding:10px;border-radius:14px;width:100%;}
  .check button{width:40px;height:40px;border-radius:12px;}
  .task-edit{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;width:100%;}
  .task-edit input{grid-column:1/-1;font-size:15px;padding:12px;white-space:nowrap;}
  .task-edit .mini{padding:11px 10px;font-size:14px;border-radius:10px;}
  .task-edit .danger{grid-column:auto;}
  .business-grid,.stats{grid-template-columns:1fr;}
}
@media(max-width:420px){
  .brand b{font-size:18px;}
  .top select{max-width:108px;font-size:14px;}
  .task{grid-template-columns:38px minmax(0,1fr);gap:8px;}
  .check button{width:36px;height:36px;}
  .task-edit{grid-template-columns:1fr;}
}

/* v23 real notebook grouped list */
.list-section{padding:26px 24px;margin:26px 0;overflow:hidden;}
.list-head{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:2px solid rgba(45,93,141,.18);padding-bottom:10px;margin-bottom:8px;position:relative;z-index:1;}
.list-head h2{margin:0;font-size:22px;color:#17324a;}
.list-head span{font-weight:900;color:#6b7f91;background:#edf5ff;border:1px solid #cce0f7;border-radius:999px;padding:6px 10px;font-size:12px;}
.notebook-list{margin:0;padding:0;list-style:none;counter-reset:item;position:relative;z-index:1;}
.list-row{counter-increment:item;display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid rgba(32,64,92,.10);}
.list-row:last-child{border-bottom:0;}
.line-check button{width:36px;height:36px;border:0;border-radius:11px;background:#e9f0f6;color:#315a80;font-weight:900;font-size:18px;cursor:pointer;}
.list-row.done .line-check button{background:#4caf77;color:white;}
.line-title{display:block;font-size:16px;line-height:1.35;color:#10283b;word-break:break-word;}
.line-title:before{content:counter(item) '. ';font-weight:900;color:#315a80;}
.list-row.done .line-title{text-decoration:line-through;color:#5f778b;}
.line-actions{display:flex;align-items:center;gap:8px;}
.line-actions form{margin:0;}
.line-edit-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;}
.line-edit-form input{width:100%;min-width:0;border:1px solid #c9d4df;border-radius:10px;padding:11px 12px;background:#fff;font-size:15px;}
.line-edit-actions{display:flex;gap:8px;}

@media(max-width:720px){
  .list-section{padding:22px 14px;margin:22px 0;border-radius:14px;}
  .list-head{align-items:flex-start;}
  .list-head h2{font-size:20px;line-height:1.2;}
  .list-row{grid-template-columns:38px minmax(0,1fr);gap:8px;padding:12px 0;align-items:start;}
  .line-check button{width:34px;height:34px;border-radius:10px;}
  .line-title{font-size:15px;padding-top:5px;}
  .line-actions{grid-column:2;display:grid;grid-template-columns:1fr 1fr;width:100%;gap:8px;margin-top:8px;}
  .line-actions .btn,.line-actions form,.line-actions form button{width:100%;}
  .line-edit-form{grid-template-columns:1fr;}
  .line-edit-actions{display:grid;grid-template-columns:1fr 1fr;}
  .line-edit-actions .btn{width:100%;}
}
@media(max-width:420px){
  .list-section{padding:20px 12px;}
  .list-row{grid-template-columns:34px minmax(0,1fr);}
  .line-check button{width:32px;height:32px;}
  .line-actions{grid-template-columns:1fr;}
  .line-edit-actions{grid-template-columns:1fr;}
}

.line-title{font-size:18px;font-weight:700}
.line-actions .btn{padding:6px 10px;font-size:12px}
.line-edit-actions .secondary{display:none}

/* v25: clean edit mode + task photo page */
.line-title{color:#10283b;text-decoration:none;font-size:18px;font-weight:800;line-height:1.35;display:block;padding-top:2px;}
.line-title:hover{text-decoration:underline;}
.line-edit-form{display:none !important;}
.list-row.editing .line-edit-form{display:grid !important;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;}
.list-row.editing .line-title{display:none !important;}
.line-actions .btn{padding:6px 10px;font-size:12px;min-height:30px;border-radius:9px;}
.line-actions form{margin:0;}
.line-edit-form .btn{padding:7px 12px;font-size:12px;min-height:32px;border-radius:9px;}
.photo-panel{padding:24px;margin-top:22px;}
.muted{color:#667b91;}
.upload-form{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;margin:18px 0;}
.upload-form input[type=file]{background:white;border:1px solid #c9d4df;border-radius:12px;padding:12px;width:100%;}
.photo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;margin-top:18px;}
.photo-card{background:white;border:1px solid #d8e2ea;border-radius:14px;padding:10px;box-shadow:0 8px 20px #24415c14;}
.photo-card img{width:100%;height:160px;object-fit:cover;border-radius:10px;display:block;margin-bottom:10px;}
.photo-card .btn{width:100%;}
@media(max-width:720px){
  .line-title{font-size:17px;font-weight:850;}
  .line-actions{grid-column:2;display:flex;gap:8px;width:100%;margin-top:8px;}
  .line-actions .btn,.line-actions form,.line-actions form button{width:auto;flex:1;}
  .list-row.editing .line-edit-form{grid-template-columns:1fr;}
  .upload-form{grid-template-columns:1fr;}
  .photo-grid{grid-template-columns:1fr 1fr;gap:10px;}
  .photo-card img{height:130px;}
}
@media(max-width:420px){.photo-grid{grid-template-columns:1fr}.photo-card img{height:190px}}


/* v26: task detail gallery design, no notebook paper on upload page */
.task-hero-card{
  background:linear-gradient(135deg,#ffffff,#f4f8fc);
  border:1px solid #d8e4ef;
  border-radius:22px;
  box-shadow:0 18px 42px rgba(36,65,92,.14);
  padding:28px;
  margin-bottom:22px;
}
.task-hero-card h1{
  margin:14px 0 10px;
  font-size:clamp(30px,5vw,50px);
  line-height:1.08;
  letter-spacing:-.03em;
}
.gallery-panel{
  background:#ffffff;
  border:1px solid #d8e4ef;
  border-radius:22px;
  box-shadow:0 18px 42px rgba(36,65,92,.14);
  padding:24px;
  margin-top:22px;
}
.gallery-panel h2{margin:0 0 8px;font-size:24px;}
.gallery-panel .muted{margin:0 0 16px;font-size:15px;line-height:1.45;}
.gallery-upload{display:grid;grid-template-columns:180px minmax(160px,220px);gap:14px;align-items:end;margin:18px 0 22px;}
.upload-plus{
  width:180px;height:150px;border:2px dashed #bdd0df;border-radius:22px;background:linear-gradient(180deg,#f8fbff,#eef5fb);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;cursor:pointer;text-align:center;color:#2d5d8d;
  transition:.18s;box-shadow:inset 0 1px 0 #fff,0 10px 22px rgba(36,65,92,.10);
}
.upload-plus:hover{transform:translateY(-2px);border-color:#2d5d8d;background:#f5faff;}
.upload-plus input{display:none;}
.upload-plus .plus-icon{width:54px;height:54px;border-radius:18px;background:#2d5d8d;color:#fff;display:grid;place-items:center;font-size:36px;font-weight:900;line-height:1;}
.upload-plus strong{font-size:15px;color:#12304a;}
.upload-plus small{font-size:12px;color:#667b91;}
.upload-submit{height:48px;border-radius:14px;align-self:center;}
.photo-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));}
.photo-card{border-radius:18px;padding:10px;background:#f8fbfe;border:1px solid #dbe7f0;}
.photo-card img{border-radius:14px;height:170px;}
@media(max-width:720px){
  .task-hero-card,.gallery-panel{border-radius:18px;padding:18px;margin-left:0;margin-right:0;}
  .task-hero-card h1{font-size:32px;line-height:1.1;}
  .gallery-upload{grid-template-columns:1fr;align-items:stretch;}
  .upload-plus{width:100%;height:150px;}
  .upload-submit{width:100%;}
  .photo-grid{grid-template-columns:1fr 1fr;}
}
@media(max-width:420px){.photo-grid{grid-template-columns:1fr}.photo-card img{height:220px}}


/* v27: category selector, automatic photo upload, double-tap/desktop double-click toggle */
.inline.add-task-form{grid-template-columns:minmax(0,1fr) 260px auto;}
.category-select{width:100%;border:1px solid #c9d4df;border-radius:12px;padding:13px 14px;font-size:16px;background:white;color:#10283b;font-weight:700;}
.list-row{cursor:default;}
.line-content{min-width:0;}
.line-title{cursor:pointer;}
.auto-upload-form.gallery-upload{grid-template-columns:180px;align-items:start;}
.auto-upload-form .upload-plus{margin:0;}
.upload-submit{display:none!important;}
.upload-plus input{display:none!important;}
@media(max-width:720px){
  .inline.add-task-form{grid-template-columns:1fr;}
  .category-select{font-size:15px;padding:12px;}
  .auto-upload-form.gallery-upload{grid-template-columns:1fr;}
}


/* v28: worker name modal and completed-by label */
.completed-worker{
  margin-top:4px;
  font-size:13px;
  color:#315a80;
  font-weight:700;
}
.completed-worker strong{color:#12304a;}
.worker-modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(13,35,54,.48);
  z-index:9999;
  padding:18px;
}
.worker-modal.show{display:flex;}
.worker-box{
  width:min(430px,100%);
  background:#fff;
  border-radius:22px;
  padding:22px;
  box-shadow:0 24px 70px rgba(0,0,0,.28);
  border:1px solid #d9e5ef;
}
.worker-box h3{margin:0 0 8px;font-size:23px;color:#10283b;}
.worker-box p{margin:0 0 14px;color:#667b91;line-height:1.45;}
.worker-box input{
  width:100%;
  border:1px solid #c9d4df;
  border-radius:14px;
  padding:14px;
  font-size:16px;
  font-weight:700;
  outline:none;
}
.worker-box input:focus{border-color:#2d5d8d;box-shadow:0 0 0 3px rgba(45,93,141,.14);}
.worker-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px;}
@media(max-width:420px){
  .worker-box{padding:18px;border-radius:18px;}
  .worker-actions{grid-template-columns:1fr;}
}

/* v29: one-button completion modal */
.worker-actions{display:block;margin-top:14px;}
.worker-actions .btn{width:100%;}


/* v31: completed worker emphasis + strict completion gestures */
.completed-worker strong{
  color:#0057c2 !important;
  font-weight:900 !important;
}
.completed-worker{
  color:#0057c2 !important;
  font-weight:800 !important;
}
.toggle-btn{
  touch-action:none;
  -webkit-user-select:none;
  user-select:none;
}
.list-row{
  -webkit-user-select:none;
  user-select:none;
}
.line-title{
  -webkit-user-select:auto;
  user-select:auto;
}

/* v32: only task lists use notebook paper. Business and add-task cards are modern dark panels. */
.business-summary-card{
  background:linear-gradient(135deg,#0f2436,#1e3b55 55%,#2d5d8d);
  color:#fff;
  border:1px solid rgba(255,255,255,.12);
  border-radius:24px;
  box-shadow:0 22px 50px rgba(16,40,59,.22);
  padding:30px 28px;
  margin-bottom:22px;
  position:relative;
  overflow:hidden;
}
.business-summary-card:before{
  content:"";
  position:absolute;
  inset:auto -80px -120px auto;
  width:260px;
  height:260px;
  border-radius:50%;
  background:rgba(255,209,92,.13);
}
.business-summary-card h1,
.business-summary-card p,
.business-summary-card .hero-actions{position:relative;z-index:1;}
.business-summary-card h1{color:#fff;margin-top:14px;}
.business-summary-card p{color:#d7e6f2;}
.business-summary-card .bar{background:rgba(255,255,255,.16);}
.business-summary-card .bar i{background:#ffd15c;}
.business-summary-card .hero-actions span{color:#eaf3fb;font-weight:800;}
.business-summary-card .secondary{background:rgba(255,255,255,.15);color:#fff;border:1px solid rgba(255,255,255,.16);}
.dark-badge{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.22);color:#ffd15c;}

.add-task-panel{
  background:linear-gradient(135deg,#111820,#1f2b35);
  color:#fff;
  border:1px solid rgba(255,255,255,.10);
  border-radius:22px;
  box-shadow:0 18px 42px rgba(14,31,48,.18);
  margin:22px 0;
  overflow:hidden;
}
.add-task-toggle{
  width:100%;
  min-height:70px;
  border:0;
  background:transparent;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 18px;
  cursor:pointer;
  font-weight:900;
  font-size:21px;
  text-align:left;
}
.add-task-toggle strong{
  width:42px;
  height:42px;
  border-radius:14px;
  background:#ffd15c;
  color:#10283b;
  display:grid;
  place-items:center;
  font-size:28px;
  line-height:1;
  transition:.18s;
}
.add-task-panel.open .add-task-toggle strong{transform:rotate(45deg);}
.add-task-body{
  max-height:0;
  opacity:0;
  overflow:hidden;
  padding:0 18px;
  transition:max-height .24s ease, opacity .18s ease, padding .24s ease;
}
.add-task-panel.open .add-task-body{
  max-height:260px;
  opacity:1;
  padding:0 18px 18px;
}
.add-task-panel .add-task-body input,
.add-task-panel .category-select{
  border:1px solid rgba(255,255,255,.16);
  background:#fff;
}
.add-task-panel .primary{background:#ffd15c;color:#10283b;}

/* Dashboard business cards also stay out of notebook style. */
.business-card.paper{
  background:linear-gradient(135deg,#111820,#1e3b55)!important;
  background-image:none!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:22px!important;
}
.business-card.paper:before{display:none!important;}
.business-card.paper p{color:#d7e6f2;}
.business-card.paper .bar{background:rgba(255,255,255,.16);}
.business-card.paper .bar i{background:#ffd15c;}
.business-card.paper .float-plus{background:#ffd15c;color:#10283b;}

@media(max-width:720px){
  .business-summary-card{border-radius:20px;padding:22px 18px;}
  .business-summary-card h1{font-size:34px;}
  .add-task-toggle{min-height:62px;font-size:19px;padding:14px 16px;}
  .add-task-toggle strong{width:38px;height:38px;border-radius:13px;font-size:26px;}
  .add-task-panel.open .add-task-body{max-height:360px;}
}


/* v33: corrected dark cards, designed admin page, and visible contrast */
.business-card.paper{
  background:#101820!important;
  background-image:linear-gradient(135deg,#101820 0%,#18324a 55%,#244f78 100%)!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.14)!important;
  border-radius:24px!important;
  box-shadow:0 22px 52px rgba(15,35,52,.24)!important;
}
.business-card.paper *{position:relative;z-index:1;}
.business-card.paper:before{display:none!important;}
.business-card.paper h2{color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.18);}
.business-card.paper p,.business-card.paper small{color:#e9f4ff!important;font-weight:700;}
.business-card.paper .bar{background:rgba(255,255,255,.20)!important;}
.business-card.paper .bar i{background:#ffd15c!important;}
.business-card.paper .float-plus{background:#ffd15c!important;color:#10283b!important;}
.business-summary-card{
  background:#101820!important;
  background-image:linear-gradient(135deg,#101820 0%,#18324a 55%,#244f78 100%)!important;
}
.business-summary-card h1,.business-summary-card p,.business-summary-card span,.business-summary-card b{color:#fff!important;}
.business-summary-card .bar{background:rgba(255,255,255,.20)!important;}
.business-summary-card .bar i{background:#ffd15c!important;}
.business-form-card{
  background:linear-gradient(135deg,#101820,#1e3b55 60%,#2d5d8d);
  color:#fff;
  border:1px solid rgba(255,255,255,.14);
  border-radius:24px;
  box-shadow:0 24px 70px rgba(16,40,59,.24);
  padding:32px;
  max-width:860px;
  margin:0 auto;
}
.business-form-card h1{font-size:38px;margin:14px 0 8px;color:#fff;}
.business-form-card p{margin:0 0 22px;color:#d9e9f6;font-weight:700;}
.business-create-form{display:grid;grid-template-columns:160px minmax(0,1fr);gap:14px;align-items:center;}
.business-create-form label{font-weight:900;color:#fff;}
.business-create-form input,.business-create-form textarea{
  width:100%;border:1px solid rgba(255,255,255,.18);border-radius:14px;padding:14px 16px;font-size:16px;background:#fff;color:#10283b;
}
.business-create-form textarea{min-height:120px;resize:vertical;}
.business-create-form .btn{grid-column:2;background:#ffd15c;color:#10283b;min-height:48px;}
@media(max-width:720px){
  .business-form-card{padding:24px 18px;border-radius:20px;}
  .business-form-card h1{font-size:30px;}
  .business-create-form{grid-template-columns:1fr;gap:9px;}
  .business-create-form .btn{grid-column:1;}
}


/* v34 dashboard polish */
.dashboard-page{margin-top:26px;}
.dashboard-page>h1{display:none!important;}
.dashboard-section{margin-top:8px;}
.business-grid{align-items:stretch;}
.business-card.paper{min-height:260px;padding:36px 22px 70px;overflow:hidden;}
.business-card.paper .float-plus{top:auto!important;right:22px!important;bottom:22px!important;width:44px;height:44px;border-radius:13px;font-size:30px;z-index:3;}
.modern-stats .stat{background:linear-gradient(135deg,#24415e,#2f638f)!important;background-image:linear-gradient(135deg,#24415e,#2f638f)!important;color:#fff!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:20px!important;box-shadow:0 18px 42px rgba(16,40,59,.18)!important;min-height:118px;}
.modern-stats .stat:before{display:none!important;}
.modern-stats .stat b{color:#fff!important;}
.modern-stats .stat span{color:#eaf4ff!important;font-weight:900;}
.completed-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:34px;align-items:start;}
.completed-panel{min-width:0;}
.completed-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;}
.completed-head h2{margin:0;}
.completed-head .btn{padding:11px 16px;}
.today{min-height:180px;overflow:auto;}
.today table{font-size:14px;}
.today .click-row{cursor:pointer;transition:.15s;}
.today .click-row:hover{background:#f2f8ff;}
.yesterday{background:#f4f9ff;border-color:#c9e0ff;}
@media(max-width:900px){.completed-grid{grid-template-columns:1fr;}.business-card.paper{min-height:220px;}}
@media(max-width:720px){.dashboard-page{margin-top:18px;}.business-card.paper{min-height:210px;padding:30px 20px 72px;}.modern-stats{grid-template-columns:1fr 1fr!important;}.modern-stats .stat{min-height:98px;}.completed-head{align-items:flex-start;}.today table{font-size:13px;}}


/* v35: property button placement, partial status, completion modal choices */
.business-card.paper{position:relative!important;padding-bottom:96px!important;}
.business-card.paper .float-plus{position:absolute!important;right:22px!important;left:auto!important;bottom:24px!important;top:auto!important;transform:none!important;z-index:5!important;}
.business-card.paper small{display:block;padding-right:82px;}
.list-row.partial .toggle-btn{background:#ffd15c!important;color:#10283b!important;}
.list-row.partial .line-title{color:#775f15!important;text-decoration:line-through;}
.completion-choice{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 4px;}
.choice-btn{border:2px solid #dbe7f1;background:#f3f7fb;color:#17344d;border-radius:12px;font-weight:900;padding:12px 10px;cursor:pointer;}
.choice-btn.completed.active{border-color:#4caf77;background:#eafaf0;color:#1d6a42;}
.choice-btn.partial.active{border-color:#ffd15c;background:#fff5cf;color:#72570d;}
.worker-actions .btn:disabled{opacity:.5;cursor:not-allowed;filter:grayscale(.25);}
@media(max-width:720px){.business-card.paper{padding-bottom:90px!important;}.business-card.paper .float-plus{right:18px!important;bottom:20px!important;}.business-card.paper small{padding-right:72px;}.completion-choice{grid-template-columns:1fr;}}

/* v39: beautiful task status filter on business list */
.task-filter-card{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:flex-start;
  margin:18px 0 18px;
  padding:12px;
  background:linear-gradient(135deg,#ffffff,#edf5fb);
  border:1px solid #d8e6f1;
  border-radius:22px;
  box-shadow:0 14px 34px rgba(36,65,92,.12);
}
.task-filter-btn{
  border:0;
  border-radius:16px;
  padding:12px 16px;
  background:#f6f9fc;
  color:#12304a;
  font-weight:900;
  cursor:pointer;
  box-shadow:inset 0 0 0 1px #d8e6f1;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.task-filter-btn:hover{transform:translateY(-1px);box-shadow:inset 0 0 0 1px #b9ccdc,0 8px 18px rgba(36,65,92,.10);}
.task-filter-btn.active{
  background:linear-gradient(135deg,#17344d,#2d5d8d);
  color:#fff;
  box-shadow:0 10px 22px rgba(45,93,141,.24);
}
@media(max-width:720px){
  .task-filter-card{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px;}
  .task-filter-btn{padding:11px 10px;font-size:13px;}
}

/* v40: before/after task galleries with upload button at the end */
.gallery-section{margin-top:24px;padding:18px;border:1px solid #dce8f2;border-radius:20px;background:#f8fbff;}
.gallery-section + .gallery-section{margin-top:22px;}
.gallery-title-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px;}
.gallery-title-row h3{margin:0;color:#002744;font-size:1.35rem;}
.gallery-title-row .muted{margin:4px 0 0;}
.gallery-photo-grid{align-items:stretch;}
.upload-card-form{margin:0;min-height:100%;}
.inline-upload-plus{height:100%;min-height:214px;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:18px;background:#f2f7fc;}
.gallery-limit-note{min-height:214px;display:flex;align-items:center;justify-content:center;border-radius:18px;border:1px dashed #b6cadc;background:#f2f7fc;color:#55708a;font-weight:800;}
.before-gallery{border-color:#f2d8ac;background:#fff9ed;}
.after-gallery{border-color:#bfe6ca;background:#f3fff6;}
@media(max-width:700px){.gallery-section{padding:12px}.inline-upload-plus,.gallery-limit-note{min-height:190px}}

/* v42: simple in-browser image editor for task photos */
.photo-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px;}
.photo-actions form{margin:0;}
.photo-actions .btn{width:100%;}
.edit-photo-btn{background:#2f638f!important;color:#fff!important;border:0!important;}
.image-editor-modal{position:fixed;inset:0;background:rgba(7,22,34,.72);z-index:9999;display:none;align-items:center;justify-content:center;padding:18px;}
.image-editor-modal.open{display:flex;}
.image-editor-card{width:min(1120px,100%);max-height:94vh;display:flex;flex-direction:column;background:#fff;border-radius:24px;box-shadow:0 28px 80px rgba(0,0,0,.35);overflow:hidden;}
.image-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px 20px;background:linear-gradient(135deg,#17344d,#2f638f);color:#fff;}
.image-editor-head h3{margin:0;font-size:22px;}
.image-editor-head p{margin:5px 0 0;color:#eaf4ff;font-size:14px;}
.editor-close{border:0;background:#ffcc4d;color:#10283b;border-radius:14px;width:42px;height:42px;font-size:28px;font-weight:900;cursor:pointer;line-height:1;}
.editor-toolbar{display:flex;flex-wrap:wrap;gap:9px;align-items:center;padding:12px 14px;background:#f3f7fb;border-bottom:1px solid #dbe7f1;}
.editor-tool{border:1px solid #d5e2ee;background:#fff;color:#12304a;border-radius:12px;padding:10px 12px;font-weight:900;cursor:pointer;}
.editor-tool.active{background:#ffcc4d;border-color:#ffcc4d;box-shadow:0 8px 20px rgba(255,204,77,.28);}
.editor-color,.editor-size{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #d5e2ee;border-radius:12px;padding:7px 10px;font-weight:900;color:#12304a;}
.editor-color input{width:38px;height:32px;border:0;background:transparent;padding:0;}
.editor-size input{width:110px;}
.editor-canvas-wrap{flex:1;min-height:260px;overflow:auto;background:#dfe8f0;padding:14px;display:flex;align-items:center;justify-content:center;}
#imageEditorCanvas{max-width:100%;height:auto;background:#fff;border-radius:12px;box-shadow:0 10px 28px rgba(12,34,52,.22);touch-action:none;}
.editor-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:14px;border-top:1px solid #dbe7f1;background:#fff;}
#editorStatus{margin-right:auto;color:#55708a;font-weight:800;}
.editor-footer .primary{background:#4caf77;color:#fff;border:0;}
@media(max-width:720px){.image-editor-modal{padding:8px;align-items:stretch;}.image-editor-card{max-height:98vh;border-radius:18px;}.image-editor-head{padding:14px;}.editor-toolbar{gap:7px;padding:10px;}.editor-tool{padding:9px 10px;font-size:13px;}.editor-color,.editor-size{font-size:13px;}.editor-canvas-wrap{padding:8px;align-items:flex-start;}.editor-footer{padding:10px;}.photo-actions{grid-template-columns:1fr;}}

/* v43: property thumbnail, fullscreen preview, and quick edit controls */
.property-card{position:relative;overflow:hidden;display:block;text-decoration:none;color:inherit;min-height:242px;padding-right:220px!important;}
.property-thumb{position:absolute;right:18px;top:18px;width:170px;height:128px;border:0;border-radius:20px;overflow:hidden;background:#eef5fb;box-shadow:0 12px 28px rgba(7,22,34,.22);cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center;}
.property-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s ease;}
.property-thumb:hover img{transform:scale(1.04);}
.property-thumb-empty{border:2px dashed #aecadf;color:#2d5d8d;flex-direction:column;gap:6px;font-weight:900;text-align:center;box-shadow:none;}
.property-thumb-empty input,.property-upload-form input[type="file"]{display:none;}
.property-thumb-empty span{width:48px;height:48px;border-radius:16px;background:#2d5d8d;color:#fff;display:grid;place-items:center;font-size:30px;line-height:1;}
.property-thumb-empty small{font-size:12px;color:#2d5d8d;padding:0 8px;}
.property-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;position:relative;z-index:2;}
.property-actions .btn{font-size:12px;padding:9px 12px;border-radius:12px;}
.property-upload-form{margin:0;}
.property-upload-form label{cursor:pointer;display:inline-flex;align-items:center;}
.property-edit-form{display:none;margin-top:12px;position:relative;z-index:3;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.18);border-radius:18px;padding:12px;gap:8px;}
.property-card.editing-property .property-edit-form{display:grid;}
.property-edit-form input,.property-edit-form textarea{width:100%;box-sizing:border-box;border:1px solid rgba(255,255,255,.35);border-radius:12px;padding:10px;background:#f8fbff;color:#10283b;font-weight:800;font-family:inherit;}
.property-edit-form textarea{resize:vertical;min-height:56px;}
.property-photo-modal{position:fixed;inset:0;background:rgba(5,17,27,.86);z-index:10000;display:none;align-items:center;justify-content:center;padding:18px;}
.property-photo-modal.open{display:flex;}
.property-photo-modal img{max-width:96vw;max-height:92vh;object-fit:contain;border-radius:18px;box-shadow:0 28px 90px rgba(0,0,0,.48);}
.property-photo-close{position:fixed;right:22px;top:20px;width:48px;height:48px;border:0;border-radius:16px;background:#ffcc4d;color:#10283b;font-size:32px;font-weight:900;cursor:pointer;z-index:10001;line-height:1;}
.task-worker-big{margin-top:18px;display:inline-flex;align-items:center;gap:14px;flex-wrap:wrap;padding:14px 18px;border-radius:18px;background:linear-gradient(135deg,#edfff4,#ffffff);border:1px solid #bfe6ca;box-shadow:0 12px 28px rgba(36,65,92,.10);}
.task-worker-big span{font-weight:900;color:#55708a;text-transform:uppercase;letter-spacing:.04em;font-size:12px;}
.task-worker-big strong{font-size:28px;line-height:1;color:#12304a;}
@media(max-width:820px){.property-card{padding-right:18px!important;padding-top:170px!important;}.property-thumb{left:18px;right:auto;top:18px;width:calc(100% - 36px);height:135px;}.property-actions{display:grid;grid-template-columns:1fr 1fr 1fr;}.property-actions .btn{width:100%;justify-content:center;text-align:center;}.task-worker-big{display:flex;}.task-worker-big strong{font-size:24px;}}
@media(max-width:520px){.property-actions{grid-template-columns:1fr;}.property-card{padding-top:160px!important;}.property-thumb{height:125px;}.task-worker-big strong{font-size:22px;}}

/* v45: clean property thumbnail placement and modal photo replacement */
.property-card{padding-right:230px!important;padding-bottom:88px!important;min-height:260px!important;}
.property-card .property-thumb{position:absolute!important;right:18px!important;left:auto!important;top:66px!important;width:170px!important;height:128px!important;z-index:4!important;}
.property-card .property-thumb-empty{background:#f3f8fc!important;color:#2d5d8d!important;border:2px dashed #b7d1e6!important;box-shadow:none!important;}
.property-card .property-thumb-empty small{color:#2d5d8d!important;font-weight:900!important;line-height:1.15!important;}
.property-card .property-thumb-empty span{background:#2d5d8d!important;color:#fff!important;}
.property-card .property-actions{margin-top:12px!important;display:flex!important;align-items:center!important;gap:8px!important;max-width:240px!important;}
.property-card .property-actions .btn{min-height:34px!important;line-height:1!important;}
.property-card .property-upload-form{display:none!important;}
.property-modal-upload-form{position:absolute;left:50%;bottom:28px;transform:translateX(-50%);z-index:10002;margin:0;}
.property-modal-upload-form input[type="file"]{display:none;}
.property-modal-upload-form .btn{background:#ffd15c!important;color:#10283b!important;border:0!important;box-shadow:0 12px 28px rgba(0,0,0,.25);}
.property-photo-box{position:relative;display:flex;align-items:center;justify-content:center;max-width:96vw;max-height:92vh;padding-bottom:74px;}
.property-photo-box img{max-width:96vw;max-height:calc(92vh - 74px);object-fit:contain;border-radius:18px;box-shadow:0 28px 90px rgba(0,0,0,.48);}
.property-photo-modal>img{display:none!important;}
@media(max-width:820px){.property-card{padding-right:18px!important;padding-top:220px!important;min-height:390px!important;}.property-card .property-thumb{left:18px!important;right:auto!important;top:58px!important;width:calc(100% - 36px)!important;height:145px!important;}.property-card .property-actions{max-width:none!important;display:grid!important;grid-template-columns:1fr 1fr!important;}.property-card .property-actions .btn{width:100%!important;}.property-photo-box{width:100%;}.property-modal-upload-form{bottom:18px;width:calc(100% - 36px);}.property-modal-upload-form .btn{width:100%;}}

/* v46: keep the property card clickable while thumbnail/buttons keep their own actions */
.property-card[data-open-url]{cursor:pointer;}
.property-card[data-open-url] .property-thumb,
.property-card[data-open-url] .property-actions,
.property-card[data-open-url] .property-edit-form{cursor:default;}

/* v47: mobile thumbnail upload form fix and duplicate-card layout stability */
.property-thumb-form{position:absolute!important;right:18px!important;top:66px!important;width:170px!important;height:128px!important;z-index:5!important;margin:0!important;display:block!important;}
.property-thumb-form .property-thumb{position:static!important;width:100%!important;height:100%!important;}
@media(max-width:820px){.property-thumb-form{left:18px!important;right:auto!important;top:58px!important;width:calc(100% - 36px)!important;height:145px!important;}.property-thumb-form .property-thumb{width:100%!important;height:100%!important;}}
@media(max-width:520px){.property-thumb-form{height:125px!important;}}

/* v48: dashboard properties are real properties, not duplicate business rows */
.dashboard-page .business-grid{grid-template-columns:repeat(auto-fit,minmax(420px,1fr));}
.dashboard-page .property-card{min-width:0;}
@media(max-width:900px){.dashboard-page .business-grid{grid-template-columns:1fr!important;}}
@media(max-width:520px){.dashboard-page .property-card{min-height:390px!important;}}

/* v55 rebuilt property thumbnail uploader */
.property-thumb.is-uploading{position:absolute;right:18px;top:18px;width:170px;height:128px;border:0;border-radius:20px;overflow:hidden;background:#eef5fb;display:flex;align-items:center;justify-content:center;}
.property-thumb.is-uploading em{position:absolute;left:0;right:0;bottom:0;padding:7px 8px;background:rgba(8,25,38,.72);color:#fff;font-style:normal;font-weight:900;font-size:12px;text-align:center;}
.property-hero-with-thumb{position:relative;overflow:hidden;padding-right:270px!important;}
.property-hero-thumb{position:absolute;right:22px;top:22px;width:220px;height:170px;object-fit:cover;border-radius:28px;box-shadow:0 18px 40px rgba(7,22,34,.25);border:4px solid rgba(255,255,255,.25);z-index:2;}
@media(max-width:820px){.property-hero-with-thumb{padding-right:22px!important;padding-top:210px!important}.property-hero-thumb{left:22px;right:auto;top:22px;width:calc(100% - 44px);height:165px}.property-thumb.is-uploading{left:18px;right:auto;top:18px;width:calc(100% - 36px);height:135px}}

/* v58: new property cover system - no old dashed upload box */
.property-card-v58{padding-right:230px!important;padding-bottom:88px!important;min-height:260px!important;}
.property-card-v58 .property-thumb-form,
.property-card-v58 .property-thumb-empty,
.property-card-v58 .new-thumb-button{display:none!important;}
.property-card-v58 .property-cover-form{display:block!important;position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important;}
.property-card-v58 .property-cover-form input[type="file"]{display:block!important;}
.property-card-v58 .property-cover-slot{position:absolute!important;right:18px!important;top:66px!important;width:170px!important;height:128px!important;z-index:4!important;}
.property-card-v58 .property-cover-image{position:static!important;display:block!important;width:100%!important;height:100%!important;border:0!important;border-radius:20px!important;overflow:hidden!important;background:#eef5fb!important;box-shadow:0 12px 28px rgba(7,22,34,.22)!important;cursor:pointer!important;padding:0!important;}
.property-card-v58 .property-cover-image img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;}
.property-card-v58 .property-cover-placeholder{width:100%!important;height:100%!important;border-radius:20px!important;background:linear-gradient(135deg,rgba(255,204,77,.28),rgba(255,255,255,.14))!important;border:1px solid rgba(255,255,255,.30)!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:8px!important;color:#fff!important;text-align:center!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)!important;}
.property-card-v58 .property-cover-placeholder span{width:48px!important;height:48px!important;border-radius:16px!important;background:#ffcc4d!important;color:#10283b!important;display:grid!important;place-items:center!important;font-weight:1000!important;letter-spacing:.03em!important;}
.property-card-v58 .property-cover-placeholder strong{font-size:13px!important;color:#fff!important;}
.property-card-v58 .cover-upload-label{background:#ffcc4d!important;color:#10283b!important;border:0!important;cursor:pointer!important;}
.property-card-v58 .property-cover-image.is-uploading{position:relative!important;}
.property-card-v58 .property-cover-image.is-uploading em{position:absolute;left:0;right:0;bottom:0;padding:7px 8px;background:rgba(8,25,38,.72);color:#fff;font-style:normal;font-weight:900;font-size:12px;text-align:center;}
@media(max-width:820px){.property-card-v58{padding-right:18px!important;padding-top:220px!important;min-height:390px!important;}.property-card-v58 .property-cover-slot{left:18px!important;right:auto!important;top:58px!important;width:calc(100% - 36px)!important;height:145px!important;}.property-card-v58 .property-actions{max-width:none!important;display:grid!important;grid-template-columns:1fr 1fr!important;}}
@media(max-width:520px){.property-card-v58 .property-cover-slot{height:125px!important;}.property-card-v58 .property-actions{grid-template-columns:1fr!important;}}

/* v63: compressed task thumbnails for fast dashboard loading */
.completed-photo-table .task-row-thumb{width:58px!important;height:58px!important;max-width:58px!important;max-height:58px!important;object-fit:cover!important;border-radius:10px!important;display:block!important;background:#eef5fb!important;}
.completed-photo-table .task-row-thumb.empty{display:grid!important;place-items:center!important;font-size:18px!important;border:1px solid #d5e5f1!important;}
.completed-photo-table td:first-child{width:76px!important;min-width:76px!important;}


/* v66: modern private login, no notebook/demo credentials */
.modern-login-wrap{
  min-height:calc(100vh - 76px)!important;
  display:grid!important;
  place-items:center!important;
  padding:30px 16px!important;
  background:
    radial-gradient(circle at 25% 10%, rgba(255,209,92,.22), transparent 30%),
    radial-gradient(circle at 78% 22%, rgba(45,93,141,.22), transparent 34%),
    linear-gradient(180deg,#edf6fb,#e6f0f7)!important;
}
.modern-login{
  width:min(430px,100%)!important;
  padding:34px!important;
  border-radius:28px!important;
  border:1px solid rgba(255,255,255,.72)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(244,249,253,.92))!important;
  box-shadow:0 28px 80px rgba(20,50,76,.20)!important;
  position:relative!important;
  overflow:hidden!important;
}
.modern-login:before{
  content:""!important;
  position:absolute!important;
  inset:0 0 auto 0!important;
  height:8px!important;
  background:linear-gradient(90deg,#ffd15c,#2d5d8d,#4caf77)!important;
  border-left:0!important;
  opacity:1!important;
}
.modern-login .pin{display:none!important;}
.modern-login .login-logo{
  width:58px;height:58px;border-radius:18px;background:#ffd15c;color:#10283b;
  display:grid;place-items:center;font-weight:950;margin-bottom:18px;box-shadow:0 14px 28px rgba(255,209,92,.35);
}
.modern-login h1{margin:0 0 8px!important;font-size:36px!important;letter-spacing:-.04em!important;color:#10283b!important;}
.modern-login p{margin:0 0 24px!important;color:#5c7183!important;font-weight:700!important;line-height:1.45!important;}
.modern-login label{display:block;margin:16px 0 7px!important;color:#10283b!important;font-weight:900!important;}
.modern-login input{
  width:100%!important;border:1px solid #d5e2ec!important;border-radius:16px!important;padding:15px 16px!important;
  background:#fff!important;color:#10283b!important;font-size:16px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)!important;
}
.modern-login input:focus{outline:3px solid rgba(45,93,141,.16)!important;border-color:#2d5d8d!important;}
.modern-login .btn{width:100%!important;margin:24px 0 0!important;min-height:52px!important;border-radius:16px!important;background:#1e3b55!important;color:#fff!important;box-shadow:0 14px 28px rgba(30,59,85,.24)!important;}
.modern-login .alert{margin:14px 0!important;border:1px solid #ffc7c7!important;background:#fff0f0!important;color:#9b1c1c!important;font-weight:800!important;}

/* v68: clean property actions behind a settings gear */
.property-card .property-settings{
  position:absolute!important;
  top:18px!important;
  right:18px!important;
  z-index:20!important;
}
.property-card .property-settings-toggle{
  width:42px!important;
  height:42px!important;
  border:0!important;
  border-radius:14px!important;
  display:grid!important;
  place-items:center!important;
  background:#ffcc4d!important;
  color:#10283b!important;
  font-size:20px!important;
  font-weight:1000!important;
  cursor:pointer!important;
  box-shadow:0 10px 24px rgba(0,0,0,.22)!important;
  transition:transform .18s ease, box-shadow .18s ease!important;
}
.property-card .property-settings-toggle:hover{transform:translateY(-1px) rotate(18deg)!important;box-shadow:0 14px 30px rgba(0,0,0,.28)!important;}
.property-card .property-settings-menu{
  position:absolute!important;
  top:50px!important;
  right:0!important;
  width:190px!important;
  max-width:190px!important;
  display:none!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
  padding:10px!important;
  margin:0!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.96)!important;
  border:1px solid rgba(209,224,238,.95)!important;
  box-shadow:0 18px 42px rgba(5,20,33,.28)!important;
  backdrop-filter:blur(10px)!important;
}
.property-card .property-settings.is-open .property-settings-menu{display:grid!important;}
.property-card .property-settings-menu .btn{
  width:100%!important;
  min-height:38px!important;
  justify-content:center!important;
  text-align:center!important;
  border-radius:12px!important;
  font-size:12px!important;
  padding:10px 12px!important;
}
.property-card .property-settings-menu .cover-upload-label{background:#ffcc4d!important;color:#10283b!important;}
.property-card .property-settings-menu .edit-property-btn{background:#f3f6f9!important;color:#10283b!important;}
.property-card .property-settings-menu a.btn{background:#2d6599!important;color:#fff!important;}
.property-card .property-actions:not(.property-settings-menu){display:none!important;}
@media(max-width:820px){
  .property-card .property-settings{top:18px!important;right:18px!important;}
  .property-card .property-settings-menu{width:178px!important;max-width:178px!important;}
}

/* v70: compact dashboard, one-line stats, badge next to settings gear */
.dashboard-page .section.dashboard-section{margin:22px 0 14px!important;}
.dashboard-page .business-grid{gap:16px!important;}
.dashboard-page .property-card-v58{
  min-height:235px!important;
  padding:60px 220px 28px 22px!important;
  border-radius:22px!important;
}
.dashboard-page .property-card-v58 h2{margin:10px 0 6px!important;font-size:28px!important;line-height:1.05!important;}
.dashboard-page .property-card-v58 p{margin:0 0 8px!important;font-weight:800!important;}
.dashboard-page .property-card-v58 .bar{margin:12px 0!important;height:9px!important;max-width:260px!important;}
.dashboard-page .property-card-v58 small{font-weight:900!important;}
.dashboard-page .property-card-v58 .property-cover-slot{top:58px!important;right:18px!important;width:170px!important;height:112px!important;}
.dashboard-page .property-card-v58>.badge{
  position:absolute!important;
  top:23px!important;
  right:72px!important;
  z-index:21!important;
  background:#edf5ff!important;
  border-color:#cce0f7!important;
  color:#6f95bd!important;
  box-shadow:0 8px 20px rgba(8,28,43,.12)!important;
}
.dashboard-page .property-card .property-settings{top:18px!important;right:18px!important;}
.dashboard-page .modern-stats{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:12px!important;
  margin-top:18px!important;
}
.dashboard-page .modern-stats .stat{
  min-height:92px!important;
  padding:12px 8px!important;
  border-radius:18px!important;
}
.dashboard-page .modern-stats .stat b{font-size:28px!important;line-height:1!important;}
.dashboard-page .modern-stats .stat span{font-size:13px!important;line-height:1.15!important;color:#fff!important;}
@media(max-width:820px){
  .dashboard-page .section.dashboard-section{margin:14px 0 12px!important;}
  .dashboard-page .business-grid{gap:12px!important;}
  .dashboard-page .property-card-v58{
    min-height:345px!important;
    padding:176px 14px 20px!important;
    border-radius:18px!important;
  }
  .dashboard-page .property-card-v58 .property-cover-slot{
    left:14px!important;
    right:auto!important;
    top:48px!important;
    width:calc(100% - 28px)!important;
    height:112px!important;
  }
  .dashboard-page .property-card-v58 h2{font-size:25px!important;margin:8px 0 6px!important;}
  .dashboard-page .property-card-v58 p{font-size:14px!important;margin-bottom:8px!important;}
  .dashboard-page .property-card-v58 .bar{margin:10px 0!important;max-width:none!important;}
  .dashboard-page .property-card-v58>.badge{
    top:15px!important;
    right:62px!important;
    padding:6px 10px!important;
    font-size:10px!important;
  }
  .dashboard-page .property-card .property-settings{top:10px!important;right:12px!important;}
  .dashboard-page .property-card .property-settings-toggle{width:36px!important;height:36px!important;border-radius:12px!important;font-size:17px!important;}
  .dashboard-page .property-card .property-settings-menu{top:44px!important;right:0!important;}
  .dashboard-page .modern-stats{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:7px!important;
    margin-top:12px!important;
  }
  .dashboard-page .modern-stats .stat{
    min-height:78px!important;
    padding:9px 4px!important;
    border-radius:14px!important;
  }
  .dashboard-page .modern-stats .stat b{font-size:23px!important;}
  .dashboard-page .modern-stats .stat span{font-size:10px!important;line-height:1.05!important;}
}
@media(max-width:380px){
  .dashboard-page .modern-stats{gap:5px!important;}
  .dashboard-page .modern-stats .stat{min-height:72px!important;padding:8px 3px!important;border-radius:12px!important;}
  .dashboard-page .modern-stats .stat b{font-size:20px!important;}
  .dashboard-page .modern-stats .stat span{font-size:9px!important;}
}

/* v71: property delete action + completed task period filter */
.property-settings-menu .delete-property-form{margin:0;width:100%;}
.property-settings-menu .delete-property-form .btn{width:100%;}
.property-settings-menu .danger{background:#e74c3c !important;color:#fff !important;border-color:#e74c3c !important;box-shadow:none;}
.completed-filter-panel{margin-top:24px;}
.completed-filter-panel .today{padding:16px;}
.completed-range-filter{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:16px;}
.range-filter-btn{border:1px solid #cfe0ee;background:#fff;border-radius:14px;padding:11px 12px;min-height:54px;display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;font-weight:900;color:#12324d;box-shadow:0 8px 20px rgba(36,65,92,.08);}
.range-filter-btn span{font-size:13px;line-height:1.15;text-align:left;}
.range-filter-btn b{min-width:34px;height:34px;border-radius:12px;display:grid;place-items:center;background:#2d5d8d;color:#fff;font-size:15px;}
.range-filter-btn.active{background:#eafff2;border-color:#47c878;box-shadow:0 10px 24px rgba(71,200,120,.18);}
.range-filter-btn.active b{background:#47b877;}
.completed-period{display:none;}
.completed-period.active{display:block;}
.period-title{margin:6px 0 12px;font-size:18px;color:#12324d;}
.completed-filter-panel .worker-summary{margin-bottom:12px;}
@media(max-width:720px){
  .completed-range-filter{grid-template-columns:1fr 1fr;gap:8px;}
  .range-filter-btn{min-height:48px;padding:9px 10px;border-radius:12px;}
  .range-filter-btn span{font-size:12px;}
  .range-filter-btn b{min-width:30px;height:30px;border-radius:10px;font-size:13px;}
  .completed-filter-panel .today{padding:12px;}
}
@media(max-width:380px){.completed-range-filter{grid-template-columns:1fr;}}

/* v72: clean Laxto-style completed filter dropdown + fixed worker cards */
.completed-filter-panel .today{overflow:visible!important;}
.completed-range-dropdown{position:relative;margin:0 0 14px;max-width:100%;}
.completed-filter-toggle{width:100%;min-height:52px;border:1px solid #bfe3fb;background:linear-gradient(135deg,#2d5d8d,#12324d);color:#fff;border-radius:16px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;font-weight:900;box-shadow:0 12px 30px rgba(18,50,77,.16);}
.completed-filter-toggle .filter-toggle-label{font-size:14px;text-align:left;line-height:1.1;}
.completed-filter-toggle .filter-toggle-count{min-width:34px;height:34px;border-radius:12px;background:#4cc478;color:#fff;display:grid;place-items:center;font-size:14px;box-shadow:0 8px 18px rgba(76,196,120,.25);}
.completed-filter-toggle i{font-style:normal;opacity:.9;transition:.18s;}
.completed-filter-toggle[aria-expanded="true"] i{transform:rotate(180deg);}
.completed-filter-menu{position:absolute;z-index:25;left:0;right:0;top:calc(100% + 8px);display:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;background:rgba(12,31,49,.96);border:1px solid rgba(143,190,231,.35);border-radius:18px;padding:10px;box-shadow:0 22px 50px rgba(0,0,0,.28);backdrop-filter:blur(8px);}
.completed-filter-menu.is-open{display:grid!important;}
.completed-filter-menu .range-filter-btn{min-height:46px;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:#fff;box-shadow:none;padding:9px 10px;}
.completed-filter-menu .range-filter-btn span{font-size:12px;color:#fff;}
.completed-filter-menu .range-filter-btn b{min-width:28px;height:28px;border-radius:10px;background:#2d5d8d;color:#fff;font-size:12px;}
.completed-filter-menu .range-filter-btn.active{background:linear-gradient(135deg,#eafff2,#ffffff);color:#12324d;border-color:#54d484;box-shadow:0 8px 22px rgba(84,212,132,.22);}
.completed-filter-menu .range-filter-btn.active span{color:#12324d;}
.completed-filter-menu .range-filter-btn.active b{background:#47b877;color:#fff;}
.completed-range-filter{display:none!important;}
.completed-filter-panel .worker-summary{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0 14px!important;}
.completed-filter-panel .worker-card{display:grid!important;grid-template-columns:1fr auto;align-items:center;gap:8px;background:#fff;border:1px solid #d3e6f6;border-radius:14px;padding:8px;box-shadow:0 8px 18px rgba(36,65,92,.07);}
.completed-filter-panel .worker-card .worker-filter{border:0;background:transparent;padding:0;display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;cursor:pointer;color:#12324d;text-align:left;font-weight:900;}
.completed-filter-panel .worker-card .worker-filter .worker-label,
.completed-filter-panel .worker-card .worker-filter span{font-size:12px;line-height:1.12;}
.completed-filter-panel .worker-card .worker-filter strong{display:block;color:#08a34a;font-size:16px;line-height:1.05;}
.completed-filter-panel .worker-card .worker-filter b{min-width:34px;height:34px;border-radius:12px;display:grid;place-items:center;background:#2d5d8d;color:#fff;font-size:14px;}
.completed-filter-panel .worker-card .worker-filter.active b{background:#47b877;}
.completed-filter-panel .worker-card:has(.worker-filter.active){background:#eafff2;border-color:#47c878;}
.completed-filter-panel .worker-pdf-link{height:38px;min-width:46px;border-radius:12px;background:#123a5d;color:#fff!important;text-decoration:none;display:grid;place-items:center;font-size:12px;font-weight:1000;box-shadow:0 8px 18px rgba(18,58,93,.18);}
.completed-filter-panel .all-worker-card{border-color:#47c878;background:#eafff2;}
.completed-filter-panel .all-worker-card .worker-filter span{font-size:13px;}
@media(max-width:720px){
  .completed-filter-menu{grid-template-columns:1fr;}
  .completed-filter-panel .worker-summary{grid-template-columns:1fr!important;gap:8px;}
  .completed-filter-panel .worker-card{grid-template-columns:1fr auto;padding:8px 9px;}
  .completed-filter-panel .worker-pdf-link{height:36px;min-width:44px;}
}


/* v73: compact property settings menu + restore friendly card actions */
.dashboard-page .property-card .property-settings-toggle{
  width:32px!important;
  height:32px!important;
  border-radius:11px!important;
  font-size:15px!important;
  box-shadow:0 8px 18px rgba(0,0,0,.18)!important;
}
.dashboard-page .property-card .property-settings-menu{
  top:38px!important;
  width:142px!important;
  max-width:142px!important;
  padding:7px!important;
  gap:5px!important;
  border-radius:14px!important;
}
.dashboard-page .property-card .property-settings-menu .btn{
  min-height:29px!important;
  padding:7px 8px!important;
  font-size:10.5px!important;
  border-radius:9px!important;
  line-height:1!important;
}
.dashboard-page .property-settings-menu .delete-property-form .btn{min-height:29px!important;}
.dashboard-page .property-card[data-open-url]{cursor:pointer!important;}
.dashboard-page .property-cover-image{cursor:zoom-in!important;}
.property-photo-modal{position:fixed;inset:0;background:rgba(5,17,27,.88);z-index:10000;display:none;align-items:center;justify-content:center;padding:18px;}
.property-photo-modal.open{display:flex!important;}
.property-photo-box{position:relative;display:flex;align-items:center;justify-content:center;max-width:96vw;max-height:92vh;padding:0!important;}
.property-photo-box img{max-width:96vw;max-height:92vh;object-fit:contain;border-radius:18px;box-shadow:0 28px 90px rgba(0,0,0,.48);}
.property-photo-close{position:fixed;right:18px;top:18px;width:46px;height:46px;border:0;border-radius:15px;background:#ffcc4d;color:#10283b;font-size:30px;font-weight:1000;cursor:pointer;z-index:10001;line-height:1;}
@media(max-width:820px){
  .dashboard-page .property-card .property-settings{top:10px!important;right:10px!important;}
  .dashboard-page .property-card .property-settings-toggle{width:30px!important;height:30px!important;border-radius:10px!important;font-size:14px!important;}
  .dashboard-page .property-card .property-settings-menu{top:35px!important;width:132px!important;max-width:132px!important;padding:6px!important;gap:5px!important;}
  .dashboard-page .property-card .property-settings-menu .btn{min-height:27px!important;padding:6px 7px!important;font-size:10px!important;border-radius:8px!important;}
  .dashboard-page .property-card-v58>.badge{right:48px!important;}
}
