#dashboard-workspace-tabs[hidden], #dashboard-overview[hidden], #double-touch-dashboard[hidden],
#double-touch-results[hidden], #double-touch-dialog [hidden] { display: none !important; }

.double-touch-tabs { display: flex; width: fit-content; max-width: 100%; gap: 4px; margin-bottom: 18px; padding: 4px; border: 1px solid #d9e8ef; border-radius: 12px; background: #edf5f9; }
.double-touch-tabs button { min-height: 38px; padding: 7px 15px; border: 0; border-radius: 8px; color: #405e72; background: transparent; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.double-touch-tabs button[aria-selected="true"] { background: #fff; color: #075b74; box-shadow: 0 1px 4px #153a541c; }
:is(.double-touch-tabs, #double-touch-dashboard, #double-touch-dialog) :is(button,select,textarea):focus-visible { outline: 2px solid #087e9a; outline-offset: 3px; }

#double-touch-dashboard { --touch-ink: #16374c; --touch-muted: #506a7d; --touch-line: #dce9ef; color: var(--touch-ink); }
.double-touch-header { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.double-touch-header h2 { margin: 0 0 5px; font-size: 26px; text-align: right; }
.double-touch-header p, .double-touch-message { margin: 0; color: var(--touch-muted); font-size: 13px; line-height: 1.6; }
.double-touch-message { margin: 12px 0 16px; }
.double-touch-filters { display: flex; align-items: flex-end; gap: 8px; }
.double-touch-filters label { display: grid; gap: 4px; color: var(--touch-muted); font-size: 12px; }
.double-touch-filters select { min-height: 39px; padding: 5px 10px; border: 1px solid var(--touch-line); border-radius: 8px; background: #fff; color: var(--touch-ink); font: inherit; font-size: 13px; }
.double-touch-filters .btn-secondary { min-height: 39px; }
.double-touch-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 16px; }
.double-touch-summary > div { display: grid; gap: 4px; padding: 13px 16px; border: 1px solid var(--touch-line); border-radius: 12px; background: #fff; }
.double-touch-summary span { color: var(--touch-muted); font-size: 12px; }
.double-touch-summary strong { font-size: 25px; font-variant-numeric: tabular-nums; }
.double-touch-summary [data-tone="done"] strong { color: #087a56; }
.double-touch-summary [data-tone="pending"] strong { color: #a24213; }
.double-touch-group { margin-bottom: 16px; border: 1px solid var(--touch-line); border-radius: 12px; background: #fff; }
.double-touch-group h3 { margin: 0; padding: 11px 14px; border-radius: 11px 11px 0 0; background: #fff6eb; color: #864013; font-size: 14px; }
.double-touch-group[data-tone="done"] h3 { background: #eaf8f0; color: #116347; }
.double-touch-group ul { margin: 0; padding: 0; list-style: none; }
.double-touch-row { display: flex; align-items: center; min-width: 0; border-top: 1px solid var(--touch-line); }
.double-touch-row-open { display: grid; grid-template-columns: 24px minmax(90px,1.1fr) minmax(70px,.8fr) minmax(100px,1.35fr); flex: 1; align-items: center; gap: 12px; min-width: 0; min-height: 54px; padding: 8px 14px; border: 0; border-radius: 6px; background: none; color: var(--touch-ink); font: inherit; font-size: 13px; text-align: right; cursor: pointer; }
.double-touch-row-open:hover:not(:disabled), .double-touch-row-open:focus-visible { background: #f2fafc; }
.double-touch-row-open:disabled { cursor: default; }
.double-touch-row-mark { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #fff1df; color: #85430e; font-weight: 800; }
[data-tone="done"] .double-touch-row-mark { background: #e1f5eb; color: #087a56; }
.double-touch-row-project { display: grid; gap: 3px; }
.double-touch-row-project strong, .double-touch-company { overflow-wrap: anywhere; }
.double-touch-row-project small, .double-touch-note-preview { color: var(--touch-muted); }
.double-touch-note { position: relative; display: block; min-width: 0; }
.double-touch-note-preview { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.double-touch-note-popover { display: none; position: absolute; z-index: 3; inset-inline-end: 0; bottom: 100%; width: min(400px,72vw); max-height: min(300px,55vh); overflow: auto; padding: 10px 12px; border: 1px solid #c3dbe6; border-radius: 9px; background: #fff; box-shadow: 0 8px 22px #14384a24; color: var(--touch-ink); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.double-touch-note:hover .double-touch-note-popover, .double-touch-row-open:focus-visible .double-touch-note-popover { display: block; }
.double-touch-row-report { flex: none; min-width: 52px; min-height: 36px; margin: 6px 0 6px 12px; padding: 6px 9px; border: 1px solid #c6e3ee; border-radius: 8px; background: #edf8fc; color: #075b74; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.double-touch-row-report:hover { background: #d9eff7; }
.double-touch-empty { padding: 13px 14px; color: var(--touch-muted); font-size: 13px; }

#page-projects .projects-table { min-width: 1120px; }
#page-projects :is(.double-touch-column,.double-touch-cell) { position: sticky; inset-inline-end: 0; z-index: 1; border-inline-start: 1px solid var(--projects-line); }
#page-projects .double-touch-column { width: 90px; text-align: center; white-space: nowrap; cursor: help; }
#page-projects .double-touch-cell { background: #fff; text-align: center; }
.double-touch-check { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid #78b7cc; border-radius: 7px; background: #edf9fc; color: #0a627b; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.double-touch-check:hover:not(:disabled) { background: #d3eef6; border-color: #0a6f8a; }
.double-touch-check:disabled { background: #f6f9fb; border-color: #ccdce4; color: #687f8f; cursor: default; }
.double-touch-check.is-done { background: #e1f5eb; border-color: #94cdb1; color: #087a56; }
.double-touch-note-tag { display: inline-block; width: fit-content; padding: 3px 8px; border-radius: 6px; background: #e1f5eb; color: #116347; direction: ltr; }

#double-touch-dialog { width: min(480px,calc(100vw - 26px)); max-height: calc(100dvh - 28px); margin: auto; padding: 0; overflow: auto; border: 1px solid #dce9ef; border-radius: 16px; background: #fff; color: #16374c; box-shadow: 0 16px 60px #17394d40; }
#double-touch-dialog::backdrop { background: #0f273e88; }
#double-touch-form { padding: 18px 22px; }
#double-touch-form header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
#double-touch-form h2 { margin: 0; font-size: 22px; }
#double-touch-form header button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #dce9ef; border-radius: 8px; background: #f4f8fb; color: #16374c; font-size: 20px; cursor: pointer; }
.double-touch-dialog-project, #double-touch-dialog-owner { margin: 0 0 9px; color: #506a7d; font-size: 13px; overflow-wrap: anywhere; }
#double-touch-form label { display: block; margin: 15px 0 6px; font-size: 14px; font-weight: 700; }
#double-touch-note { width: 100%; min-height: 105px; resize: vertical; }
.double-touch-form-error { margin: 8px 0 0; color: #b42318; font-size: 13px; }
.double-touch-dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.double-touch-dialog-actions button { min-height: 42px; }

@media (max-width: 650px) {
  .double-touch-tabs button, .double-touch-filters :is(select,button) { min-height: 44px; }
  .double-touch-summary { gap: 6px; }
  .double-touch-summary > div { padding: 9px; }
  .double-touch-row-open { grid-template-columns: 22px minmax(0,1fr); gap: 3px 8px; }
  .double-touch-company, .double-touch-note { grid-column: 2; }
  #page-projects .double-touch-check { width: 44px; height: 44px; }
  #double-touch-note { font-size: 16px; }
}
.double-touch-reminder[hidden], .double-touch-reminder [hidden], body.auth-locked .double-touch-reminder { display: none; }
.double-touch-reminder {
  --touch-reminder-progress: 0%;
  --touch-reminder-ring: #0788ac;
  --touch-reminder-track: #d4eaf2;
  position: fixed; z-index: 110; right: max(168px, calc(env(safe-area-inset-right) + 148px));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: 112px; height: 112px; padding: 6px; box-sizing: border-box; border-radius: 50%;
  background: conic-gradient(var(--touch-reminder-ring) var(--touch-reminder-progress), var(--touch-reminder-track) 0);
  box-shadow: 0 6px 18px #12445a35; pointer-events: none;
  animation: double-touch-reminder-in .45s ease-out both;
}
.double-touch-reminder.is-finished { background: #9cd8bf; }
.double-touch-reminder-face {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 100%; height: 100%; box-sizing: border-box; border-radius: 50%; padding: 6px;
  background: #fff; color: #14364a; text-align: center;
}
.double-touch-personal-progress {
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  display: grid; justify-items: center; gap: 2px; width: 112px; box-sizing: border-box;
  padding: 7px 10px; border: 1px solid #bcdce8; border-radius: 12px;
  background: #fff; color: #14364a; box-shadow: 0 4px 14px #12445a24;
  text-align: center; font-size: 12px; line-height: 1.3;
}
#double-touch-personal-count { font-size: 20px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.double-touch-reminder.is-urgent {
  --touch-reminder-ring: #b42318;
  --touch-reminder-track: #fed7d3;
  animation: double-touch-reminder-in .45s ease-out both, double-touch-reminder-warning 1.6s ease-in-out infinite;
}
.double-touch-reminder.is-urgent .double-touch-reminder-face,
.double-touch-reminder.is-urgent .double-touch-personal-progress { background: #fff2f0; color: #8f1b13; }
.double-touch-reminder.is-urgent .double-touch-personal-progress { border-color: #d88078; }
#double-touch-reminder-caption { max-width: 100%; font-size: 12px; font-weight: 700; line-height: 1.35; }
#double-touch-countdown { font-size: 24px; font-weight: 750; line-height: 1.05; font-variant-numeric: tabular-nums; }
@keyframes double-touch-reminder-in {
  from { transform: translateY(14px) scale(.85); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes double-touch-reminder-warning {
  0%, 100% { box-shadow: 0 0 0 2px #b4231840, 0 6px 18px #b4231833; }
  50% { box-shadow: 0 0 0 6px #b4231880, 0 6px 22px #b4231855; }
}
@media (max-width: 1024px) {
  .double-touch-reminder {
    width: 94px; height: 94px; padding: 4px;
    right: max(12px, env(safe-area-inset-right)); bottom: calc(72px + env(safe-area-inset-bottom));
  }
  #double-touch-countdown { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .double-touch-reminder, .double-touch-reminder.is-urgent { animation: none; }
}
