/*
 * Seller home page (dashboard-v3.php and dashboard-demo.php): the home content
 * only. The shell around it (tokens, sidebar, top bar, notices, buttons) is in
 * app-shell.css, which the page loads first.
 */

/* ----------------------------------------------------------------- greeting */

.d3-hello{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 24px}
.d3-hello-txt{display:flex;flex-direction:column;gap:6px}
.d3-hello-txt .d3-muted{font-size:14px}
.d3-hello h1{font-size:32px;line-height:1.1;font-weight:700;letter-spacing:-.025em;color:var(--d3-ink)}
.d3-running{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;background:var(--d3-live-tint);
            color:var(--d3-live-text);font-size:14px;font-weight:600}
.d3-running--off{background:var(--d3-chip);color:var(--d3-brand-ink)}

.d3-hello--new{flex-direction:column;align-items:flex-start;gap:8px;max-width:640px}
.d3-hello--new h1{font-size:36px}
.d3-hello--new h1 span{color:var(--d3-brand)}
.d3-hello--new p{font-size:17px;line-height:1.5;color:var(--d3-ink-2)}

.d3-live{width:8px;height:8px;border-radius:50%;background:var(--d3-live);display:inline-block;flex:none;animation:d3-pulse 2s ease-out infinite}
.d3-live-sm{width:6px;height:6px}

/* ----------------------------------------------------------------- stats */

.d3-stats{display:grid;grid-template-columns:repeat(4,1fr);border-radius:22px;background:var(--d3-surface);border:1px solid var(--d3-line);overflow:hidden}
.d3-stat{padding:20px 22px;display:flex;flex-direction:column;gap:8px;border-left:1px solid var(--d3-line-soft);animation:d3-rise .45s var(--d3-spring) both}
.d3-stat:first-child{border-left:0}
.d3-stat-label{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--d3-ink-2)}
.d3-stat-ico{width:26px;height:26px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;flex:none}
.d3-stat-ico svg{stroke-width:2.2}
.d3-stat-value{font-size:30px;line-height:1;font-weight:700;letter-spacing:-.02em}
.d3-stat-note{font-size:12px;color:var(--d3-ink-3)}

/* ----------------------------------------------------------------- cards */


.d3-pair{display:flex;flex-wrap:wrap;gap:16px;align-items:stretch}
.d3-todo{flex:999 1 560px;min-width:0}
.d3-queue{flex:1 1 320px;min-width:0}

.d3-todo-row{display:flex;align-items:center;gap:14px;padding:14px 0;border-top:1px solid var(--d3-line-soft)}
.d3-card-head + .d3-todo-row{border-top:0}
.d3-todo-row.is-new{animation:d3-rise .45s var(--d3-spring) both}
.d3-todo-row.is-leaving{opacity:0;transform:translateX(12px);transition:opacity .2s ease,transform .2s ease}
.d3-todo-ico{width:46px;height:46px;border-radius:15px;display:inline-flex;align-items:center;justify-content:center;flex:none}
.d3-todo-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.d3-todo-title{font-size:16px;font-weight:600}
.d3-todo-why{font-size:14px;line-height:1.45;color:var(--d3-ink-2)}
.d3-todo-acts{display:flex;align-items:center;gap:10px;flex:none}
.d3-done{width:44px;height:44px;border:1px solid var(--d3-line);border-radius:50%;background:#FFFFFF;display:inline-flex;align-items:center;
         justify-content:center;flex:none;cursor:pointer;transition:background .15s ease,border-color .15s ease}
