
:root{
  --pdt-navy:#123b5d;
  --pdt-blue:#1d5f87;
  --pdt-light:#eef5fa;
  --pdt-line:#cfdae3;
  --pdt-text:#173247;
  --pdt-muted:#647889;
  --pdt-danger:#b42318;
  --pdt-warn:#9a6700;
  --pdt-ok:#157347;
}
.pdt-tab-rail{
  position:fixed;right:0;top:34%;z-index:2147483000;
  display:flex;flex-direction:column;gap:5px;align-items:flex-end
}
.pdt-rail-tab{
  min-width:46px;background:var(--pdt-navy);color:#fff;border:0;
  border-radius:8px 0 0 8px;padding:12px 9px;font-weight:700;cursor:pointer;
  writing-mode:vertical-rl;box-shadow:0 3px 14px rgba(0,0,0,.14)
}
.pdt-rail-tab.is-active{background:var(--pdt-blue)}
#pdt-panel{
  position:fixed;right:-440px;top:12px;width:min(410px,94vw);
  height:calc(100vh - 24px);z-index:2147482999;background:#fff;
  color:var(--pdt-text);box-shadow:-8px 0 28px rgba(0,0,0,.18);
  border:1px solid var(--pdt-line);overflow:auto;transition:right .22s ease;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif
}
#pdt-panel.open{right:0}
.pdt-header{
  position:sticky;top:0;z-index:3;display:flex;justify-content:space-between;
  align-items:center;padding:12px 14px;background:#fff;border-bottom:1px solid var(--pdt-line)
}
.pdt-header-actions{display:flex;gap:6px}
.pdt-header button{border:1px solid var(--pdt-line);background:#fff;border-radius:5px;padding:6px 9px;cursor:pointer}
.pdt-version{font-size:11px;color:var(--pdt-muted);margin-left:6px}
.pdt-privacy{padding:10px 14px;background:var(--pdt-light);font-size:12px;line-height:1.55}
.pdt-settings-panel,.pdt-widget{
  margin:12px;border:1px solid var(--pdt-line);border-radius:7px;padding:12px;background:#fff
}
.pdt-settings-panel h3,.pdt-widget h3{margin:0;font-size:16px}
.pdt-widget-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.pdt-widget-head span{font-size:11px;color:var(--pdt-muted)}
.pdt-setting-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:10px 0}
.pdt-row-label{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0}
.pdt-hidden{display:none!important}
.pdt-clock{font-size:20px;font-weight:700;margin:6px 0 10px}
.pdt-timer-main{font-size:20px;font-weight:800;color:var(--pdt-navy);margin-top:8px}
.pdt-overtime{font-size:20px;font-weight:800;color:var(--pdt-danger);margin-top:6px}
.pdt-form-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.pdt-stack{display:grid;gap:7px}
.pdt-form-detail{margin-top:10px}
.pdt-widget input,.pdt-widget select,.pdt-widget textarea,.pdt-settings-panel input,.pdt-settings-panel select{
  box-sizing:border-box;border:1px solid #bdcbd6;border-radius:4px;padding:8px;font:inherit;max-width:100%
}
.pdt-widget input[type="text"],.pdt-widget input[type="search"],.pdt-widget textarea{width:100%}
.pdt-widget button,.pdt-settings-panel button{
  border:1px solid var(--pdt-blue);background:var(--pdt-blue);color:#fff;
  border-radius:4px;padding:8px 10px;cursor:pointer
}
.pdt-widget button.pdt-secondary{background:#fff;color:var(--pdt-blue)}
#pdt-drug-search{display:flex;gap:6px}
#pdt-search-input{flex:1}
.pdt-list{display:grid;gap:7px;margin-top:10px}
.pdt-item{border:1px solid #dbe4eb;border-radius:5px;padding:9px;background:#fbfdff}
.pdt-item.is-done{opacity:.58}
.pdt-item-head{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.pdt-item-title{font-weight:700;overflow-wrap:anywhere}
.pdt-item-meta{font-size:12px;color:var(--pdt-muted);margin-top:5px;line-height:1.55}
.pdt-item-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}
.pdt-item-actions button{font-size:12px;padding:5px 7px}
.pdt-priority-high{border-left:4px solid var(--pdt-danger)}
.pdt-priority-normal{border-left:4px solid #d99800}
.pdt-priority-low{border-left:4px solid #4d8ab5}
.pdt-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.pdt-summary-grid div{background:var(--pdt-light);border-radius:5px;padding:8px}
.pdt-summary-grid strong{font-size:22px;display:block}
.pdt-summary-grid span{font-size:11px;color:var(--pdt-muted)}
.pdt-risk-danger{color:var(--pdt-danger);font-weight:800}
.pdt-risk-warn{color:var(--pdt-warn);font-weight:800}
.pdt-risk-ok{color:var(--pdt-ok);font-weight:700}
.pdt-risk-missing{color:#6c757d;font-weight:700}
.pdt-disclaimer,.pdt-storage-note{font-size:11px;color:var(--pdt-muted);line-height:1.55}
.pdt-calc-result{margin-top:10px;padding:10px;background:var(--pdt-light);line-height:1.7}
.pdt-inline-actions{display:flex;gap:7px;margin-top:8px}
.pdt-file-button{
  display:inline-block;border:1px solid var(--pdt-blue);background:var(--pdt-blue);
  color:#fff;border-radius:4px;padding:8px 10px;cursor:pointer
}
.pdt-file-button input{display:none}
.pdt-mini-status{font-size:12px;margin-top:8px}
@media(max-width:600px){
  #pdt-panel{top:0;height:100vh;width:100vw;right:-105vw;border:0}
  }

.pdt-public-widget{
  background:#f8fafc;
  border-color:#d9e3ea;
}
.pdt-public-widget p{
  margin:6px 0 10px;
  font-size:12px;
  line-height:1.6;
  color:var(--pdt-muted);
}
.pdt-public-link{
  display:inline-block;
  padding:7px 9px;
  border:1px solid var(--pdt-blue);
  border-radius:4px;
  color:var(--pdt-blue);
  text-decoration:none;
  font-weight:700;
  font-size:12px;
}
.pdt-sponsor-widget{
  border-style:dashed;
}
.pdt-sponsor-widget .pdt-widget-head span{
  padding:2px 6px;
  border:1px solid #9aa9b5;
  border-radius:3px;
  color:#5f6f7b;
  font-weight:700;
}

.pdt-clock-wrap{
  border-radius:8px;padding:10px;margin:4px 0 10px;
  display:flex;flex-direction:column;align-items:flex-start;gap:8px
}
.pdt-clock-theme-navy{background:#eef5fa;color:#123b5d}
.pdt-clock-theme-blue{background:#edf7ff;color:#075985}
.pdt-clock-theme-gray{background:#f3f4f6;color:#374151}
.pdt-clock-theme-contrast{background:#111;color:#fff}
.pdt-analog-clock{
  position:relative;width:126px;height:126px;border:5px solid currentColor;
  border-radius:50%;align-self:center;background:#fff
}
.pdt-clock-theme-contrast .pdt-analog-clock{background:#111}
.pdt-hand{
  position:absolute;left:50%;bottom:50%;transform-origin:50% 100%;
  border-radius:3px;background:currentColor
}
.pdt-hour-hand{width:5px;height:34px}
.pdt-minute-hand{width:4px;height:46px}
.pdt-second-hand{width:2px;height:50px;background:#b42318}
.pdt-clock-center{
  position:absolute;left:50%;top:50%;width:10px;height:10px;
  transform:translate(-50%,-50%);border-radius:50%;background:currentColor
}
.pdt-analog-date{align-self:center;font-weight:700;font-size:13px}
@media(max-width:600px){
  .pdt-tab-rail{top:auto;bottom:12px;right:6px;flex-direction:row;gap:4px}
  .pdt-rail-tab{writing-mode:horizontal-tb;border-radius:6px;padding:8px 9px;min-width:auto}
}

/* v2.4.0 Medical Update Feed */
.pdt-update-widget{border-color:#bdd1df;background:#fcfeff}
.pdt-update-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:4px 0 12px}
.pdt-update-count{border-radius:6px;padding:8px;text-align:center;border:1px solid var(--pdt-line);background:#fff}
.pdt-update-count strong{display:block;font-size:22px;line-height:1.1}
.pdt-update-count span{font-size:11px;color:var(--pdt-muted)}
.pdt-update-important{border-top:3px solid #b42318}
.pdt-update-normal{border-top:3px solid #d97706}
.pdt-update-info{border-top:3px solid #2563eb}
.pdt-update-section-title{font-size:13px;font-weight:800;margin:8px 0}
.pdt-update-list{display:grid;gap:7px}
.pdt-update-card{border:1px solid #dbe4eb;border-radius:6px;padding:9px;background:#fff}
.pdt-update-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px}
.pdt-update-badge{font-size:11px;font-weight:800}
.pdt-update-date{font-size:11px;color:var(--pdt-muted)}
.pdt-update-drug{font-weight:800;overflow-wrap:anywhere}
.pdt-update-type{font-size:12px;font-weight:700;margin-top:3px}
.pdt-update-summary{font-size:11px;color:var(--pdt-muted);line-height:1.55;margin-top:4px}
.pdt-update-link{display:inline-block;margin-top:7px;font-size:12px;font-weight:700;color:var(--pdt-blue);text-decoration:none}
.pdt-update-link:hover{text-decoration:underline}
.pdt-update-empty{padding:10px;background:#f4f7f9;border-radius:5px;color:var(--pdt-muted);font-size:12px;line-height:1.6}
.pdt-update-status{font-size:10px;color:var(--pdt-muted);margin-top:8px;line-height:1.5}
.pdt-update-all-details{margin-top:10px}
.pdt-update-all-details summary{cursor:pointer;font-size:12px;font-weight:700;color:var(--pdt-blue)}
.pdt-update-all-details[open] summary{margin-bottom:8px}
.pdt-compact-btn{font-size:11px!important;padding:5px 7px!important}


/* v2.5.0 Local pharmacy / watch / unread medical updates */
.pdt-update-local-counts{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:6px;
    margin:0 0 12px;
}
.pdt-update-local-counts>div{
    border:1px solid var(--pdt-line);
    background:#f8fafc;
    border-radius:6px;
    padding:7px 5px;
    text-align:center;
}
.pdt-update-local-counts strong{
    display:block;
    font-size:18px;
    line-height:1.1;
}
.pdt-update-local-counts span{
    display:block;
    margin-top:3px;
    font-size:10px;
    color:var(--pdt-muted);
}
.pdt-update-filters{
    display:flex;
    gap:5px;
    flex-wrap:wrap;
    margin:12px 0 8px;
}
.pdt-update-filter{
    border:1px solid #b8cbd9!important;
    background:#fff!important;
    color:#174a68!important;
    border-radius:999px!important;
    padding:5px 8px!important;
    font-size:11px!important;
    font-weight:700!important;
}
.pdt-update-filter.is-active{
    background:#0b5c88!important;
    color:#fff!important;
    border-color:#0b5c88!important;
}
.pdt-update-list-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:8px;
    margin:7px 0;
    font-size:12px;
}
.pdt-update-card.is-unread{
    box-shadow:inset 3px 0 0 #0b5c88;
}
.pdt-update-card.is-local-related{
    background:#fbfeff;
}
.pdt-update-card-head-left{
    display:flex;
    align-items:center;
    gap:5px;
    flex-wrap:wrap;
}
.pdt-update-unread-badge,
.pdt-update-local-badge,
.pdt-update-watch-badge{
    display:inline-flex;
    align-items:center;
    border-radius:999px;
    padding:2px 6px;
    font-size:9px;
    font-weight:800;
}
.pdt-update-unread-badge{
    background:#e7f4ff;
    color:#075985;
}
.pdt-update-local-badge{
    background:#e8f7ee;
    color:#166534;
}
.pdt-update-watch-badge{
    background:#fff7d6;
    color:#854d0e;
}
.pdt-update-actions{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    margin-top:7px;
}
.pdt-update-actions .pdt-update-link{
    margin-top:0;
}
.pdt-update-mini-button{
    width:auto!important;
    min-height:auto!important;
    padding:4px 7px!important;
    border-radius:4px!important;
    border:1px solid #c6d6e2!important;
    background:#fff!important;
    color:#315268!important;
    font-size:10px!important;
}
.pdt-update-mini-button:disabled{
    opacity:.45;
}
.pdt-update-local-manager{
    margin-top:12px;
    border-top:1px solid var(--pdt-line);
    padding-top:9px;
}
.pdt-update-local-manager>summary,
.pdt-update-bulk>summary{
    cursor:pointer;
    color:var(--pdt-blue);
    font-size:12px;
    font-weight:800;
}
.pdt-update-manager-body{
    margin-top:9px;
}
.pdt-update-local-note{
    margin:0;
    color:var(--pdt-muted);
    font-size:10px;
    line-height:1.55;
}
.pdt-update-local-list-title{
    font-size:12px;
    font-weight:800;
    margin-top:5px;
}
.pdt-update-bulk{
    border:1px dashed #cbd8e1;
    padding:7px;
    border-radius:6px;
}


/* v2.6.0 Priority + adaptive local learning + compact diff */
.pdt-update-priority-counts{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:6px;
    margin:4px 0 7px;
}
.pdt-update-priority-counts>div{
    border:1px solid var(--pdt-line);
    border-radius:7px;
    padding:8px 5px;
    text-align:center;
    background:#fff;
}
.pdt-update-priority-counts strong{
    display:block;
    font-size:22px;
    line-height:1.05;
}
.pdt-update-priority-counts span{
    display:block;
    font-size:10px;
    margin-top:4px;
    color:var(--pdt-muted);
}
.pdt-priority-must{border-top:3px solid #b42318!important}
.pdt-priority-local{border-top:3px solid #0f766e!important}
.pdt-priority-today{border-top:3px solid #2563eb!important}
.pdt-update-learning-note{
    display:flex;
    justify-content:space-between;
    gap:8px;
    font-size:9px;
    line-height:1.45;
    color:var(--pdt-muted);
    margin-bottom:10px;
}
.pdt-update-learning-note #pdt-update-feed-total{white-space:nowrap}
.pdt-priority-badge{
    display:inline-flex;
    align-items:center;
    border-radius:999px;
    padding:2px 6px;
    font-size:9px;
    font-weight:900;
}
.pdt-priority-badge.must{background:#feeceb;color:#9f1d16}
.pdt-priority-badge.recommended{background:#fff3d6;color:#8a4b00}
.pdt-priority-badge.other{background:#edf2f5;color:#52636d}
.pdt-update-card.is-must-check{border-color:#d9a2a0}
.pdt-update-learned-badge{
    display:inline-flex;
    align-items:center;
    border-radius:999px;
    padding:2px 6px;
    font-size:9px;
    font-weight:800;
    background:#eef0ff;
    color:#4338ca;
}
.pdt-compact-diff{
    margin-top:8px;
    border:1px solid #dce6ed;
    border-radius:7px;
    overflow:hidden;
    background:#fff;
}
.pdt-diff-head{
    padding:6px 8px;
    font-size:11px;
    font-weight:900;
    background:#f4f8fb;
}
.pdt-diff-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
}
.pdt-diff-old,.pdt-diff-new{
    padding:7px;
    min-width:0;
}
.pdt-diff-old{border-right:1px solid #e2e8ed;background:#fafafa}
.pdt-diff-new{background:#f7fcf9}
.pdt-diff-old span,.pdt-diff-new span{
    display:inline-block;
    min-width:20px;
    padding:1px 5px;
    border-radius:4px;
    font-size:9px;
    font-weight:900;
    margin-bottom:4px;
}
.pdt-diff-old span{background:#f0e8e8;color:#7f1d1d}
.pdt-diff-new span{background:#dff4e7;color:#166534}
.pdt-diff-old p,.pdt-diff-new p{
    margin:0;
    font-size:10px;
    line-height:1.5;
    overflow-wrap:anywhere;
}
.pdt-diff-summary{
    padding:6px 8px;
    border-top:1px solid #e2e8ed;
    font-size:10px;
    font-weight:800;
    color:#174a68;
}
.pdt-diff-pending{
    padding:7px 8px;
    font-size:10px;
    color:var(--pdt-muted);
}
.pdt-diff-more{
    border-top:1px solid #e2e8ed;
    padding:6px 8px;
}
.pdt-diff-more summary{
    cursor:pointer;
    font-size:10px;
    font-weight:800;
    color:var(--pdt-blue);
}
.pdt-diff-more-row{
    padding:6px 0;
    border-top:1px dashed #e2e8ed;
    font-size:9px;
    line-height:1.45;
}
.pdt-diff-more-row strong{display:block;margin-bottom:2px}
.pdt-recall-group{
    border:1px solid #dce6ed;
    border-radius:7px;
    background:#fff;
    overflow:hidden;
    margin-top:7px;
}
.pdt-recall-group-head{
    display:flex;
    justify-content:space-between;
    gap:8px;
    padding:7px 9px;
    background:#f8fafb;
    font-size:11px;
}
.pdt-recall-group-head span{
    color:var(--pdt-muted);
    font-size:9px;
}
.pdt-recall-compact-list{display:grid}
.pdt-recall-compact-row{
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:7px;
    padding:6px 9px;
    border-top:1px solid #eef2f4;
}
.pdt-recall-compact-row.is-local{background:#f4fcf7}
.pdt-recall-class{
    font-size:9px;
    font-weight:900;
    white-space:nowrap;
}
.pdt-recall-name{
    width:auto!important;
    border:0!important;
    background:transparent!important;
    color:#173f58!important;
    padding:0!important;
    text-align:left!important;
    font-size:10px!important;
    font-weight:700!important;
    min-height:auto!important;
}
.pdt-recall-more{
    padding:5px 9px;
    border-top:1px solid #eef2f4;
    color:var(--pdt-muted);
    font-size:9px;
    text-align:right;
}
@media(max-width:520px){
    .pdt-diff-grid{grid-template-columns:1fr}
    .pdt-diff-old{border-right:0;border-bottom:1px solid #e2e8ed}
}

/* v2.6.1 critical archive */
.pdt-update-archive-badge{
    display:inline-flex;
    align-items:center;
    border-radius:999px;
    padding:2px 6px;
    font-size:9px;
    font-weight:800;
    background:#f1f5f9;
    color:#64748b;
}

/* v2.6.2 confirmation workflow */
.pdt-update-progress{
    white-space:nowrap;
    color:#166534;
    font-weight:800;
}
.pdt-update-progress strong{
    font-size:11px;
}

/* v2.6.3 batch confirm actions */
.pdt-update-section-title-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    margin-top:10px;
}
.pdt-update-section-title-row .pdt-update-section-title{
    margin:0;
}
.pdt-update-section-title-row .pdt-compact-btn{
    width:auto;
    flex:0 0 auto;
    white-space:nowrap;
}
@media(max-width:420px){
    .pdt-update-section-title-row{
        align-items:flex-start;
        flex-direction:column;
    }
}


/* v2.6.4 recall group batch confirmation */
.pdt-recall-group-head{
    align-items:center;
}
.pdt-recall-group-head-text{
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
}
.pdt-recall-group-head-text span{
    color:var(--pdt-muted);
    font-size:9px;
}
.pdt-recall-confirm-all{
    margin-left:auto;
    flex:0 0 auto;
    white-space:nowrap;
}
@media(max-width:460px){
    .pdt-recall-group-head{
        align-items:flex-start;
        flex-direction:column;
    }
    .pdt-recall-confirm-all{
        margin-left:0;
    }
}

/* v2.7.8 clean rebuild — direct manipulation, correct tab isolation */
#pdt-view-today > .pdt-widget{
  position:relative;
}
.pdt-card-head{
  display:grid!important;
  grid-template-columns:24px minmax(0,1fr) 36px;
  align-items:center!important;
  gap:7px;
}
.pdt-card-head-content{
  min-width:0;
}
.pdt-card-head-content .pdt-widget-head{
  margin:0!important;
}
.pdt-card-drag{
  width:24px;height:34px;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  cursor:grab!important;
  touch-action:none!important;
  color:#72899a!important;
  font-size:18px!important;
  user-select:none!important;
}
.pdt-card-drag:active{cursor:grabbing!important}
.pdt-card-settings{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:34px!important;height:34px!important;min-width:34px!important;
  padding:0!important;
  border:1px solid #c9d8e2!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#16486b!important;
}
.pdt-gear-svg{display:block;width:18px;height:18px}
.pdt-card-settings-panel{
  position:absolute!important;
  top:48px;right:8px;z-index:70;
  width:min(290px,calc(100% - 16px));
  max-height:380px;
  overflow:auto;
  padding:10px;
  border:1px solid #cfdae3;
  border-radius:10px;
  background:#fff;
  box-shadow:0 12px 30px rgba(18,54,78,.18);
}
.pdt-inline-settings-head{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  margin-bottom:8px;
}
.pdt-inline-settings-head button{
  width:32px!important;height:32px!important;min-width:32px!important;padding:0!important;
}
.pdt-inline-visible-toggle{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:10px;
  padding:8px 9px;margin-bottom:8px;
  border:1px solid #d7e2e9;border-radius:8px;background:#f8fbfd;
}
.pdt-inline-visible-toggle input[type=checkbox]{
  width:18px;height:18px;accent-color:#0b5c88;
}
.pdt-inline-work-setting{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:8px;margin-bottom:8px;border:1px solid #d7e2e9;border-radius:8px;background:#f8fbfd;
}
.pdt-clock-choice-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:8px;
}
.pdt-clock-choice-grid button{
  min-height:82px!important;
  display:flex!important;flex-direction:column;align-items:center;justify-content:center;
  gap:3px;padding:6px!important;background:#fff!important;color:#16486b!important;
  border:1px solid #cfdbe4!important;border-radius:8px!important;
}
.pdt-clock-choice-grid button.is-selected{
  background:#0b5c88!important;color:#fff!important;border-color:#0b5c88!important;
}
.pdt-choice-icon{
  width:40px;height:40px;display:block;position:relative;border-radius:50%;border:3px solid currentColor;
}
.pdt-choice-icon:before{
  content:"";position:absolute;left:50%;top:50%;width:2px;height:14px;background:currentColor;
  transform-origin:bottom;transform:translate(-50%,-100%) rotate(35deg);
}
.pdt-choice-icon:after{
  content:"";position:absolute;left:50%;top:50%;width:2px;height:18px;background:#d12b20;
  transform-origin:bottom;transform:translate(-50%,-100%) rotate(125deg);
}
.pdt-choice-dark{background:#0b2d47;color:#f6fbff}
.pdt-choice-digital{
  width:64px;min-height:34px;display:flex;align-items:center;justify-content:center;
  border-radius:6px;background:#edf4f8;font-weight:800;font-variant-numeric:tabular-nums;
}
.pdt-choice-seven{background:#082845;color:#aee7ff;text-shadow:0 0 5px #64cfff;font-family:ui-monospace,monospace}
.pdt-choice-minimal{font-size:18px;background:#f5f7f9}

.pdt-drag-ghost{
  position:fixed;z-index:999999;pointer-events:none;
  padding:8px 12px;border-radius:8px;background:#0b5c88;color:#fff;
  font-size:12px;font-weight:800;box-shadow:0 8px 24px rgba(0,0,0,.18);
}
#pdt-view-today.is-sorting{user-select:none!important}
#pdt-view-today > .pdt-widget.is-dragging{
  opacity:.75!important;
  box-shadow:0 10px 24px rgba(22,70,100,.14)!important;
}
#pdt-view-today > .pdt-widget.pdt-drop-target{
  outline:2px solid #2b7fb0!important;
  outline-offset:3px!important;
}

/* Clock centered and visually distinct */
.pdt-clock-wrap{
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  text-align:center!important;min-height:132px;
}
#pdt-clock{width:100%!important;text-align:center!important}
.pdt-analog-clock{margin-left:auto!important;margin-right:auto!important}
.pdt-analog-date{width:100%;text-align:center!important;margin-top:7px}
.pdt-dial-tick{
  position:absolute;left:50%;top:4px;width:1px;height:4px;background:#94a8b7;
  transform-origin:50% 71px;transform:translateX(-50%) rotate(calc(var(--i) * 6deg));z-index:1;
}
.pdt-dial-tick.is-hour{width:2px;height:8px;background:#244b68}
.pdt-dial-number{
  position:absolute;transform:translate(-50%,-50%);font-size:12px;line-height:1;
  font-weight:800;color:#173f60;z-index:2;font-variant-numeric:tabular-nums;
}
.pdt-clock-style-analog_dark{background:#071d2e!important;color:#f4fbff!important}
.pdt-clock-style-analog_dark .pdt-analog-clock{
  background:radial-gradient(circle at center,#11344f 0 74%,#061b2a 75% 100%)!important;
  border-color:#cfeeff!important;
}
.pdt-clock-style-analog_dark .pdt-dial-number{color:#fff!important}
.pdt-clock-style-seven_segment #pdt-clock{
  display:flex!important;flex-direction:column;align-items:center!important;justify-content:center!important;
  padding:14px 10px;border-radius:10px;background:#06243e!important;color:#b9ecff!important;
}
.pdt-seven-main{
  font-size:30px!important;font-weight:800;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:.1em;text-shadow:0 0 5px #64cfff,0 0 12px rgba(70,190,255,.65);
}
.pdt-digital-date{display:block;font-size:11px;font-weight:700;margin-bottom:3px}
.pdt-digital-main{display:block;font-size:28px;font-weight:900;font-variant-numeric:tabular-nums}
.pdt-clock-style-minimal #pdt-clock{
  display:flex!important;align-items:flex-end!important;justify-content:center!important;gap:8px!important;
  padding:14px 10px;border-radius:8px;background:#f7f9fb!important;
}
.pdt-minimal-main{font-size:36px;font-weight:700;line-height:1}
.pdt-minimal-date{font-size:11px;font-weight:700;color:#657989;padding-bottom:4px}

/* Restore readable left/right breathing room in the UPDATE body */
#pdt-view-today > [data-widget="updates"] .pdt-update-body,
#pdt-view-today > [data-widget="updates"] .pdt-update-main,
#pdt-view-today > [data-widget="updates"] .pdt-update-priority-section,
#pdt-view-today > [data-widget="updates"] .pdt-update-list,
#pdt-view-today > [data-widget="updates"] .pdt-update-history,
#pdt-view-today > [data-widget="updates"] .pdt-update-manager{
  margin-left:10px!important;
  margin-right:10px!important;
}
#pdt-view-today > [data-widget="updates"] .pdt-update-priority-counts{
  margin-left:8px!important;
  margin-right:8px!important;
}

/* Only Today cards are directly reorderable; tab content stays isolated */
#pdt-view-homecare [data-widget],
#pdt-view-follow [data-widget],
#pdt-view-calc [data-widget]{
  position:static;
}

.pdt-settings-head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
}
.pdt-settings-subtitle{margin:3px 0 0;font-size:11px;color:var(--pdt-muted)}
.pdt-settings-head button{
  width:36px!important;height:36px!important;min-width:36px!important;padding:0!important;
}

@media(max-width:420px){
  .pdt-card-settings-panel{right:6px;left:6px;width:auto}
  .pdt-clock-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* v2.7.9 analog clock geometry fix */
.pdt-analog-clock{
  position:relative!important;
  width:150px!important;
  height:150px!important;
  min-width:150px!important;
  min-height:150px!important;
  border-width:4px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
.pdt-dial-tick{
  left:50%!important;
  top:5px!important;
  width:1px!important;
  height:5px!important;
  transform-origin:50% 70px!important;
}
.pdt-dial-tick.is-hour{
  width:2px!important;
  height:9px!important;
}
.pdt-dial-number{
  width:20px!important;
  height:20px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:12px!important;
  line-height:1!important;
  z-index:3!important;
}
.pdt-hour-hand{
  width:5px!important;
  height:38px!important;
}
.pdt-minute-hand{
  width:4px!important;
  height:52px!important;
}
.pdt-second-hand{
  width:2px!important;
  height:57px!important;
}

/* v2.7.9 UPDATE inner gutter alignment */
#pdt-view-today > [data-widget="updates"] > .pdt-update-priority-counts,
#pdt-view-today > [data-widget="updates"] > .pdt-update-learning-note,
#pdt-view-today > [data-widget="updates"] > .pdt-update-section-title-row,
#pdt-view-today > [data-widget="updates"] > #pdt-update-top,
#pdt-view-today > [data-widget="updates"] > .pdt-update-filters,
#pdt-view-today > [data-widget="updates"] > .pdt-update-list-head,
#pdt-view-today > [data-widget="updates"] > #pdt-update-all,
#pdt-view-today > [data-widget="updates"] > .pdt-update-local-manager{
  margin-left:12px!important;
  margin-right:12px!important;
}
#pdt-view-today > [data-widget="updates"] > .pdt-update-priority-counts{
  margin-top:8px!important;
}

/* v2.7.9 drag interaction */
#pdt-view-today > [data-widget]{
  -webkit-user-drag:none!important;
}
.pdt-card-drag{
  touch-action:none!important;
  cursor:grab!important;
}
#pdt-view-today.is-sorting{
  touch-action:none!important;
  cursor:grabbing!important;
}

.pdt-card-settings-panel{
  pointer-events:auto!important;
}
.pdt-card-settings{
  position:relative!important;
  z-index:72!important;
}

/* v2.7.10 bounded in-place sorting */
.pdt-drag-ghost{display:none!important}
#pdt-view-today.is-sorting{
  cursor:grabbing!important;
  overscroll-behavior:contain;
}
#pdt-view-today > .pdt-widget.is-dragging{
  opacity:.58!important;
  transform:scale(.995);
  box-shadow:0 8px 22px rgba(20,60,85,.12)!important;
}
#pdt-view-today > .pdt-widget.pdt-drop-target{
  outline:2px dashed #2b7fb0!important;
  outline-offset:3px!important;
}
.pdt-card-drag{
  cursor:grab!important;
  touch-action:none!important;
  user-select:none!important;
  -webkit-user-select:none!important;
}
.pdt-card-drag:active{cursor:grabbing!important}

/* v2.7.11 digital clock readability */
.pdt-clock-style-digital_full #pdt-clock,
.pdt-clock-style-digital_compact #pdt-clock{
  min-height:150px!important;
  padding:20px 14px!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
}
.pdt-clock-style-digital_full .pdt-digital-date,
.pdt-clock-style-digital_compact .pdt-digital-date{
  font-size:15px!important;
  line-height:1.25!important;
  font-weight:800!important;
  margin-bottom:5px!important;
}
.pdt-clock-style-digital_full .pdt-digital-main,
.pdt-clock-style-digital_compact .pdt-digital-main{
  font-size:40px!important;
  line-height:1.05!important;
  font-weight:900!important;
  letter-spacing:.01em!important;
}
@media(max-width:420px){
  .pdt-clock-style-digital_full #pdt-clock,
  .pdt-clock-style-digital_compact #pdt-clock{
    min-height:142px!important;
    padding:18px 10px!important;
  }
  .pdt-clock-style-digital_full .pdt-digital-date,
  .pdt-clock-style-digital_compact .pdt-digital-date{
    font-size:14px!important;
  }
  .pdt-clock-style-digital_full .pdt-digital-main,
  .pdt-clock-style-digital_compact .pdt-digital-main{
    font-size:38px!important;
  }
}
