/* Dayditto unified nav — desktop + mobile, blue / white premium */

/* Center column: stream + banner must not compete with rail as loose flex siblings */
.dd-main-work{
  flex:1;
  min-width:0;
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.dd-nav-rail{
  width:72px;flex-shrink:0;min-height:0;
  display:flex;flex-direction:column;align-items:center;
  padding:14px 0 calc(14px + env(safe-area-inset-bottom,0px));
  gap:10px;
  background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);
  border-right:1px solid rgba(30,58,95,.1);
  box-shadow:4px 0 24px rgba(15,23,42,.04);
  z-index:220;
  align-self:stretch;
}
.dd-nav-item{
  width:52px;height:52px;border-radius:16px;border:1px solid rgba(37,99,235,.12);
  background:#fff;color:#475569;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:2px;cursor:pointer;font-family:'Plus Jakarta Sans',sans-serif;
  box-shadow:0 2px 8px rgba(15,32,64,.06);
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease,color .18s ease;
}
.dd-nav-item:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(37,99,235,.12);border-color:rgba(37,99,235,.25);color:#2563eb;}
.dd-nav-item:active{transform:scale(.96);}
.dd-nav-item.act{
  background:linear-gradient(145deg,#2563eb,#1d4ed8);
  color:#fff;border-color:transparent;
  box-shadow:0 8px 22px rgba(37,99,235,.35),inset 0 1px 0 rgba(255,255,255,.2);
}
.dd-nav-ic{font-size:18px;line-height:1;}
.dd-nav-lbl{font-size:8px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;opacity:.92;}

.dd-nav-scrim{
  display:none;position:fixed;inset:0;background:rgba(10,22,40,.38);
  backdrop-filter:blur(3px);z-index:230;
}
body.dd-planner-open .dd-scrim-planner,
body.dd-add-open .dd-scrim-add,
body.dd-settings-open .dd-scrim-settings{display:block;}

.dd-planner-panel,.dd-add-panel,.dd-settings-panel{
  position:fixed;z-index:240;
  background:linear-gradient(165deg,#fff 0%,#f8fafc 55%);
  border:1px solid rgba(30,58,95,.1);
  box-shadow:0 24px 48px rgba(15,23,42,.14);
  display:flex;flex-direction:column;
  overflow:hidden;
  transform:translateX(-110%);
  opacity:0;pointer-events:none;
  transition:transform .32s cubic-bezier(.22,1,.36,1),opacity .22s ease;
}
body.dd-planner-open .dd-planner-panel,
body.dd-add-open .dd-add-panel,
body.dd-settings-open .dd-settings-panel{
  transform:translateX(0);opacity:1;pointer-events:auto;
}

/* Desktop: flyouts from left beside rail */
@media (min-width:901px){
  .dd-planner-panel{
    left:84px;
    top:14px;
    bottom:auto;
    width:148px;
    max-height:calc(100vh - 28px);
    padding:10px 8px;
    border-radius:30px;
    background:#fff;
    box-shadow:0 25px 60px rgba(15,23,42,.16),0 2px 8px rgba(15,23,42,.08);
    border:1px solid rgba(15,23,42,.06);
  }
  .dd-add-panel,.dd-settings-panel{
    left:84px;
    top:14px;
    bottom:auto;
    width:min(290px,calc(100vw - 108px));
    max-height:calc(100vh - 28px);
    padding:14px;
    border-radius:30px;
    background:#fff;
    box-shadow:0 25px 60px rgba(15,23,42,.16),0 2px 8px rgba(15,23,42,.08);
    border:1px solid rgba(15,23,42,.06);
  }
  .dd-planner-panel .dd-panel-head{
    padding:0 0 4px;
    border-bottom:none;
    justify-content:flex-start;
  }
  .dd-planner-panel .dd-panel-title{display:none;}
  .dd-planner-panel .dd-panel-close{
    margin-left:0;
    width:32px;
    height:32px;
    border-radius:12px;
    background:#f1f5f9;
    color:#0f172a;
    font-size:18px;
  }
  .dd-planner-panel .dd-pl-list{
    padding:0;
    gap:4px;
    overflow-y:auto;
    overflow-x:hidden;
  }
  .dd-planner-panel .dd-pl-src{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:0;
    padding:12px 6px;
    border-radius:18px;
    border:1px solid transparent;
    background:transparent;
    box-shadow:none;
    text-align:center;
  }
  .dd-planner-panel .dd-pl-src:hover{
    background:#eff6ff;
    border-color:transparent;
    transform:none;
    box-shadow:none;
  }
  .dd-planner-panel .dd-pl-src.act{
    background:linear-gradient(180deg,#eff6ff 0%,#dbeafe 100%);
    border-color:rgba(37,99,235,.18);
    box-shadow:none;
  }
  .dd-planner-panel .dd-pl-ico{
    width:auto;
    height:auto;
    background:transparent;
    border-radius:0;
    font-size:22px;
    line-height:1;
  }
  .dd-planner-panel .dd-pl-src.act .dd-pl-ico{background:transparent;}
  .dd-planner-panel .dd-pl-txt{
    align-items:center;
    gap:0;
  }
  .dd-planner-panel .dd-pl-name{
    margin-top:7px;
    font-size:10px;
    font-weight:800;
    color:#0f172a;
    text-transform:uppercase;
    letter-spacing:.08em;
  }
  .dd-planner-panel .dd-pl-sub{
    margin-top:2px;
    font-size:9px;
    line-height:1.3;
    text-align:center;
    color:#64748b;
  }
  .dd-add-panel .dd-panel-head,.dd-settings-panel .dd-panel-head{
    padding:0 0 10px;
    border-bottom:none;
  }
  .dd-add-panel .dd-panel-title,.dd-settings-panel .dd-panel-title{
    font-size:13px;
    font-weight:800;
    color:#0f172a;
    letter-spacing:.02em;
  }
  .dd-add-panel .dd-panel-close,.dd-settings-panel .dd-panel-close{
    width:34px;
    height:34px;
    border-radius:12px;
    background:#f1f5f9;
    color:#0f172a;
    font-size:18px;
  }
}

/* Mobile: bottom sheets — planner .main is column; rail becomes bottom strip */
@media (max-width:900px){
  .main .dd-nav-rail{
    width:100%;
    flex-direction:row;
    justify-content:space-evenly;
    align-items:center;
    order:100;
    padding:8px 6px calc(8px + env(safe-area-inset-bottom,0px));
    border-right:none;
    border-top:1px solid rgba(30,58,95,.1);
    min-height:0;
  }
  .main .dd-nav-item{
    flex:0 0 auto;
    width:52px;
    height:48px;
  }
  .dd-planner-panel,.dd-add-panel,.dd-settings-panel{
    left:8px;right:8px;bottom:8px;max-height:78vh;height:auto;
    border-radius:22px 22px 18px 18px;
    transform:translateY(110%);
  }
  body.dd-planner-open .dd-planner-panel,
  body.dd-add-open .dd-add-panel,
  body.dd-settings-open .dd-settings-panel{transform:translateY(0);}
}

.dd-panel-head{
  padding:16px 18px 12px;border-bottom:1px solid rgba(30,58,95,.08);
  display:flex;align-items:center;gap:10px;flex-shrink:0;
}
.dd-panel-title{font-size:16px;font-weight:800;color:#1e3a8a;letter-spacing:-.02em;}
.dd-panel-close{
  margin-left:auto;width:36px;height:36px;border-radius:50%;border:none;
  background:#f1f5f9;color:#64748b;font-size:20px;line-height:1;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:background .15s,color .15s;
}
.dd-panel-close:hover{background:#e2e8f0;color:#0f172a;}

.dd-pl-list{padding:10px 12px 18px;overflow-y:auto;flex:1;min-height:0;
  display:flex;flex-direction:column;gap:6px;scrollbar-width:none;-ms-overflow-style:none;}
.dd-pl-src{
  display:flex;align-items:center;gap:14px;padding:12px 14px;border-radius:14px;
  border:1px solid transparent;background:#fff;cursor:pointer;text-align:left;
  font-family:'Plus Jakarta Sans',sans-serif;
  box-shadow:0 1px 4px rgba(15,23,42,.05);
  transition:background .15s,transform .12s ease,border-color .15s,box-shadow .15s;
}
.dd-pl-src:hover{background:#eff6ff;border-color:rgba(37,99,235,.2);transform:translateX(2px);}
.dd-pl-src.act{
  background:linear-gradient(90deg,#eff6ff,#dbeafe);
  border-color:rgba(37,99,235,.35);
  box-shadow:0 4px 14px rgba(37,99,235,.15);
}
.dd-pl-ico{width:36px;height:36px;border-radius:12px;background:#f8fafc;
  display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0;}
.dd-pl-src.act .dd-pl-ico{background:#fff;}
.dd-pl-txt{display:flex;flex-direction:column;gap:1px;min-width:0;}
.dd-pl-name{font-size:14px;font-weight:700;color:#0f172a;}
.dd-pl-sub{font-size:11px;color:#64748b;font-weight:500;}

.dd-add-body,.dd-settings-body{padding:12px 14px 20px;overflow-y:auto;flex:1;min-height:0;scrollbar-width:none;-ms-overflow-style:none;}
.dd-pl-list::-webkit-scrollbar,
.dd-add-body::-webkit-scrollbar,
.dd-settings-body::-webkit-scrollbar{display:none;width:0;height:0;}
.dd-add-card,.dd-set-row{
  padding:14px 16px;border-radius:16px;background:#fff;
  border:1px solid rgba(30,58,95,.08);
  box-shadow:0 2px 10px rgba(15,23,42,.05);
  margin-bottom:10px;
}
.dd-add-card h4{font-size:13px;font-weight:800;color:#1e3a8a;margin-bottom:6px;}
.dd-add-card p{font-size:12px;color:#64748b;line-height:1.5;margin-bottom:10px;}
.dd-btn-prim{
  width:100%;padding:11px 14px;border-radius:12px;border:none;
  background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;font-weight:700;
  font-size:13px;cursor:pointer;font-family:inherit;
  box-shadow:0 6px 16px rgba(37,99,235,.3);
  transition:filter .15s,transform .12s;
}
.dd-btn-prim:hover{filter:brightness(1.05);}
.dd-btn-prim:active{transform:scale(.98);}
.dd-btn-ghost{
  width:100%;margin-top:8px;padding:10px;border-radius:12px;border:1px solid rgba(37,99,235,.25);
  background:#fff;color:#2563eb;font-weight:700;font-size:13px;cursor:pointer;font-family:inherit;
}
.dd-invite-code{font-family:ui-monospace,monospace;font-size:20px;font-weight:800;letter-spacing:.15em;
  text-align:center;padding:12px;background:#f8fafc;border-radius:12px;color:#1d4ed8;margin:8px 0;}
.dd-invite-meta{font-size:11px;color:#94a3b8;text-align:center;}
.dd-inp{
  width:100%;padding:12px 14px;border-radius:12px;border:1px solid #e2e8f0;
  font-size:15px;font-family:inherit;margin-top:8px;
}
.dd-set-row{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  cursor:pointer;transition:background .15s;
}
.dd-set-row:hover{background:#f8fafc;}
.dd-set-row span:first-child{font-weight:700;font-size:14px;color:#334155;}
.dd-set-chev{color:#94a3b8;font-size:18px;}

@media (min-width:901px){
  .dd-add-body,.dd-settings-body{
    padding:0;
  }
  .dd-add-card,.dd-set-row{
    background:#f8fafc;
    border-radius:20px;
    border:1px solid rgba(15,23,42,.04);
    box-shadow:none;
    margin-bottom:8px;
  }
  .dd-set-row:hover{
    background:#eff6ff;
  }
}

/* Add page view */
.dd-add-view{
  flex:1;
  min-height:0;
  overflow:hidden;
}
.dd-add-view-screen{
  position:relative;
  flex:1;
  min-height:0;
  overflow:auto;
  padding:28px clamp(20px,3vw,36px);
  border-radius:34px;
  border:1px solid rgba(219,234,254,.75);
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.20), transparent 26%),
    radial-gradient(circle at top right, rgba(96,165,250,.18), transparent 24%),
    radial-gradient(circle at bottom left, rgba(184,216,232,.28), transparent 28%),
    linear-gradient(135deg,#f7fbff 0%,#eef6ff 45%,#ffffff 100%);
  box-shadow:0 30px 80px rgba(37,99,235,.14);
  display:flex;
  align-items:stretch;
  justify-content:center;
}
.dd-add-view-screen{scrollbar-width:none;-ms-overflow-style:none;}
.dd-add-view-screen::-webkit-scrollbar{display:none;width:0;height:0;}
.dd-add-view-shell{
  width:min(520px,calc(100% - 240px));
  max-height:100%;
  display:flex;
  flex-direction:column;
  position:relative;
  z-index:2;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(24px);
  border:1px solid rgba(255,255,255,.7);
  border-radius:34px;
  overflow:hidden;
  box-shadow:0 25px 70px rgba(37,99,235,.14);
  margin:0 auto;
  align-self:stretch;
}
@media (max-width:1100px){
  .dd-add-float{
    display:none;
  }
  .dd-add-view-shell{
    width:min(560px,100%);
  }
  .dd-user-actions{
    width:100%;
  }
  .dd-user-actions .dd-btn-light{
    flex:1 1 140px;
  }
}

/* Add panel full-page screen */
body.dd-add-open .dd-scrim-add{display:none !important;}
.dd-add-panel{
  left:92px;
  right:368px;
  top:74px;
  bottom:16px;
  width:auto;
  max-height:none;
  padding:24px;
  border-radius:34px;
  border:1px solid rgba(219,234,254,.75);
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.20), transparent 26%),
    radial-gradient(circle at top right, rgba(96,165,250,.18), transparent 24%),
    radial-gradient(circle at bottom left, rgba(184,216,232,.28), transparent 28%),
    linear-gradient(135deg,#f7fbff 0%,#eef6ff 45%,#ffffff 100%);
  box-shadow:0 30px 80px rgba(37,99,235,.14);
  overflow:hidden;
  display:flex;
  align-items:stretch;
  justify-content:flex-start;
  backdrop-filter:none;
  transform:translateY(24px) scale(.98);
  opacity:0;
}
body.dd-add-open .dd-add-panel{
  transform:translateY(0) scale(1);
  opacity:1;
}
.dd-add-grid-bg{
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(37,99,235,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.03) 1px, transparent 1px);
  background-size:40px 40px;
  z-index:0;
  pointer-events:none;
}
.dd-add-blob{
  position:absolute;
  border-radius:50%;
  filter:blur(70px);
  z-index:0;
  pointer-events:none;
}
.dd-add-blob-a{
  width:280px;
  height:280px;
  background:rgba(37,99,235,.18);
  top:-80px;
  left:-40px;
}
.dd-add-blob-b{
  width:340px;
  height:340px;
  background:rgba(96,165,250,.14);
  right:-100px;
  top:120px;
}
.dd-add-blob-c{
  width:260px;
  height:260px;
  background:rgba(184,216,232,.25);
  bottom:-60px;
  left:30%;
}
.dd-add-float{
  position:absolute;
  width:min(172px,calc(100% - 40px));
  background:rgba(255,255,255,.55);
  backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,.6);
  box-shadow:0 10px 30px rgba(37,99,235,.08);
  border-radius:24px;
  padding:14px 16px;
  z-index:1;
  pointer-events:none;
}
.dd-add-float h4{
  font-size:13px;
  color:#172033;
  margin:0;
}
.dd-add-float p{
  margin-top:4px;
  font-size:11px;
  color:#667085;
}
.dd-add-float-a{
  top:48px;
  right:20px;
}
.dd-add-float-b{
  bottom:46px;
  right:20px;
}
.dd-add-float-c{
  top:50%;
  right:20px;
  transform:translateY(-50%);
}
.dd-add-page-shell{
  width:min(430px,calc(100% - 150px));
  max-height:100%;
  display:flex;
  flex-direction:column;
  position:relative;
  z-index:2;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(24px);
  border:1px solid rgba(255,255,255,.7);
  border-radius:34px;
  overflow:hidden;
  box-shadow:0 25px 70px rgba(37,99,235,.14);
  margin-right:auto;
  align-self:stretch;
}
.dd-add-panel .dd-panel-head,
.dd-add-view-shell .dd-panel-head{
  padding:24px 24px 18px;
  border-bottom:1px solid rgba(219,234,254,.8);
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  width:100%;
}
.dd-add-panel .dd-panel-title-wrap,
.dd-add-view-shell .dd-panel-title-wrap{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}
.dd-add-panel .dd-panel-title,
.dd-add-view-shell .dd-panel-title{
  font-size:24px;
  font-weight:800;
  color:#172033;
  letter-spacing:-.04em;
  margin:0;
}
.dd-add-panel .dd-panel-sub,
.dd-add-view-shell .dd-panel-sub{
  font-size:13px;
  line-height:1.55;
  color:#667085;
}
.dd-add-panel .dd-panel-close,
.dd-add-view-shell .dd-panel-close{
  width:40px;
  height:40px;
  border-radius:15px;
  background:rgba(255,255,255,.75);
  backdrop-filter:blur(10px);
  box-shadow:0 8px 20px rgba(37,99,235,.08);
  color:#475569;
}
.dd-add-panel .dd-add-body,
.dd-add-view-shell .dd-add-body{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:20px;
  overflow-y:auto;
  flex:1;
  min-height:0;
  width:100%;
}
.dd-add-panel .dd-add-card,
.dd-add-view-shell .dd-add-card{
  background:rgba(255,255,255,.85);
  border:1px solid rgba(219,234,254,.9);
  border-radius:24px;
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:14px;
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
  box-shadow:0 6px 24px rgba(15,23,42,.04);
  margin-bottom:0;
}
.dd-add-panel .dd-add-card:hover,
.dd-add-view-shell .dd-add-card:hover{
  transform:translateY(-3px);
  border-color:#93c5fd;
  box-shadow:0 18px 40px rgba(37,99,235,.10);
}
.dd-add-top{
  display:flex;
  gap:14px;
  align-items:flex-start;
}
.dd-add-icon{
  width:48px;
  height:48px;
  border-radius:18px;
  background:linear-gradient(135deg,rgba(37,99,235,.12),rgba(184,216,232,.28));
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:23px;
  flex-shrink:0;
}
.dd-add-copy{
  flex:1;
  min-width:0;
}
.dd-add-panel .dd-add-copy h4,
.dd-add-view-shell .dd-add-copy h4{
  font-size:15px;
  font-weight:700;
  color:#172033;
  margin:0 0 5px;
}
.dd-add-panel .dd-add-copy p,
.dd-add-view-shell .dd-add-copy p{
  font-size:12px;
  line-height:1.5;
  color:#667085;
  margin:0;
}
.dd-add-panel .dd-btn-prim,
.dd-add-view-shell .dd-btn-prim{
  border:none;
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
  color:#fff;
  border-radius:15px;
  padding:13px 14px;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  transition:transform .2s ease,filter .2s ease;
  box-shadow:0 12px 26px rgba(37,99,235,.20);
}
.dd-add-panel .dd-btn-prim:hover,
.dd-add-view-shell .dd-btn-prim:hover{
  filter:none;
  transform:translateY(-1px) scale(1.01);
}
.dd-add-code-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:stretch;
}
.dd-add-panel .dd-inp,
.dd-add-view-shell .dd-inp{
  flex:1;
  margin-top:0;
  border:1px solid #d0dff7;
  border-radius:14px;
  padding:15px 16px;
  min-height:54px;
  font-size:14px;
  outline:none;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(10px);
}
.dd-add-code-row .dd-btn-prim{
  width:auto;
  min-width:86px;
  min-height:54px;
  padding:0 16px;
  flex:0 0 auto;
  white-space:nowrap;
  align-self:stretch;
  justify-self:start;
}
.dd-add-panel .dd-inp:focus,
.dd-add-view-shell .dd-inp:focus{
  border-color:#60a5fa;
  box-shadow:0 0 0 4px rgba(37,99,235,.12);
}
.dd-add-note{
  margin-top:2px;
  background:linear-gradient(135deg,rgba(238,247,255,.9),rgba(255,255,255,.85));
  border:1px solid rgba(219,234,254,.9);
  border-radius:20px;
  padding:15px;
  font-size:12px;
  line-height:1.6;
  color:#667085;
}
.dd-add-inline-status{
  font-size:12px;
  color:#64748b;
  text-align:center;
  min-height:18px;
}
.dd-confirm-overlay{
  position:absolute;
  inset:0;
  z-index:8;
  background:rgba(10,22,40,.42);
  backdrop-filter:blur(10px);
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.dd-confirm-overlay.open{display:flex;}
.dd-confirm-card{
  width:100%;
  max-width:360px;
  background:#fff;
  border-radius:28px;
  padding:24px;
  text-align:center;
  box-shadow:0 30px 80px rgba(15,23,42,.28);
}
.dd-confirm-icon{
  width:62px;
  height:62px;
  border-radius:22px;
  background:#eef6ff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:29px;
  margin:0 auto 14px;
}
.dd-confirm-card h2{
  font-size:22px;
  color:#172033;
  margin-bottom:8px;
  letter-spacing:-.03em;
}
.dd-confirm-card p{
  font-size:13px;
  color:#667085;
  line-height:1.5;
}
.dd-user-box{
  display:flex;
  align-items:center;
  gap:12px;
  background:#f8fbff;
  border:1px solid #dbeafe;
  border-radius:20px;
  padding:14px;
  margin:18px 0;
  text-align:left;
}
.dd-user-avatar{
  width:46px;
  height:46px;
  border-radius:16px;
  background:linear-gradient(135deg,#2563eb,#b8d8e8);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  letter-spacing:.04em;
  flex-shrink:0;
}
.dd-user-box h4{
  font-size:14px;
  color:#172033;
  margin:0;
}
.dd-user-box span{
  display:block;
  margin-top:4px;
  font-size:12px;
  color:#2563eb;
  font-weight:800;
}
.dd-confirm-note{
  background:#eef7ff;
  border:1px solid #dbeafe;
  border-radius:16px;
  padding:12px;
  font-size:12px;
  color:#667085;
  margin-bottom:18px;
  line-height:1.5;
}
.dd-confirm-actions{
  display:flex;
  gap:10px;
}
.dd-btn-light{
  flex:1;
  border:1px solid #dbeafe;
  background:#fff;
  color:#2563eb;
  border-radius:14px;
  padding:12px;
  font-weight:800;
  cursor:pointer;
  font-family:inherit;
}
.dd-btn-danger{
  border-color:#fecaca;
  background:#fff5f5;
  color:#b91c1c;
}
.dd-btn-danger:hover{
  background:#fef2f2;
}
.dd-btn-light:disabled,
.dd-add-panel .dd-btn-prim:disabled,
.dd-add-view-shell .dd-btn-prim:disabled{
  opacity:.65;
  cursor:not-allowed;
  transform:none;
}
.dd-success{
  display:flex;
  align-items:center;
  gap:12px;
  background:linear-gradient(135deg,#dcfce7,#ffffff);
  border:1px solid #bbf7d0;
  border-radius:22px;
  padding:15px;
}
.dd-success-icon{
  width:44px;
  height:44px;
  border-radius:16px;
  background:#16a34a;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  flex-shrink:0;
}
.dd-success h4{
  font-size:15px;
  color:#172033;
  margin:0;
}
.dd-success p{
  margin-top:4px;
  font-size:12px;
  color:#667085;
}
.dd-section{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.dd-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.dd-section-head h3{
  font-size:15px;
  color:#172033;
}
.dd-pill{
  padding:6px 10px;
  border-radius:999px;
  background:#eef6ff;
  color:#2563eb;
  font-size:11px;
  font-weight:800;
}
.dd-user-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  background:#f8fbff;
  border:1px solid #dbeafe;
  border-radius:22px;
  padding:14px;
}
.dd-user-left{
  display:flex;
  gap:12px;
  align-items:center;
  min-width:0;
  flex:1 1 240px;
}
.dd-user-avatar{
  width:48px;
  height:48px;
  border-radius:18px;
  background:linear-gradient(135deg,#2563eb,#b8d8e8);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  letter-spacing:.04em;
  flex-shrink:0;
}
.dd-user-avatar.friend{
  background:linear-gradient(135deg,#60a5fa,#bfdbfe);
}
.dd-user-copy{
  min-width:0;
}
.dd-user-copy h4{
  font-size:14px;
  color:#172033;
  margin:0;
}
.dd-user-copy p{
  margin-top:4px;
  font-size:12px;
  color:#667085;
}
.dd-user-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
  flex:0 1 220px;
}
.dd-user-actions .dd-btn-light{min-width:104px;}
.dd-badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin-top:6px;
  padding:5px 8px;
  border-radius:999px;
  background:#fee2e2;
  color:#ef4444;
  font-size:11px;
  font-weight:800;
}
.dd-badge.friend{
  background:#eef6ff;
  color:#2563eb;
}
.dd-btn-disabled{
  width:100%;
  border:none;
  border-radius:18px;
  padding:14px;
  background:#edf2f7;
  color:#94a3b8;
  font-size:13px;
  font-weight:800;
  cursor:not-allowed;
}
.dd-add-more{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  background:#fff;
  border:1px dashed #dbeafe;
  border-radius:22px;
  padding:15px;
}
.dd-add-more-left{
  display:flex;
  gap:12px;
  align-items:center;
  min-width:0;
}
.dd-add-more-icon{
  width:42px;
  height:42px;
  border-radius:15px;
  background:#eef6ff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  flex-shrink:0;
}
.dd-add-more h4{
  font-size:14px;
  color:#172033;
  margin:0;
}
.dd-add-more p{
  margin-top:3px;
  font-size:12px;
  color:#667085;
}

@media (max-width:900px){
  .dd-add-view-screen{
    padding:14px;
    border-radius:28px;
  }
  .dd-add-view-shell{
    width:100%;
    max-width:none;
    min-height:100dvh;
    max-height:100dvh;
    border-radius:0;
    margin-right:0;
  }
  .dd-add-panel{
    left:0;
    right:0;
    top:0;
    bottom:0;
    padding:0;
    border-radius:0;
    justify-content:flex-start;
    align-items:stretch;
  }
  .dd-add-page-shell{
    width:100%;
    max-width:none;
    min-height:100dvh;
    max-height:100dvh;
    border-radius:0;
    margin-right:0;
  }
  .dd-add-float{
    display:none;
  }
  .dd-add-panel .dd-panel-head,
  .dd-add-view-shell .dd-panel-head{
    padding:calc(18px + env(safe-area-inset-top,0px)) 18px 16px;
    position:sticky;
    top:0;
    z-index:2;
    background:rgba(255,255,255,.92);
    backdrop-filter:blur(18px);
  }
  .dd-add-panel .dd-panel-title,
  .dd-add-view-shell .dd-panel-title{
    font-size:22px;
  }
  .dd-add-panel .dd-add-body,
  .dd-add-view-shell .dd-add-body{
    padding:16px;
    padding-bottom:calc(18px + env(safe-area-inset-bottom,0px));
  }
  .dd-confirm-actions{
    flex-direction:column;
  }
  .dd-add-panel .dd-btn-prim,
  .dd-add-view-shell .dd-btn-prim{
    width:100%;
    min-height:48px;
  }
  .dd-btn-light{
    width:100%;
    min-height:48px;
  }
  .dd-add-code-row{
    grid-template-columns:minmax(0,1fr) auto;
    gap:8px;
  }
  .dd-add-code-row .dd-btn-prim{
    width:auto;
    min-width:80px;
    min-height:50px;
    padding:0 14px;
  }
  .dd-user-card,
  .dd-add-more,
  .dd-user-box,
  .dd-success{
    align-items:flex-start;
  }
  .dd-user-card,
  .dd-add-more{
    flex-direction:column;
  }
  .dd-user-left,
  .dd-add-more-left{
    width:100%;
    flex:0 0 auto;
  }
  .dd-user-copy,
  .dd-add-copy{
    width:100%;
  }
  .dd-user-actions{
    width:100%;
    flex:0 0 auto;
    justify-content:flex-start;
  }
  .dd-user-card{
    justify-content:flex-start;
    gap:10px;
  }
  .dd-user-actions .dd-btn-light{
    min-width:0;
  }
  .dd-user-card .dd-btn-light,
  .dd-add-more .dd-btn-prim{
    width:100%;
  }
  .dd-confirm-overlay{
    padding:16px;
    align-items:flex-end;
  }
  .dd-confirm-card{
    max-width:none;
    border-radius:24px;
    padding:20px 18px;
  }
  .dd-add-inline-status{
    text-align:left;
    padding:0 2px;
  }
}

@media (max-width:640px){
  .dd-add-view-screen{
    padding:0;
    border-radius:0;
    border:none;
    box-shadow:none;
  }
  .dd-add-panel{
    left:0;
    right:0;
    top:0;
    bottom:0;
  }
  .dd-add-page-shell,
  .dd-add-view-shell{
    min-height:100dvh;
  }
  .dd-add-panel .dd-panel-head,
  .dd-add-view-shell .dd-panel-head{
    padding:calc(16px + env(safe-area-inset-top,0px)) 16px 14px;
    gap:12px;
  }
  .dd-add-panel .dd-panel-title,
  .dd-add-view-shell .dd-panel-title{
    font-size:20px;
  }
  .dd-add-panel .dd-panel-sub,
  .dd-add-view-shell .dd-panel-sub{
    font-size:12px;
    line-height:1.5;
  }
  .dd-add-panel .dd-add-body,
  .dd-add-view-shell .dd-add-body{
    padding:14px;
    padding-bottom:calc(18px + env(safe-area-inset-bottom,0px));
    gap:12px;
  }
  .dd-add-code-row{
    grid-template-columns:minmax(0,1fr) auto;
    gap:8px;
  }
  .dd-add-code-row .dd-btn-prim{
    min-width:74px;
    padding:0 12px;
  }
  .dd-add-panel .dd-add-card,
  .dd-add-view-shell .dd-add-card,
  .dd-user-card,
  .dd-add-more,
  .dd-note,
  .dd-add-note,
  .dd-success{
    border-radius:20px;
  }
  .dd-add-panel .dd-add-card,
  .dd-add-view-shell .dd-add-card{
    padding:16px;
  }
  .dd-add-top{
    gap:12px;
  }
  .dd-add-icon,
  .dd-user-avatar,
  .dd-success-icon{
    width:44px;
    height:44px;
    border-radius:16px;
  }
  .dd-section-head{
    align-items:flex-start;
  }
  .dd-pill{
    flex-shrink:0;
  }
  .dd-confirm-card h2{
    font-size:20px;
  }
  .dd-confirm-card p,
  .dd-confirm-note,
  .dd-user-copy p,
  .dd-add-panel .dd-add-copy p,
  .dd-add-view-shell .dd-add-copy p{
    font-size:12px;
  }
}

/* Analytics view */
#view-analytics.dd-analytics,
.dd-analytics-screen{
  flex:1;min-height:0;overflow-y:auto;padding:20px 22px 26px;
  -webkit-overflow-scrolling:touch;
  background:
    radial-gradient(circle at top left, rgba(191,219,254,.55), transparent 32%),
    radial-gradient(circle at bottom right, rgba(37,99,235,.1), transparent 30%),
    #f8fbff;
}
.dd-analytics-screen{scrollbar-width:none;-ms-overflow-style:none;}
.dd-analytics-screen::-webkit-scrollbar{display:none;width:0;height:0;}
.dd-an-shell{display:flex;flex-direction:column;gap:18px;min-height:100%;}
.dd-an-topbar{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;flex-wrap:wrap;}
.dd-an-title h1{
  font-size:clamp(26px,3vw,40px);
  letter-spacing:-.05em;
  color:#172033;
  margin:0 0 7px;
}
.dd-an-title p{font-size:14px;line-height:1.6;color:#667085;max-width:720px;margin:0;}
.dd-an-tabs{
  display:flex;gap:8px;padding:8px;background:rgba(255,255,255,.8);
  border:1px solid #dbeafe;border-radius:24px;
  box-shadow:0 16px 36px rgba(37,99,235,.08);
  overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;
}
.dd-an-tabs::-webkit-scrollbar{display:none;width:0;height:0;}
.dd-an-tab{
  border:0;padding:11px 15px;border-radius:17px;background:transparent;color:#667085;
  font-weight:800;cursor:pointer;white-space:nowrap;font-family:inherit;font-size:13px;
}
.dd-an-tab.act{
  background:#2563eb;color:#fff;
  box-shadow:0 12px 24px rgba(37,99,235,.25);
}
.dd-an-status{
  border-radius:26px;border:1px solid rgba(219,234,254,.95);background:rgba(255,255,255,.78);
  box-shadow:0 22px 55px rgba(37,99,235,.08);padding:20px 22px;color:#475569;
}
.dd-an-loading{display:flex;align-items:center;gap:12px;font-weight:700;color:#2563eb;}
.dd-an-loading::before{
  content:'';width:18px;height:18px;border-radius:50%;
  border:2px solid rgba(37,99,235,.18);border-top-color:#2563eb;
  animation:dd-an-spin .75s linear infinite;
}
@keyframes dd-an-spin{to{transform:rotate(360deg);}}
.dd-an-empty{display:grid;gap:14px;}
.dd-an-section-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:18px;}
.dd-an-two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.dd-an-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
.dd-an-card{
  background:rgba(255,255,255,.84);
  border:1px solid rgba(219,234,254,.95);
  border-radius:32px;padding:22px;
  box-shadow:0 22px 55px rgba(37,99,235,.09);
  backdrop-filter:blur(16px);
  transition:transform .25s ease,box-shadow .25s ease;
}
.dd-an-card:hover{transform:translateY(-3px);box-shadow:0 28px 70px rgba(37,99,235,.13);}
.dd-an-card h3,.dd-an-metric-card h3{margin:0;}
.dd-an-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px;}
.dd-an-head h2{font-size:19px;letter-spacing:-.03em;color:#172033;margin:0;}
.dd-an-pill{
  display:inline-flex;align-items:center;padding:8px 11px;border-radius:999px;
  background:#eef7ff;color:#2563eb;font-size:12px;font-weight:900;
}
.dd-an-pill.warn{background:#fee2e2;color:#ef4444;}
.dd-an-hero{position:relative;overflow:hidden;min-height:260px;}
.dd-an-hero::before{
  content:'';position:absolute;right:-80px;top:-80px;width:240px;height:240px;border-radius:50%;
  background:rgba(37,99,235,.08);
}
.dd-an-copy{position:relative;z-index:1;}
.dd-an-copy p{font-size:14px;line-height:1.6;color:#667085;max-width:680px;margin:0;}
.dd-an-curve-wrap{
  margin-top:20px;height:205px;position:relative;border-radius:28px;
  background:linear-gradient(180deg, rgba(238,247,255,.9), rgba(255,255,255,.5));
  overflow:hidden;border:1px solid #dbeafe;
}
.dd-an-curve-wrap svg{width:100%;height:100%;display:block;}
.dd-an-curve-meta{
  margin-top:14px;display:flex;flex-wrap:wrap;gap:10px;font-size:12px;color:#64748b;
}
.dd-an-chip{
  display:inline-flex;align-items:center;gap:6px;padding:8px 11px;border-radius:999px;
  background:#f8fbff;border:1px solid #dbeafe;font-weight:700;
}
.dd-an-chip b{color:#172033;}
.dd-an-stack{display:grid;gap:12px;}
.dd-an-note{
  background:linear-gradient(135deg,#eef7ff,#fff);border:1px solid #dbeafe;border-radius:26px;
  padding:18px;
}
.dd-an-note h3{font-size:15px;margin:0 0 7px;color:#172033;}
.dd-an-note p{font-size:13px;line-height:1.55;color:#667085;margin:0;}
.dd-an-note.warn{background:linear-gradient(135deg,#fff5f5,#fff);}
.dd-an-metric-card{min-height:140px;}
.dd-an-metric-icon{
  width:44px;height:44px;border-radius:17px;display:grid;place-items:center;
  background:#eef7ff;font-size:21px;margin-bottom:13px;
}
.dd-an-metric-icon.warn{background:#fee2e2;}
.dd-an-metric-card h3{font-size:13px;color:#667085;margin-bottom:8px;}
.dd-an-metric{
  display:block;font-size:30px;font-weight:800;color:#172033;letter-spacing:-.05em;
}
.dd-an-metric.warn{color:#ef4444;}
.dd-an-metric-card p{font-size:12px;color:#667085;margin:6px 0 0;}
.dd-an-venn-area{height:330px;position:relative;margin-top:10px;}
.dd-an-venn{
  position:absolute;width:180px;height:180px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;text-align:center;
  font-weight:800;line-height:1.4;border:1px solid rgba(255,255,255,.8);
  backdrop-filter:blur(10px);box-shadow:0 16px 32px rgba(37,99,235,.08);
}
.dd-an-venn-a{background:rgba(37,99,235,.26);left:15%;top:18px;}
.dd-an-venn-b{background:rgba(184,216,232,.62);right:15%;top:18px;}
.dd-an-venn-c{background:rgba(239,68,68,.16);left:31%;top:126px;}
.dd-an-venn-center{
  position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);
  background:#fff;border:1px solid #dbeafe;border-radius:22px;padding:13px;
  text-align:center;font-size:13px;box-shadow:0 16px 30px rgba(37,99,235,.12);max-width:180px;
}
.dd-an-behaviors,.dd-an-categories,.dd-an-progress{display:grid;gap:12px;}
.dd-an-behavior{
  display:flex;gap:12px;align-items:center;padding:14px;border-radius:22px;
  background:#f8fbff;border:1px solid #dbeafe;
}
.dd-an-emoji,.dd-an-cat-icon{
  width:42px;height:42px;border-radius:16px;background:#fff;display:grid;place-items:center;font-size:21px;
}
.dd-an-behavior h3,.dd-an-category h3,.dd-an-progress p{font-size:14px;margin:0 0 3px;color:#172033;}
.dd-an-behavior p,.dd-an-category p{font-size:12px;color:#667085;line-height:1.45;margin:0;}
.dd-an-bars{
  height:255px;display:flex;align-items:flex-end;gap:13px;padding-top:20px;
}
.dd-an-bar-col{flex:1;text-align:center;}
.dd-an-bar{
  width:min(42px,100%);margin:auto;border-radius:999px 999px 12px 12px;
  background:linear-gradient(180deg,#2563eb,#b8d8e8);
  box-shadow:0 15px 28px rgba(37,99,235,.16);transition:transform .3s ease;
}
.dd-an-bar:hover{transform:scaleY(1.06);}
.dd-an-bar-col span{display:block;color:#667085;font-size:12px;margin-top:8px;}
.dd-an-category{
  display:grid;grid-template-columns:44px 1fr auto;gap:12px;align-items:center;
  padding:14px;border-radius:22px;background:#f8fbff;border:1px solid #dbeafe;
}
.dd-an-percent{color:#2563eb;font-weight:900;}
.dd-an-percent.warn{color:#ef4444;}
.dd-an-progress p{display:flex;justify-content:space-between;gap:12px;font-weight:800;margin-bottom:8px;}
.dd-an-progress-track{
  height:13px;border-radius:999px;background:#e5f0fb;overflow:hidden;
}
.dd-an-progress-track span{
  display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2563eb,#b8d8e8);
}
.dd-an-progress-track.warn span{background:linear-gradient(90deg,#ef4444,#fca5a5);}
.dd-an-placeholder{
  display:grid;place-items:center;min-height:220px;text-align:center;padding:22px;
}
.dd-an-placeholder h3{font-size:18px;color:#172033;margin:0 0 8px;}
.dd-an-placeholder p{font-size:13px;color:#667085;line-height:1.6;max-width:440px;margin:0;}
.dd-em-dashboard{display:grid;gap:18px;}
.dd-em-hero{display:grid;grid-template-columns:1.2fr .8fr;gap:22px;align-items:center;}
.dd-em-hero-copy h2{font-size:34px;letter-spacing:-.04em;margin:0 0 10px;color:#172033;}
.dd-em-hero-copy p{font-size:14px;line-height:1.6;color:#667085;margin:0;}
.dd-em-hero-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:22px;}
.dd-em-hero-stat{
  background:#f8fbff;border:1px solid #dbeafe;border-radius:24px;padding:18px;
}
.dd-em-hero-stat span{font-size:26px;}
.dd-em-hero-stat strong{display:block;font-size:30px;margin-top:10px;color:#2563eb;}
.dd-em-hero-stat.warn strong{color:#ef4444;}
.dd-em-hero-stat p{color:#667085;font-size:12px;margin-top:5px;}
.dd-em-hero-visual{display:flex;align-items:center;justify-content:center;}
.dd-em-ring-wrap{text-align:center;}
.dd-em-ring{
  width:190px;height:190px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 20px 45px rgba(37,99,235,.16);
}
.dd-em-ring-inner{
  width:138px;height:138px;border-radius:50%;background:#fff;
  display:flex;align-items:center;justify-content:center;
  font-size:36px;font-weight:900;color:#2563eb;
}
.dd-em-ring-wrap p{color:#667085;margin-top:12px;font-weight:700;}
.dd-em-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.dd-em-wide{grid-column:span 2;}
.dd-em-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:18px;}
.dd-em-head h2{font-size:20px;margin:0;color:#172033;}
.dd-em-timeline,.dd-em-perf-list,.dd-em-settings{display:grid;gap:14px;}
.dd-em-timeline{gap:18px;}
.dd-em-timeline-item{display:flex;gap:14px;align-items:flex-start;}
.dd-em-dot{width:15px;height:15px;border-radius:50%;background:#2563eb;margin-top:4px;flex-shrink:0;}
.dd-em-dot.warn{background:#ef4444;}
.dd-em-timeline-item h3{font-size:15px;margin:0;color:#172033;}
.dd-em-timeline-item p{font-size:12px;color:#667085;margin:4px 0 0;}
.dd-em-perf-item{
  display:flex;justify-content:space-between;align-items:center;gap:14px;
  padding:16px;border-radius:22px;background:#f8fbff;border:1px solid #dbeafe;
}
.dd-em-perf-item h3{font-size:14px;margin:0;color:#172033;}
.dd-em-perf-item p{font-size:12px;color:#667085;margin:4px 0 0;}
.dd-em-perf-item strong{font-size:18px;color:#2563eb;}
.dd-em-perf-item strong.warn{color:#ef4444;}
.dd-em-categories{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;}
.dd-em-cat{
  background:#f8fbff;border:1px solid #dbeafe;border-radius:24px;padding:18px;
}
.dd-em-cat span{font-size:25px;}
.dd-em-cat h3{margin:10px 0 0;font-size:14px;color:#172033;}
.dd-em-cat strong{display:block;margin-top:8px;font-size:24px;color:#2563eb;}
.dd-em-cat strong.warn{color:#ef4444;}
.dd-em-cat p{color:#667085;font-size:12px;margin-top:5px;}
.dd-em-insights{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}
.dd-em-insight{
  background:linear-gradient(135deg,#eef7ff,#fff);border:1px solid #dbeafe;border-radius:24px;padding:18px;
}
.dd-em-insight h3{font-size:15px;margin:0 0 8px;color:#172033;}
.dd-em-insight p{font-size:13px;line-height:1.55;color:#667085;margin:0;}
.dd-em-setting{
  display:flex;justify-content:space-between;align-items:center;gap:16px;
  padding:18px 0;border-bottom:1px solid #dbeafe;
}
.dd-em-setting:last-child{border-bottom:none;}
.dd-em-setting h3{font-size:15px;margin:0;color:#172033;}
.dd-em-setting p{font-size:12px;color:#667085;margin:4px 0 0;}
.dd-em-switch{
  width:50px;height:28px;border-radius:999px;background:#dbeafe;padding:4px;flex-shrink:0;
}
.dd-em-switch.on{background:#2563eb;}
.dd-em-switch .dd-em-knob{
  width:20px;height:20px;border-radius:50%;background:#fff;transition:transform .2s ease;
}
.dd-em-switch.on .dd-em-knob{transform:translateX(22px);}

@media (max-width:900px){
  #view-analytics.dd-analytics,
  .dd-analytics-screen{padding:14px 14px 18px;}
  .dd-an-section-grid,.dd-an-two-col,.dd-an-metrics{grid-template-columns:1fr;}
  .dd-an-card{border-radius:26px;padding:18px;}
  .dd-an-tabs{width:100%;}
  .dd-an-venn-area{transform:scale(.82);transform-origin:left top;height:285px;}
  .dd-em-hero,.dd-em-grid{grid-template-columns:1fr;}
  .dd-em-wide{grid-column:auto;}
  .dd-em-hero-stats,.dd-em-categories,.dd-em-insights{grid-template-columns:1fr;}
}

/* Floating AI mic */
.dd-fab-ai{
  position:fixed;right:calc(18px + env(safe-area-inset-right,0px));
  bottom:calc(18px + env(safe-area-inset-bottom,0px));
  width:56px;height:56px;border-radius:50%;
  border:none;cursor:pointer;z-index:400;
  background:linear-gradient(145deg,#2563eb,#7c3aed);
  color:#fff;box-shadow:0 10px 30px rgba(37,99,235,.45),inset 0 1px 0 rgba(255,255,255,.2);
  display:flex;align-items:center;justify-content:center;
  transition:transform .2s ease,box-shadow .2s ease;
}
.dd-fab-ai:hover{transform:scale(1.06);box-shadow:0 14px 36px rgba(37,99,235,.5);}
.dd-fab-ai:active{transform:scale(.94);}

@media (max-width:900px){
  .dd-nav-rail{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px));}
}

/* Lifestyle DNA inline section inside planner panel */
.dd-pl-dna-section{
  margin-top:8px;
  padding:10px 6px 6px;
  border-top:1px solid rgba(30,58,95,.08);
}
.dd-pl-dna-label{
  font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.1em;
  color:#7C3AED;text-align:center;margin-bottom:8px;
}
.dd-pl-dna-body{display:flex;flex-direction:column;gap:5px;}
.dd-pl-dna-row{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:8px 4px;border-radius:14px;
  background:linear-gradient(145deg,#F3F0FF,#EEF2FF);
  text-align:center;
}
.dd-pl-dna-row-ic{font-size:16px;line-height:1;margin-bottom:3px;}
.dd-pl-dna-row-val{font-size:11px;font-weight:700;color:#4C1D95;line-height:1;}
.dd-pl-dna-row-lbl{font-size:8px;font-weight:600;color:#7C3AED;text-transform:uppercase;letter-spacing:.06em;margin-top:1px;}
.dd-pl-dna-refresh{
  margin-top:6px;width:100%;padding:7px 0;border:none;border-radius:12px;
  background:#7C3AED;color:#fff;font-size:9px;font-weight:700;
  letter-spacing:.06em;text-transform:uppercase;cursor:pointer;
}
.dd-pl-dna-refresh:hover{background:#6D28D9;}
.dd-pl-dna-forming{
  padding:10px 4px;text-align:center;font-size:10px;color:#94A3B8;line-height:1.4;
}
