/* Dhanrop — Timetable page + Today's plan widget */
/* ==========================================================================
   Timetable (day / week planner)
   ========================================================================== */
.gt-tt { display: flex; flex-direction: column; gap: 1rem; }
.gt-tt-bar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.gt-tt-nav { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.gt-tt-icon { width: 2.1rem; height: 2.1rem; border-radius: .6rem; font-size: 1.3rem; line-height: 1; background: rgb(120 120 120 / .12); border: 1px solid var(--gt-glass-border); transition: transform .15s, background .2s; }
.gt-tt-icon:hover { transform: translateY(-1px); background: rgb(120 120 120 / .2); }
.gt-tt-title { margin-left: .4rem; line-height: 1.15; }
.gt-tt-title h2 { font-family: var(--gt-num-font); font-size: 1.55rem; font-weight: 750; letter-spacing: -.03em; }
.gt-tt-title span { font-size: .8rem; color: var(--gt-text-dim); }
.gt-tt-date { position: relative; display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: .6rem; background: rgb(120 120 120 / .12); cursor: pointer; overflow: hidden; }
.gt-tt-date input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.gt-tt-date input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }

.gt-tt-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4rem; }
.gt-tt-chip { display: flex; flex-direction: column; align-items: center; padding: .45rem 0; border-radius: .75rem; background: var(--gt-glass); border: 1px solid var(--gt-glass-border); transition: transform .15s, background .2s; }
.gt-tt-chip span { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gt-text-dim); }
.gt-tt-chip b { font-family: var(--gt-num-font); font-size: 1.05rem; }
.gt-tt-chip:hover { transform: translateY(-2px); }
.gt-tt-chip.is-today b { color: var(--gt-emerald); }
.gt-tt-chip.on { background: linear-gradient(135deg, var(--gt-emerald), #0ea5e9); border-color: transparent; color: #fff; box-shadow: 0 10px 24px -14px rgb(16 185 129 / .9); }
.gt-tt-chip.on span, .gt-tt-chip.on b { color: #fff; }

.gt-tt-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
@media (max-width: 1024px) { .gt-tt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gt-tt-kpi { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; }
.gt-tt-kpi-v { font-family: var(--gt-num-font); font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.gt-tt-kpi-v small { font-size: .75rem; font-weight: 500; opacity: .6; margin-left: .15rem; }
.gt-tt-kpi-ic { width: 2.6rem; height: 2.6rem; flex: none; display: grid; place-items: center; font-size: 1.3rem; border-radius: .8rem; background: rgb(120 120 120 / .1); }
.gt-tt-ring { --p: 0; width: 2.9rem; height: 2.9rem; flex: none; border-radius: 50%; display: grid; place-items: center;
    background: conic-gradient(var(--gt-emerald) calc(var(--p) * 1%), rgb(120 120 120 / .18) 0); }
.gt-tt-ring span { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; font-size: .68rem; font-weight: 700; background: var(--gt-glass); }
.dark .gt-tt-ring span { background: #0b1220; }

.gt-tt-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1rem; align-items: start; }
@media (max-width: 1100px) { .gt-tt-grid { grid-template-columns: 1fr; } }
.gt-tt-board { padding: .75rem; position: relative; }
.gt-tt-hint { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; font-size: .85rem; padding: .7rem .85rem; margin-bottom: .6rem; border-radius: .75rem; background: rgb(16 185 129 / .09); border: 1px dashed rgb(16 185 129 / .45); }

.gt-tt-scroll { max-height: min(72vh, 900px); overflow-y: auto; overflow-x: hidden; border-radius: .75rem; overscroll-behavior: contain; }
.gt-tt-canvas { position: relative; margin-left: 3.6rem; }
.gt-tt-hours { position: absolute; inset: 0 0 0 -3.6rem; pointer-events: none; }
.gt-tt-hour { position: absolute; left: 0; right: 0; border-top: 1px solid rgb(120 120 120 / .16); }
.gt-tt-hour span { position: absolute; top: -.55rem; left: 0; width: 3.2rem; text-align: right; font-size: .68rem; font-weight: 600; color: var(--gt-text-dim); background: inherit; }
.gt-tt-cols { position: absolute; inset: 0; display: grid; gap: 0; }
.gt-tt-col { position: relative; height: 100%; cursor: copy;
    background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--hour) / 2 - 1px), rgb(120 120 120 / .07) calc(var(--hour) / 2 - 1px), rgb(120 120 120 / .07) calc(var(--hour) / 2)); }
.gt-tt-col + .gt-tt-col { border-left: 1px solid rgb(120 120 120 / .14); }
.gt-tt-col.is-today { background-color: rgb(16 185 129 / .045); }

.gt-tt-item { position: absolute; border-radius: .6rem; padding: .3rem .5rem; overflow: hidden; cursor: pointer; font-size: .78rem; line-height: 1.25;
    background: color-mix(in srgb, var(--c) 16%, transparent); border-left: 3px solid var(--c); color: inherit;
    transition: transform .15s ease, box-shadow .2s ease, opacity .2s; z-index: 1; }
.gt-tt-item:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -14px color-mix(in srgb, var(--c) 90%, transparent); }
.gt-tt-item.is-task:hover { z-index: 11 !important; }
.gt-tt-item.is-block { background: color-mix(in srgb, var(--c) 10%, transparent); }
.gt-tt-item.is-block .gt-tt-item-title { font-weight: 600; opacity: .85; }
.gt-tt-item.is-open { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 9%, transparent) 0 8px, color-mix(in srgb, var(--c) 4%, transparent) 8px 16px);
    border: 1px dashed color-mix(in srgb, var(--c) 55%, transparent); border-left: 3px solid var(--c); z-index: 0; }
