/* Deepwork inside admin.asrorbek.com, same paper / ink / serif language as asrorbek.com */
:root { --g1: #2a78d6; --g2: #eb6834; --g3: #1baf7a; }

.dw-head { padding: 44px 0 28px; display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.dw-head h1 { font: 400 clamp(36px, 4.4vw, 52px)/1.02 var(--serif); letter-spacing: -0.02em; }
.dw-head h1 em { color: var(--faint); }
.dw-head .sub { margin-top: 10px; color: var(--muted); display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: center; }
.dw-head .sub b { color: var(--ink); font-weight: 500; }
.dw-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn2 { height: 38px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--rule); font-size: 13.5px; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; background: transparent; transition: border-color .2s, background .2s, transform .2s var(--ease); white-space: nowrap; }
.btn2:hover { border-color: var(--ink); }
.btn2:active { transform: scale(.98); }
.btn2.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn2.dark:hover { background: #2a2a2a; }
.btn2[disabled] { opacity: .45; pointer-events: none; }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--rule); color: var(--muted); transition: all .2s; flex: none; }
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.icon-btn svg { width: 12px; height: 12px; }

.dw-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 16px; align-items: start; }
.dw-card { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 22px; min-width: 0; }
.dw-card + .dw-card { margin-top: 16px; }
.dw-card h2 { font: 500 13px/1.3 var(--sans); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dw-card h2 small { font-weight: 400; color: var(--faint); font-size: 12px; }
.dw-card h2 a { font-weight: 400; color: var(--muted); font-size: 12.5px; border-bottom: 1px solid var(--rule); }
.dw-card h2 a:hover { color: var(--ink); border-color: var(--ink); }
.dw-label { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }

/* deep work rows */
.deep { margin-top: 14px; border-top: 1px solid var(--rule); }
.deep-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.deep-row .t { min-width: 0; cursor: pointer; }
.deep-row .t .ti { font: 400 22px/1.25 var(--serif); letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; transition: color .3s; }
.deep-row .t .me { margin-top: 4px; font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.deep-row.done .ti { color: var(--faint); text-decoration: line-through; text-decoration-thickness: 1px; }
.deep-row.expired .ti { color: var(--faint); }
.deep-row .r { display: flex; align-items: center; gap: 10px; }
.deep-row .time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 54px; text-align: right; }
.deep-row.running .time { color: var(--ink); font-weight: 500; }
.gdot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.tag { font-size: 11px; padding: 1px 7px; border-radius: 99px; border: 1px solid var(--rule); color: var(--muted); }
.tag.exp { color: var(--poor-ink); border-color: #f0c9c9; }

.check { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #c9c4b9; display: grid; place-items: center; transition: background .25s, border-color .25s, transform .25s var(--ease); }
.check:hover { border-color: var(--ink); }
.check svg { width: 12px; height: 12px; opacity: 0; transform: scale(.4); transition: all .3s var(--ease); color: var(--paper); }
.check.on { background: var(--ink); border-color: var(--ink); }
.check.on svg { opacity: 1; transform: none; }
.check.pop { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.18); } }
.check[disabled] { border-style: dashed; opacity: .6; pointer-events: none; }
.check.sq { border-radius: 7px; width: 20px; height: 20px; }
.check.sq svg { width: 10px; height: 10px; }

.slot-empty { display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.slot-empty .ring { width: 26px; height: 26px; border-radius: 50%; border: 1.5px dashed #d6d1c6; }
.inp { width: 100%; height: 42px; border-radius: 10px; border: 1px solid transparent; background: transparent; padding: 0 12px; font: inherit; font-size: 15px; color: var(--ink); transition: border-color .2s, background .2s; }
.inp:hover { background: var(--wash); }
.inp:focus { outline: none; border-color: var(--ink); background: var(--card); }
.inp.serif { font: 400 20px var(--serif); height: 46px; }
.inp::placeholder { color: var(--faint); }
select.inp { appearance: none; -webkit-appearance: none; padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 18px, calc(100% - 10px) 18px; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
textarea.inp { height: auto; padding: 12px; line-height: 1.6; resize: vertical; }
.inp.box { border-color: var(--rule); background: var(--card); }

/* secondary tasks */
.tasks { list-style: none; margin-top: 10px; }
.tasks li { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--grid); font-size: 14.5px; }
.tasks li.done span.x { color: var(--faint); text-decoration: line-through; }
.tasks li span.x { cursor: pointer; }
.tasks li .del { opacity: 0; color: var(--faint); font-size: 18px; line-height: 1; padding: 0 4px; transition: opacity .2s; }
.tasks li:hover .del { opacity: 1; }
.tasks li .del:hover { color: var(--poor-ink); }
.add { display: flex; gap: 8px; margin-top: 8px; }
.add .inp { height: 38px; font-size: 14px; }

/* protocol timeline */
.proto { list-style: none; margin-top: 12px; position: relative; }
.proto li { display: grid; grid-template-columns: 52px 22px 1fr; gap: 12px; align-items: center; padding: 10px 0; font-size: 14.5px; position: relative; }
.proto li .h { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.proto li.now .h { color: var(--ink); font-weight: 500; }
.proto li.now::before { content: ""; position: absolute; left: -22px; top: 50%; width: 10px; height: 1px; background: var(--ink); }
.proto li.done .x { color: var(--faint); text-decoration: line-through; }
.proto-edit .row { display: grid; grid-template-columns: 124px 1fr 34px; gap: 8px; margin-top: 8px; align-items: center; }
.proto-edit input[type=time] { font-variant-numeric: tabular-nums; }

/* goals */
.goals { list-style: none; margin-top: 12px; }
.goals li { padding: 12px 0; border-bottom: 1px solid var(--grid); }
.goals li:last-child { border-bottom: 0; }
.goals .gt { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.goals .gt b { margin-left: auto; font-weight: 500; font-variant-numeric: tabular-nums; }
.goals .bar { margin-top: 8px; height: 6px; border-radius: 6px; background: var(--wash); overflow: hidden; }
.goals .bar i { display: block; height: 100%; border-radius: 6px; transition: width .9s var(--ease); }
.goals .gm { margin-top: 5px; font-size: 12px; color: var(--faint); }

/* running timer pill */
.timerbar { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(calc(100% + 40px)); visibility: hidden; z-index: 40; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 18px; border-radius: 99px; background: var(--ink); color: var(--paper); box-shadow: 0 12px 34px rgba(0,0,0,.22); transition: transform .5s var(--ease), visibility .5s; max-width: calc(100vw - 32px); }
.timerbar.on { transform: translateX(-50%); visibility: visible; }
.timerbar .n { font-size: 13.5px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d8d3c9; }
.timerbar .n:hover { color: var(--paper); }
.timerbar .c { font: 500 15px var(--sans); font-variant-numeric: tabular-nums; }
.timerbar button { height: 34px; padding: 0 14px; border-radius: 99px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 500; }
.timerbar::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 2px; border-radius: 2px; background: var(--prism); opacity: .9; }

/* week board */
.goalbar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.goalbar .g { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 16px 18px; min-width: 0; }
.goalbar .g .l { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--faint); }
.goalbar .g .v { margin-top: 8px; font: 400 20px/1.25 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goalbar .g .bar { margin-top: 12px; height: 5px; border-radius: 5px; background: var(--wash); overflow: hidden; }
.goalbar .g .bar i { display: block; height: 100%; border-radius: 5px; transition: width .9s var(--ease); }
.board { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.col { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 14px 12px 12px; min-width: 0; position: relative; display: flex; flex-direction: column; }
.col.today { border-color: #cfc9bd; box-shadow: 0 10px 26px rgba(60,50,30,.07); }
.col.today::before { content: ""; position: absolute; left: 14px; right: 14px; top: -1px; height: 2px; border-radius: 2px; background: var(--prism); }
.col.past { opacity: .72; }
.col .ch { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.col .ch b { font: 400 20px var(--serif); }
.col .ch span { font-size: 12px; color: var(--faint); }
.col .sec { margin-top: 14px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); display: flex; justify-content: space-between; }
.col .dt { display: grid; grid-template-columns: 18px 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--grid); font-size: 13px; line-height: 1.35; align-items: start; cursor: pointer; }
.col .dt .check { width: 18px; height: 18px; border-width: 1.3px; margin-top: 1px; }
.col .dt .check svg { width: 9px; height: 9px; }
.col .dt .tt { min-width: 0; }
.col .dt .tt span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.col .dt .tt small { display: flex; gap: 6px; align-items: center; color: var(--faint); font-size: 11px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.col .dt.done span { color: var(--faint); text-decoration: line-through; }
.col .dt.empty { display: block; color: var(--faint); font-style: italic; font-family: var(--serif); font-size: 15px; }
.col .dt:not(.empty):has(input) { grid-template-columns: 0 1fr; gap: 0; }
.col .tot { font-size: 11.5px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.col .ot { list-style: none; min-height: 40px; flex: 1; border-radius: 8px; transition: background .2s; }
.col .ot.drop { background: var(--wash); outline: 1px dashed var(--axis); }
.col .ot li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; padding: 6px 0; font-size: 12.5px; line-height: 1.35; align-items: start; cursor: grab; }
.col .ot li .check { margin-top: 1px; }
.col .ot li.done span { color: var(--faint); text-decoration: line-through; }
.col .ot li.dragging { opacity: .4; }
.col .addo { margin-top: 6px; }
.col .addo input { width: 100%; height: 30px; border: 1px dashed var(--rule); border-radius: 8px; background: transparent; padding: 0 8px; font: inherit; font-size: 12.5px; color: var(--ink); }
.col .addo input:focus { outline: none; border-style: solid; border-color: var(--ink); }
.status-mark { width: 12px; height: 12px; display: inline-block; vertical-align: -1px; }

/* planner */
.plan { max-width: 720px; margin: 0 auto; }
.steps { display: flex; gap: 6px; margin: 4px 0 28px; flex-wrap: wrap; }
.steps span { height: 4px; flex: 1; min-width: 18px; border-radius: 4px; background: var(--rule); transition: background .4s; }
.steps span.on { background: var(--ink); }
.plan h2.q { font: 400 clamp(28px, 3.4vw, 38px)/1.1 var(--serif); letter-spacing: -0.015em; }
.plan h2.q em { color: var(--faint); }
.plan .hint { color: var(--muted); margin-top: 8px; font-size: 14px; }
.plan .fields { margin-top: 26px; }
.plan .f { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.plan .f .n { font: italic 400 20px var(--serif); color: var(--faint); }
.plan .f.deep { grid-template-columns: 30px 1fr 200px; }
.plan .nav { display: flex; justify-content: space-between; margin-top: 32px; gap: 12px; }
.plan .sumday { padding: 14px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 110px 1fr; gap: 16px; font-size: 14px; }
.plan .sumday b { font: 400 18px var(--serif); font-weight: 400; }
.plan .sumday ul { list-style: none; color: var(--ink-2); }
.plan .sumday ul li { padding: 1px 0; display: flex; gap: 8px; align-items: center; }
.plan .sumday .none { color: var(--faint); }

/* task detail */
.task-page { max-width: 820px; margin: 0 auto; }
.back { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13.5px; margin-top: 32px; }
.back:hover { color: var(--ink); }
.task-title { min-height: 1.3em; width: 100%; margin-top: 18px; border: 0; background: transparent; font: 400 clamp(32px, 4vw, 46px)/1.1 var(--serif); letter-spacing: -0.02em; color: var(--ink); padding: 4px 0; resize: none; overflow: hidden; }
.task-title:focus { outline: none; }
.task-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.chip { height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--rule); font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; transition: all .2s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { border-color: var(--ink); color: var(--ink); background: var(--card); }
.clock { font: 500 clamp(52px, 8vw, 78px)/1 var(--sans); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; margin-top: 16px; }
.clock small { font-size: .4em; color: var(--faint); letter-spacing: 0; }
.clock-actions { display: flex; gap: 10px; margin-top: 18px; }
.resume { margin-top: 18px; }
.resume.pulse textarea { animation: pulseb 1.6s var(--ease) 2; }
@keyframes pulseb { 50% { border-color: var(--ink); box-shadow: 0 0 0 5px rgba(18,18,18,.06); } }
.log { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.log td { padding: 9px 0; border-bottom: 1px solid var(--grid); font-variant-numeric: tabular-nums; }
.log td:last-child { text-align: right; color: var(--ink); }
.log td:first-child { color: var(--muted); }
.saved { font-size: 12px; color: var(--faint); transition: opacity .4s; }

/* review */
.big { font: 500 40px/1 var(--sans); letter-spacing: -0.03em; }
.big small { font-size: 16px; color: var(--muted); font-weight: 400; margin-left: 3px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rule); border-radius: 18px; background: var(--card); overflow: hidden; }
.tiles > div { padding: 20px; border-left: 1px solid var(--rule); }
.tiles > div:first-child { border-left: 0; }
.tiles .l { font-size: 12.5px; color: var(--muted); }
.tiles .big { margin-top: 10px; }
.tiles .s { margin-top: 8px; font-size: 12px; color: var(--faint); }
.days7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 14px; }
.days7 div { text-align: center; padding: 12px 0 10px; border-radius: 12px; background: var(--paper); border: 1px solid var(--rule); }
.days7 .d { font-size: 11.5px; color: var(--faint); }
.days7 svg { width: 22px; height: 22px; margin: 8px auto 6px; display: block; }
.days7 .h { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.days7 div.today { border-color: var(--ink); }
.legend2 { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; color: var(--muted); }
.legend2 span { display: inline-flex; align-items: center; gap: 6px; }
.legend2 svg { width: 12px; height: 12px; }
.qa { margin-top: 14px; }
.qa label { display: block; font: 400 19px/1.3 var(--serif); margin: 16px 0 8px; }
.past-reviews details { border-top: 1px solid var(--rule); padding: 12px 0; }
.past-reviews summary { cursor: pointer; font-size: 14px; list-style: none; display: flex; justify-content: space-between; }
.past-reviews summary::-webkit-details-marker { display: none; }
.past-reviews p { color: var(--ink-2); font-size: 14px; margin-top: 8px; white-space: pre-wrap; }
.past-reviews p b { display: block; font-weight: 500; color: var(--muted); font-size: 12px; margin-top: 8px; }

/* settings */
.set-row { display: grid; grid-template-columns: 1fr 180px; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--grid); }
.set-row:last-child { border-bottom: 0; }
.set-row .k { font-size: 14.5px; }
.set-row .k small { display: block; color: var(--faint); font-size: 12.5px; margin-top: 2px; }
.set-row .inp { border-color: var(--rule); background: var(--paper); height: 38px; font-variant-numeric: tabular-nums; }
.tg-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 12px; padding: 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--rule); }
.tg-box .who { font-size: 14px; }
.tg-box .who small { display: block; color: var(--faint); font-size: 12.5px; margin-top: 2px; }
.switch { width: 42px; height: 24px; border-radius: 99px; background: var(--rule); position: relative; transition: background .25s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.switch.on { background: var(--ink); }
.switch.on::after { transform: translateX(18px); }

/* home today strip */
.hometoday { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-bottom: 40px; }
.hometoday .dw-card { margin: 0; }
.hometoday .next { font: 400 26px/1.2 var(--serif); margin-top: 12px; }
.hometoday .next small { display: block; font: 400 13px var(--sans); color: var(--muted); margin-top: 6px; }
.toast { position: fixed; left: 50%; top: 18px; transform: translate(-50%, -140%); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 12px; font-size: 13.5px; z-index: 70; transition: transform .45s var(--ease); max-width: calc(100vw - 32px); }
.toast.on { transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .board { grid-template-columns: repeat(7, 240px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .col { scroll-snap-align: start; }
  .board-wrap { margin-right: -32px; }
}
@media (max-width: 900px) {
  .dw-grid, .hometoday { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tiles > div:nth-child(3) { border-left: 0; }
  .tiles > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 720px) {
  .board { grid-template-columns: repeat(7, 78vw); }
  .board-wrap { margin-right: -16px; }
  .goalbar { grid-template-columns: 1fr; gap: 10px; }
  .deep-row .t .ti { font-size: 19px; white-space: normal; }
  .deep-row .time { min-width: 0; }
  .plan .f.deep { grid-template-columns: 26px 1fr; }
  .plan .f.deep select { grid-column: 2; }
  .set-row { grid-template-columns: 1fr 130px; }
  .dw-head { padding-top: 28px; }
  .days7 { gap: 4px; }
  .timerbar .n { max-width: 130px; }
}