.d3-done:hover{background:var(--d3-live-tint);border-color:#BFDCC9}
.d3-done:hover svg{stroke:var(--d3-live)}
.d3-todo-empty{padding:24px 0 8px;text-align:center;display:flex;flex-direction:column;gap:4px;animation:d3-rise .45s var(--d3-spring) both}
.d3-todo-empty strong{font-size:16px}
.d3-todo-empty span{font-size:14px;color:var(--d3-ink-2)}

.d3-q-row{display:flex;align-items:center;gap:12px;padding:9px 0;border-top:1px solid var(--d3-line-soft)}
.d3-card-head + .d3-q-row{border-top:0}
.d3-q-thumb{width:44px;height:44px;border-radius:12px;flex:none;object-fit:cover;background:var(--d3-track)}
.d3-q-thumb--empty,.d3-q-thumb--pin{display:inline-flex;align-items:center;justify-content:center}
.d3-q-thumb--pin{background:#FDEAE3}
.d3-q-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.d3-q-title{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.d3-q-when{font-size:12px;color:var(--d3-ink-3)}
.d3-chip{flex:none;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:700}
.d3-chip--ig{background:#EDE7FD;color:#3D2496}
.d3-chip--fb{background:#E4ECFB;color:#2A4C8F}
.d3-chip--pi{background:#FDEAE3;color:#A3401F}
.d3-q-links{margin-top:6px;display:flex;flex-wrap:wrap;gap:6px 18px}
.d3 .d3-q-links a,.d3 .d3-q-empty a{font-size:14px;font-weight:700;color:var(--d3-brand-ink);text-underline-offset:3px}
.d3-q-empty{padding:12px 0 4px;display:flex;flex-direction:column;gap:4px}
.d3-q-empty strong{font-size:15px}
.d3-q-empty span{font-size:14px;color:var(--d3-ink-2)}

/* ----------------------------------------------------------------- tools */

.d3-tools{display:flex;flex-direction:column;gap:16px}
.d3-tools h2{font-size:20px;font-weight:700}
.d3-tool-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(240px,100%),1fr));gap:12px}
.d3 .d3-tool{padding:14px;border-radius:18px;background:var(--d3-surface);border:1px solid var(--d3-line);display:flex;align-items:center;gap:12px;
          text-decoration:none;color:var(--d3-ink);transition:transform .25s var(--d3-spring),box-shadow .25s ease}
.d3-tool:hover{transform:translateY(-2px);box-shadow:0 12px 26px -18px rgba(61,36,150,.45)}
.d3-tool-ico{width:40px;height:40px;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;flex:none}
.d3-tool-txt{flex:1;min-width:0;display:flex;flex-direction:column}
.d3-tool-name{font-size:15px;font-weight:600}
.d3-tool-sub{font-size:13px;color:var(--d3-ink-3)}
.d3-tool-sub--capped{color:var(--d3-warn-text);font-weight:600}

.d3 .d3-locked{padding:16px 18px;border-radius:18px;border:1px dashed var(--d3-line-strong);display:flex;align-items:center;gap:12px;
            text-decoration:none;color:var(--d3-ink);transition:background .15s ease}
.d3-locked:hover{background:var(--d3-nav-tile)}
.d3-locked-ico{width:40px;height:40px;border-radius:13px;background:var(--d3-chip);display:inline-flex;align-items:center;justify-content:center;flex:none}
.d3-locked-txt{flex:1;min-width:0;display:flex;flex-direction:column}
.d3-locked-h{font-size:15px;font-weight:600}
.d3-locked-p{font-size:13px;color:var(--d3-ink-3)}
.d3-locked-cta{font-size:14px;font-weight:700;color:var(--d3-brand-ink);white-space:nowrap}

/* ----------------------------------------------------------------- new account */

.d3-setup{padding:26px;border-radius:26px;gap:18px;box-shadow:0 16px 36px -26px rgba(61,36,150,.4)}
.d3-setup-head{display:flex;align-items:center;gap:16px}
.d3-setup-head > div:last-child{display:flex;flex-direction:column;gap:2px}
.d3-setup-head .d3-muted{font-size:14px;color:var(--d3-ink-2)}
.d3-ring{position:relative;width:56px;height:56px;flex:none}
.d3-ring > span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700}
.d3-ring-bar{transition:stroke-dashoffset .6s var(--d3-spring)}

.d3-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.d3-step{border-radius:18px;border:1px solid var(--d3-line-soft);background:var(--d3-surface);overflow:hidden}
.d3-step.is-active{background:var(--d3-surface-2);border-color:var(--d3-line-strong)}
.d3-step-btn{width:100%;padding:16px 18px;display:flex;align-items:center;gap:14px;border:0;background:transparent;text-align:left;cursor:pointer}
.d3-step-btn:disabled{cursor:default;color:inherit}
.d3-step-n{width:30px;height:30px;border-radius:50%;border:2px solid #C3B9E2;display:inline-flex;align-items:center;justify-content:center;
           font-size:13px;font-weight:700;color:#8A7FB0;flex:none}
.d3-step.is-active .d3-step-n{border-color:var(--d3-brand);color:var(--d3-brand)}
.d3-step-n--done{border:0;background:var(--d3-live)}
.d3-step-txt{flex:1;display:flex;flex-direction:column;gap:1px}
.d3-step-title{font-size:16px;font-weight:600;color:var(--d3-ink)}
.d3-step.is-done .d3-step-title{text-decoration:line-through;color:var(--d3-ink-3)}
.d3-step-hint{font-size:13px;color:var(--d3-ink-3)}
.d3-step.is-active .d3-step-hint,.d3-step.is-done .d3-step-hint{display:none}
.d3-step-state{font-size:13px;color:var(--d3-ink-3)}
.d3-step-body{padding:0 18px 20px 62px;display:flex;flex-direction:column;gap:14px;animation:d3-rise .45s var(--d3-spring) both}
.d3-step-body p{font-size:15px;line-height:1.55;color:var(--d3-ink-2);max-width:560px}
.d3-choices{display:flex;flex-wrap:wrap;gap:8px}
.d3-choice{height:44px;padding:0 16px;border-radius:999px;border:1.5px solid var(--d3-line-strong);background:#FFFFFF;font-size:14px;font-weight:600;
           color:var(--d3-ink);cursor:pointer;transition:background .15s ease}
.d3-choice:hover{background:var(--d3-nav-tile)}
.d3-choice[aria-pressed="true"]{border-color:var(--d3-brand);background:var(--d3-chip);color:var(--d3-brand-ink)}
.d3-step-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.d3-skip{border:0;background:none;padding:10px 0;font-size:14px;color:var(--d3-ink-3);cursor:pointer;text-decoration:underline;text-underline-offset:3px}

.d3-goals{display:flex;flex-direction:column;gap:16px}
.d3-goals-head{display:flex;flex-direction:column;gap:4px}
.d3-goals-head h2{font-size:22px;font-weight:700;letter-spacing:-.015em}
.d3-goals-head span{font-size:15px;color:var(--d3-ink-2)}
.d3-goal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:12px}
.d3-goal{padding:18px;border-radius:20px;border:2px solid var(--d3-line);background:var(--d3-surface);text-align:left;display:flex;flex-direction:column;
         gap:10px;cursor:pointer;transition:transform .25s var(--d3-spring),border-color .15s ease,background .15s ease}
.d3-goal:hover{transform:translateY(-2px)}
.d3-goal[aria-checked="true"]{border-color:var(--d3-brand);background:var(--d3-surface-2)}
.d3-goal-ico{width:42px;height:42px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center}
.d3-goal-ico svg{stroke-width:2}
.d3-goal-label{font-size:16px;font-weight:700}
.d3-goal-sub{font-size:13px;line-height:1.45;color:var(--d3-ink-2)}
.d3-picks{padding:8px;border-radius:22px;background:var(--d3-tint);display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:8px;
          animation:d3-rise .45s var(--d3-spring) both}
.d3 .d3-pick{padding:16px;border-radius:16px;background:#FFFFFF;display:flex;flex-direction:column;gap:6px;text-decoration:none;color:var(--d3-ink);
         transition:background .15s ease}
.d3-pick:hover{background:var(--d3-nav-tile)}
.d3-pick-name{font-size:15px;font-weight:700}
.d3-pick-sub{font-size:13px;line-height:1.45;color:var(--d3-ink-2)}
.d3-pick-cta{margin-top:4px;font-size:13px;font-weight:700;color:var(--d3-brand-ink)}

/* ----------------------------------------------------------------- responsive */

@media (max-width:900px){
  .d3-todo,.d3-queue{flex-basis:100%}
}
@media (max-width:700px){
  .d3-stats{grid-template-columns:repeat(2,1fr)}
  .d3-stat{border-left:0;border-top:1px solid var(--d3-line-soft)}
  .d3-stat:nth-child(2n){border-left:1px solid var(--d3-line-soft)}
  .d3-stat:nth-child(-n+2){border-top:0}
  .d3-stat-value{font-size:26px}
  .d3-tool-grid{grid-template-columns:1fr}
  .d3-todo-row{flex-wrap:wrap}
  .d3-todo-txt{flex-basis:calc(100% - 60px)}
  .d3-todo-acts{width:100%;padding-left:60px}
  .d3-hello h1{font-size:28px}
  .d3-hello--new h1{font-size:30px}
  .d3-step-body{padding-left:18px}
  .d3-goal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .d3-goal{padding:14px;gap:8px}
  .d3-goal-label{font-size:15px}
  .d3-locked{flex-wrap:wrap}
  .d3-locked-txt{flex-basis:calc(100% - 52px)}
  .d3-locked-cta{padding-left:52px}
}
@media (max-width:400px){
  /* At 320px the CTA plus the 44px done button overflowed the 60px indent by 12px. */
  .d3-todo-acts{padding-left:0}
}
