/* Dolijane V3.8.0 stable revision 9 — final release corrections. */

/* Claude calendar: the week and the full month use the same black inner edge and glow. */
html[data-interface-design="claude"][data-v74-route="calendar"] :is(.v56-week-grid,.v56-month-grid)>.v56-day:is(.today,.tif-today){
  outline:1px solid #17130f!important;outline-offset:-1px!important;
  box-shadow:inset 0 0 0 1px #17130f,inset 0 0 19px 7px rgba(255,255,255,.96),0 0 3px 1px rgba(255,224,140,.18)!important;
}
html[data-interface-design="claude"][data-v74-route="calendar"] :is(.v56-week-grid,.v56-month-grid)>.v56-weekday{color:#fff!important}

/* Compact feeds keep their full width and use half the former vertical rhythm. */
.compact-feed{width:100%!important;max-width:100%!important}
.compact-feed-head{padding-top:3px!important;padding-bottom:3px!important}
.compact-feed-all .feed-entry,.v56-feed-entry{padding-top:3px!important;padding-bottom:3px!important}
.feed-compose-card textarea{min-height:22px!important;height:22px!important}
.v30-feed-compose-card{padding-top:7px!important;padding-bottom:7px!important}
.v30-feed-compose-card textarea{min-height:22px!important;height:22px!important}

/* Notes: selection/picker panels are always above the linked-artifact rail. */
.notes-selection,.notes-option-choices{z-index:60!important}
.notes-attached{z-index:20!important}

/* Notification is one rectangular button after Postpone; its contents remain a popup. */
.v13-quick>.v80-notifications{position:relative;display:flex;align-items:center;margin:0}
.v80-notification-heading{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;width:auto!important;min-width:44px!important;height:38px!important;padding:6px 9px!important;border:1px solid var(--line)!important;border-radius:8px!important;background:var(--panel)!important;color:var(--accent)!important}
.v80-notification-heading>span{display:none!important}
.v80-notification-heading>b{position:static!important;min-width:0!important;height:auto!important;padding:0!important;border-radius:0!important;background:transparent!important;color:currentColor!important;font-size:12px!important;line-height:1!important}
.v80-notification-panel{position:absolute;z-index:90;right:0;top:calc(100% + 6px);width:min(360px,calc(100vw - 24px));max-height:min(480px,calc(100dvh - 120px));overflow:auto;margin:0!important;box-shadow:var(--shadow)}
.v82-exact-menu{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;align-items:center;padding-top:7px;border-top:1px solid var(--line)}
.v82-exact-menu input{min-width:0;width:100%}
.v82-exact-open{width:100%;min-height:34px;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--accent)}

/* Web/Windows task descriptions must never inherit a vertical writing mode. */
[data-task-form] :is(.rich-description,[data-rich-description],textarea[name="description"],.description-wrap,.task-description),
[data-task-form] :is(.rich-description,[data-rich-description],textarea[name="description"],.description-wrap,.task-description) *{
  writing-mode:horizontal-tb!important;text-orientation:mixed!important;inline-size:auto;min-width:0
}
[data-task-form] :is(.rich-description,[data-rich-description],textarea[name="description"]){width:100%!important;max-width:100%!important}

/* System tags are compact colored symbols, never a generic #tag label. */
.v82-system-tag{display:inline-flex;align-items:center;justify-content:center;vertical-align:-3px;line-height:1}
.v82-system-tag .v22-icon{width:18px!important;height:18px!important}
.v16-system-tag-row .v82-system-tag .v22-icon{width:24px!important;height:24px!important}

/* Project/task recursion. Project and subproject rows inherit the page and own no card. */
.v15-projects-card,.v15-project-node,.project-tree-head,.project-tree-level>.v15-project-node{
  background:transparent!important;border:0!important;box-shadow:none!important
}
.project-tree-head{border-radius:0!important}
.v15-project-node>.project-tree{margin:0 0 3px 0!important;padding:3px 3px 0!important;background:transparent!important;border:0!important}
.v15-tree-list{gap:3px!important;background:transparent!important;border:0!important;box-shadow:none!important}
.v15-task-row{margin:0!important}
.v15-children{display:grid!important;gap:3px!important;margin:0!important;padding:3px 0 0 28px!important;border:0!important;background:transparent!important}
.project-tree-level{display:grid!important;gap:3px!important;margin:3px 0 0 28px!important;padding:0!important;border:0!important;background:transparent!important}
.project-tree-level>.v15-project-node>.project-tree{margin-left:0!important}
.project-meta-card[data-project-summary]{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;overflow-x:auto}
.project-meta-card[data-project-summary] :is(button,span){white-space:nowrap}
.project-meta-card[data-project-summary] button{display:inline-flex;align-items:center;gap:4px}
.project-meta-card[data-project-summary] .v22-icon{width:19px;height:19px}