.gt-tt-item.is-task { background: color-mix(in srgb, var(--c) 22%, var(--gt-glass)); box-shadow: 0 1px 2px rgb(0 0 0 / .08); z-index: 2; cursor: grab; }
.dark .gt-tt-item.is-task { background: color-mix(in srgb, var(--c) 30%, #0b1220); }
.gt-tt-item.is-task:active { cursor: grabbing; }
.gt-tt-item.is-done { opacity: .55; }
.gt-tt-item.is-done .gt-tt-item-title { text-decoration: line-through; }
.gt-tt-item.is-conflict { outline: 2px solid #f59e0b; outline-offset: -2px; }
.gt-tt-item.is-overdue { border-left-color: #ef4444; }
.gt-tt-item.is-dragging, .gt-tt-chipcard.is-dragging { opacity: .35; }
.gt-tt-item.is-tiny { padding-top: .1rem; padding-bottom: .1rem; }
.gt-tt-item-head { display: flex; align-items: center; gap: .3rem; min-width: 0; }
.gt-tt-item-title { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.gt-tt-item-meta { font-size: .7rem; color: var(--gt-text-dim); margin-top: .1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-tt-item.is-compact { font-size: .7rem; padding: .2rem .35rem; }
.gt-tt-item.is-compact .gt-tt-item-meta { font-size: .64rem; }
.gt-tt-flag { font-size: .7rem; }
.gt-tt-pri { font-size: .6rem; font-weight: 800; padding: .05rem .3rem; border-radius: .3rem; color: var(--p); background: color-mix(in srgb, var(--p) 14%, transparent); flex: none; }
.gt-tt-check { width: 1.05rem; height: 1.05rem; flex: none; border-radius: .35rem; border: 1.6px solid var(--c); color: transparent; display: grid; place-items: center; transition: background .2s, color .2s, transform .15s; }
.gt-tt-check svg { width: .8rem; height: .8rem; }
.gt-tt-check:hover { transform: scale(1.12); color: var(--c); }
.gt-tt-item.is-done .gt-tt-check { background: var(--c); color: #fff; }
.gt-tt-item-actions { position: absolute; right: .3rem; bottom: .25rem; display: flex; gap: .15rem; opacity: 0; transform: translateY(3px); transition: opacity .15s, transform .15s; }
.gt-tt-item:hover .gt-tt-item-actions { opacity: 1; transform: none; }
.gt-tt-item-actions button { width: 1.45rem; height: 1.45rem; border-radius: .4rem; font-size: .7rem; background: var(--gt-glass); border: 1px solid var(--gt-glass-border); backdrop-filter: blur(6px); }
.gt-tt-item-actions button:hover { background: var(--c); color: #fff; }
.gt-tt-item.is-tiny .gt-tt-item-actions { bottom: auto; top: 50%; transform: translateY(-50%); }
.gt-tt-add-in { position: absolute; right: .35rem; bottom: .3rem; font-size: .68rem; font-weight: 700; padding: .12rem .45rem; border-radius: .4rem; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); opacity: 0; transition: opacity .15s; }
.gt-tt-item:hover .gt-tt-add-in { opacity: 1; }

.gt-tt-now { position: absolute; left: -.35rem; right: 0; height: 0; border-top: 2px solid #ef4444; z-index: 12; pointer-events: none; transition: top .6s ease; }
.gt-tt-now i { position: absolute; left: -.2rem; top: -.36rem; width: .6rem; height: .6rem; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 4px rgb(239 68 68 / .2); animation: gt-tt-pulse 2s ease-out infinite; }
@keyframes gt-tt-pulse { 0% { box-shadow: 0 0 0 0 rgb(239 68 68 / .45); } 100% { box-shadow: 0 0 0 10px rgb(239 68 68 / 0); } }
.gt-tt-ghost { position: absolute; left: 2px; right: 2px; border-radius: .6rem; border: 2px dashed var(--gt-emerald); background: rgb(16 185 129 / .12); z-index: 13; pointer-events: none; }
.gt-tt-ghost span { position: absolute; top: .2rem; left: .45rem; font-size: .7rem; font-weight: 700; color: var(--gt-emerald); }
.gt-tt-menu { position: absolute; z-index: 20; min-width: 210px; padding: .35rem; border-radius: .8rem; background: var(--gt-glass); border: 1px solid var(--gt-glass-border); box-shadow: 0 18px 40px -16px rgb(0 0 0 / .45); backdrop-filter: blur(16px); animation: gt-fade .15s ease both; }
.dark .gt-tt-menu { background: #0b1220; }
.gt-tt-menu-h { font-size: .7rem; font-weight: 700; padding: .3rem .5rem; color: var(--gt-text-dim); }
.gt-tt-menu button { display: block; width: 100%; text-align: left; padding: .45rem .55rem; border-radius: .55rem; font-size: .83rem; font-weight: 600; }
.gt-tt-menu button:hover { background: rgb(16 185 129 / .12); }

.gt-tt-weekhead { display: grid; grid-template-columns: 3.6rem repeat(7, minmax(0, 1fr)); gap: 0; margin-bottom: .35rem; }
.gt-tt-wday { display: flex; flex-direction: column; align-items: center; padding: .3rem 0; border-radius: .6rem; transition: background .2s; }
.gt-tt-wday:hover { background: rgb(120 120 120 / .1); }
.gt-tt-wday span { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gt-text-dim); }
.gt-tt-wday b { font-family: var(--gt-num-font); font-size: 1.1rem; }
.gt-tt-wday i { font-style: normal; font-size: .62rem; font-weight: 700; color: var(--gt-emerald); }
.gt-tt-wday.is-today b { color: #fff; background: var(--gt-emerald); border-radius: 999px; padding: 0 .45rem; }
.gt-tt-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .6rem; font-size: .72rem; color: var(--gt-text-dim); }
.gt-tt-legend .sw { display: inline-block; width: .8rem; height: .8rem; border-radius: .25rem; vertical-align: -2px; margin-right: .25rem; }
.gt-tt-legend .sw-task { background: rgb(59 130 246 / .5); border-left: 3px solid #3b82f6; }
.gt-tt-legend .sw-block { background: rgb(120 120 120 / .2); border-left: 3px solid #64748b; }
.gt-tt-legend .sw-open { border: 1px dashed #10b981; border-left: 3px solid #10b981; }

.gt-tt-side { display: flex; flex-direction: column; gap: .9rem; }
.gt-tt-card { padding: .95rem 1rem; }
.gt-tt-card-h { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .55rem; }
.gt-tt-count { font-size: .68rem; font-weight: 800; padding: .05rem .4rem; border-radius: 999px; background: rgb(120 120 120 / .16); }
.gt-btn--sm { padding: .3rem .6rem; font-size: .74rem; }
.gt-tt-nownext .gt-mini-track { margin-top: .55rem; }
.gt-tt-now-title { font-size: 1.1rem; font-weight: 750; margin-top: .3rem; padding-left: .55rem; border-left: 3px solid var(--c, var(--gt-emerald)); }
.gt-tt-pulse { width: .5rem; height: .5rem; border-radius: 50%; background: #ef4444; animation: gt-tt-pulse 2s ease-out infinite; }
.gt-tt-row { display: flex; gap: .5rem; margin-top: .7rem; flex-wrap: wrap; }
.gt-tt-next { display: grid; grid-template-columns: auto 1fr; gap: .1rem .5rem; margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--gt-glass-border); font-size: .82rem; }
.gt-tt-next span { grid-row: span 2; font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--gt-text-dim); padding-top: .15rem; }
.gt-tt-next em { font-style: normal; font-size: .74rem; color: var(--gt-text-dim); }

.gt-tt-inbox { transition: box-shadow .2s, border-color .2s; }
.gt-tt-inbox.is-over { border-color: var(--gt-emerald); box-shadow: 0 0 0 3px rgb(16 185 129 / .25); }
.gt-tt-chipcard { display: flex; align-items: stretch; gap: .4rem; margin-bottom: .45rem; border-radius: .65rem; border: 1px solid var(--gt-glass-border); border-left: 3px solid var(--c);
    background: rgb(120 120 120 / .06); cursor: grab; transition: transform .15s, background .2s; }
.gt-tt-chipcard:hover { transform: translateX(2px); background: rgb(120 120 120 / .1); }
.gt-tt-chipcard.is-overdue { border-left-color: #ef4444; }
.gt-tt-chipcard-main { flex: 1; min-width: 0; padding: .45rem .1rem .45rem .55rem; cursor: pointer; }
.gt-tt-chipcard-t { font-size: .83rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-tt-chipcard-m { font-size: .7rem; color: var(--gt-text-dim); margin-top: .15rem; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem; }
.gt-tt-chipcard-a { display: flex; flex-direction: column; justify-content: center; gap: .15rem; padding: .25rem; }
.gt-tt-chipcard-a button { width: 1.5rem; height: 1.4rem; border-radius: .4rem; font-size: .75rem; transition: background .2s; }
.gt-tt-chipcard-a button:hover { background: rgb(16 185 129 / .18); }
.gt-tt-addrow { width: 100%; margin-top: .2rem; padding: .5rem; border-radius: .65rem; border: 1px dashed rgb(120 120 120 / .35); font-size: .8rem; font-weight: 650; color: var(--gt-text-dim); transition: border-color .2s, color .2s; }
.gt-tt-addrow:hover { border-color: var(--gt-emerald); color: var(--gt-emerald); }
.gt-tt-addrow kbd, .gt-tt kbd { font-size: .62rem; padding: .02rem .3rem; border-radius: .25rem; border: 1px solid rgb(120 120 120 / .35); margin-left: .3rem; }
.gt-tt-bal { display: grid; grid-template-columns: 8.5rem 1fr 2.6rem; align-items: center; gap: .5rem; font-size: .76rem; margin-bottom: .35rem; }
.gt-tt-bal span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-tt-bal b { text-align: right; font-size: .75rem; }
.gt-tt-bal-track { height: .45rem; border-radius: 999px; background: rgb(120 120 120 / .15); overflow: hidden; }
.gt-tt-bal-track i { display: block; height: 100%; border-radius: 999px; transition: width .6s ease; }
.gt-tt-tips { display: flex; flex-direction: column; gap: .45rem; font-size: .8rem; }
.gt-tt-tips li { line-height: 1.4; }

/* Dashboard "Today's plan" widget */
.gt-today-list { display: flex; flex-direction: column; gap: .35rem; margin-top: .7rem; }
.gt-today-row { display: grid; grid-template-columns: 4.6rem 1fr auto; align-items: center; gap: .5rem; padding: .4rem .55rem; border-radius: .6rem; font-size: .82rem;
    background: rgb(120 120 120 / .06); border-left: 3px solid var(--c); }
.gt-today-row.is-now { background: color-mix(in srgb, var(--c) 16%, transparent); }
.gt-today-row.is-done { opacity: .5; text-decoration: line-through; }
.gt-today-row time { font-size: .72rem; font-weight: 700; color: var(--gt-text-dim); }
.gt-today-row b { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 640px) {
    .gt-tt-canvas { margin-left: 2.9rem; }
    .gt-tt-hours { left: -2.9rem; }
    .gt-tt-hour span { width: 2.6rem; font-size: .6rem; }
    .gt-tt-weekhead { grid-template-columns: 2.9rem repeat(7, minmax(0, 1fr)); }
    .gt-tt-kpis { gap: .5rem; }
    .gt-tt-kpi { padding: .7rem; gap: .55rem; }
    .gt-tt-kpi-ic { display: none; }
    .gt-tt-kpi-v { font-size: 1.1rem; }
    .gt-tt-title h2 { font-size: 1.25rem; }
    .gt-tt-chip { padding: .35rem 0; }
    .gt-tt-bal { grid-template-columns: 6.5rem 1fr 2.4rem; }
}
@media (max-width: 720px) { .gt-today-grid { grid-template-columns: 1fr !important; } }
