/* The DDI's last two steps: top problem apps and screen time screenshots (js/ddi-extras.js) */
#screen-survey .ddi-apps,#screen-survey .ddi-screen{display:block;}
#screen-survey .ddi-apps-card,#screen-survey .ddi-screen-card{width:min(620px,100%);margin:0 auto;text-align:left;gap:14px;}

/* picked apps, numbered in the order picked */
.ddi-apps-picked{display:flex;flex-wrap:wrap;gap:8px;min-height:36px;align-items:center;}
.ddi-apps-empty{color:#5d6b65;font-size:14px;}
.ddi-app-chip{display:inline-flex;align-items:center;gap:8px;padding:6px 6px 6px 8px;border:2px solid var(--ember);background:#fff8ec;color:#0f1a17;font-size:15px;font-weight:600;}
.ddi-app-chip b{display:inline-grid;place-items:center;width:22px;height:22px;background:var(--ember);color:#0f1a17;font-size:12px;}
#screen-survey .ddi-app-chip button{min-height:0;width:28px;height:28px;padding:0;border:0;background:transparent;color:#44524c;font-size:20px;line-height:1;cursor:pointer;}
#screen-survey .ddi-app-chip button:hover{color:#0f1a17;}

/* the bar, and the list that opens under it */
.ddi-apps-combo{position:relative;}
#screen-survey .survey-select-card .ddi-apps-input{padding-right:44px;cursor:text;}
.ddi-apps-caret{position:absolute;right:16px;top:22px;width:10px;height:10px;border-right:2px solid #44524c;border-bottom:2px solid #44524c;transform:rotate(45deg);pointer-events:none;transition:transform .15s;}
.ddi-apps-card.is-open .ddi-apps-caret{transform:rotate(-135deg);top:26px;}
.ddi-apps-list{max-height:min(46vh,380px);overflow-y:auto;overscroll-behavior:contain;border:2px solid #cad3cd;border-top:0;background:#fff;}
.ddi-apps-list[hidden]{display:none;}
#screen-survey .ddi-apps-list .ddi-apps-group{margin:0;padding:10px 14px 4px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#5d6b65;background:#f6f8f7;position:sticky;top:0;z-index:1;}
#screen-survey .survey-select-card .ddi-apps-row{display:flex;align-items:center;gap:12px;padding:10px 14px;min-height:44px;font-size:16px;font-weight:500;letter-spacing:0;text-transform:none;color:#0f1a17;cursor:pointer;}
#screen-survey .survey-select-card .ddi-apps-row:hover,
#screen-survey .survey-select-card .ddi-apps-row.is-active{background:#f1f4f2;}
#screen-survey .survey-select-card .ddi-apps-row.is-on{background:#fff8ec;font-weight:700;}
#screen-survey .survey-select-card .ddi-apps-row.is-off{color:#9aa49f;cursor:default;}
#screen-survey .survey-select-card .ddi-apps-row input{width:20px;height:20px;min-height:0;padding:0;margin:0;flex:none;accent-color:var(--ember);border:0;cursor:inherit;}
.ddi-apps-note{margin:0;font-size:14px;color:#5d6b65;}
#screen-survey .ddi-apps-card .scale-actions,#screen-survey .ddi-screen-card .scale-actions{flex-wrap:wrap;gap:10px;margin-top:4px;}
/* the survey's answer-box look (#screen-survey .scale button) doesn't apply to these buttons */
#screen-survey .scale .scale-actions .btn{min-height:48px;padding:12px 22px;font-size:15px;}
#screen-survey .scale .scale-actions .btn-primary{background:var(--ember);color:var(--ember-ink);border-color:var(--ember-edge);}
#screen-survey .scale .scale-actions .btn-primary:hover:not(:disabled){background:var(--ember-hover);border-color:var(--ember-edge);}
#screen-survey .scale .scale-actions .btn-ghost{background:transparent;color:#0f1a17;border-color:#0f1a17;}
#screen-survey .scale .scale-actions .btn-ghost:hover:not(:disabled){background:#0f1a17;color:#fff;}
#screen-survey .scale .scale-actions .btn:disabled{opacity:.45;cursor:default;}

/* screen time */
.ddi-screen-lead{margin:0;font-size:16px;line-height:1.5;color:#0f1a17;}
.ddi-steps{margin:0;padding-left:22px;display:grid;gap:8px;font-size:16px;line-height:1.45;color:#0f1a17;}
.ddi-screen-own,.ddi-screen-note{margin:0;font-size:14px;line-height:1.5;color:#44524c;}
.ddi-screen-own{padding:10px 12px;background:#f6f8f7;border-left:3px solid var(--ember);}
#screen-survey .scale .ddi-link,#screen-survey .scale .ddi-link:hover:not(:disabled){background:none;border:0;padding:0;min-height:0;font:inherit;font-size:15px;color:#0f1a17;text-decoration:underline;cursor:pointer;}
.ddi-shots{display:flex;flex-wrap:wrap;gap:10px;}
.ddi-shots:empty{display:none;}
.ddi-shot{margin:0;width:84px;display:grid;gap:4px;}
.ddi-shot img{width:84px;height:150px;object-fit:cover;object-position:top;border:1px solid #cad3cd;background:#f1f4f2;}
.ddi-shot figcaption{font-size:12px;color:#44524c;line-height:1.25;}
.ddi-shot.is-uploading img{opacity:.5;}
.ddi-shot.is-error figcaption{color:#a2341f;}

/* the DDI tile while its screen time is still to come */
.ddi-screen-pending .ddi-tile-footer .tile-note{font-weight:700;}