/* Creation actions are equal circles; the system-colored surface inverts the glyph. */
.v82-create-button{display:grid!important;place-items:center!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;padding:7px!important;border-radius:50%!important;background:var(--accent)!important;border-color:var(--accent)!important;color:#fff!important;font-size:0!important;aspect-ratio:1!important}
.v82-create-button .v22-icon,.v82-create-button .v22-icon *{color:#fff!important;stroke:currentColor!important}
.v82-create-button .v22-icon{width:23px!important;height:23px!important}
.project-mode{align-items:center;flex-wrap:nowrap}
.project-mode>[data-v17-select-toggle]{order:3}

/* Help begins at its title row; Cancel is a styled icon action. */
.v82-help-cancel{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;padding:7px!important;border-radius:50%!important;background:var(--accent)!important;border-color:var(--accent)!important;color:#fff!important;font-size:0!important}
.v82-help-cancel .v22-icon,.v82-help-cancel .v22-icon *{color:#fff!important;stroke:currentColor!important}
.dolijane-context-help>.modal{padding-top:14px!important}.dolijane-context-help header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}.dolijane-context-help header h1{margin:0;order:0}.dolijane-context-help header button{order:1;display:grid;place-items:center;width:38px!important;height:38px!important;padding:7px!important;border-radius:50%!important;background:var(--accent)!important;border-color:var(--accent)!important;color:#fff!important}.dolijane-context-help header button .v22-icon,.dolijane-context-help header button .v22-icon *{color:#fff!important;stroke:currentColor!important}

@media(max-width:1024px){
  /* No overlay, popup, message or toast may occupy the Android bottom-navigation band. */
  :is(.modal-backdrop,.time-menu,.feed-compose-popup,.notes-picker){padding-bottom:calc(var(--v78-bottom-space,64px) + env(safe-area-inset-bottom,0px) + 8px)!important}
  :is(.modal,.time-menu-card,.feed-compose-card,.task-context-menu,.v36-artifact-picker,.v38-popup,.v39-log-popup,.v40-popup,.v53-popup,.v56-popup,.habit-v11-popup,.notes-picker-dialog,.notes-selection){max-height:calc(100dvh - var(--v77-mobile-header-height,62px) - var(--v78-bottom-space,64px) - env(safe-area-inset-bottom,0px) - 12px)!important}
  .toast,.undo-toast,[role="status"].message{bottom:calc(var(--v78-bottom-space,64px) + env(safe-area-inset-bottom,0px) + 8px)!important}
  .v73-install-setting .settings-label,.v82-settings-platform-line{white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important}
  .v76-mobile-actions :is(button,.btn){font-family:var(--font,system-ui)!important}
}

/* Adaptive typography references the shared semantic scale. Desktop stays unchanged. */
@media(max-width:760px){
  :root{--muted:#625f59}
  .page-title{font-size:var(--dj-text-title-size)!important;font-weight:var(--dj-text-title-weight)!important;line-height:var(--dj-text-title-line-height)!important;letter-spacing:-.01em!important}
  .task-title{font-size:var(--dj-text-body-size)!important;font-weight:var(--dj-text-body-weight)!important;line-height:var(--dj-text-body-line-height)!important}
  .task-meta{font-size:var(--dj-text-secondary-size)!important;font-weight:var(--dj-text-secondary-weight)!important;line-height:var(--dj-text-secondary-line-height)!important;color:var(--muted)!important}
  .chip{font-size:var(--dj-text-caption-size)!important;font-weight:var(--dj-text-caption-weight)!important;line-height:var(--dj-text-caption-line-height)!important}
  .day-head{font-size:var(--dj-text-secondary-size)!important;font-weight:var(--dj-text-secondary-weight)!important;line-height:var(--dj-text-secondary-line-height)!important}
  .event{font-size:var(--dj-text-body-size)!important;font-weight:var(--dj-text-body-weight)!important;line-height:var(--dj-text-body-line-height)!important}
  .check{width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important}
  .metric-value{font-size:27px!important}
  .metric-label{font-size:var(--dj-text-secondary-size)!important;font-weight:var(--dj-text-secondary-weight)!important;line-height:var(--dj-text-secondary-line-height)!important}
  .v15-children{padding-left:22px!important}
  .project-tree-level{margin-left:22px!important}
}
