/* DIE2HARD Studio 1.22 — addresses, trust, and the small fixes of the "Make it trustworthy" round.
   Route page and "copy link"; permission panel in the Portfolio; touch sizes; the phone tab bar with My tasks. */

/* ---- a link that does not open */
.rt-page .rt-why{max-width:46ch;margin:4px 0 18px;font:400 16px/1.5 var(--p2-sans,Inter,system-ui,sans-serif);color:var(--p2-soft,#3d3a35)}
.rt-actions{display:flex;flex-wrap:wrap;gap:10px}
.rt-actions button{min-height:44px}
#modal .modal-head .rt-copy{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin-left:auto;margin-right:2px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer;opacity:.78}
#modal .modal-head .rt-copy:hover,#modal .modal-head .rt-copy:focus-visible{opacity:1;background:rgba(127,127,127,.18)}
#modal .modal-head .rt-copy + #modalClose{margin-left:0}

/* ---- Portfolio: permission before publishing */
.pf-approval p{margin:0}
.pf-perm-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}
.pf-perm-actions .p2-small{min-height:44px}
.pf-approval.is-flash{outline:3px solid var(--p2-orange,#f26522);outline-offset:2px;transition:outline-color .3s}

/* ---- Touch sizes: whatever you press is at least 44 x 44 px on a phone, a phone held sideways or a touch screen.
   (Before: Help 34, your picture 38, Ask 40, the music button 36, small links 24-36.)
   Same definition of "a phone" as everywhere else (see D19_PHONE_Q), plus the iPad: touch screens taller than 500 px.
   Held sideways the top bar is 44 px high, so 44 px buttons still fit inside it. */
@media (max-width:650px),(pointer:coarse) and (max-height:500px) and (max-width:1000px),(pointer:coarse) and (min-height:501px){
  body.d19 .topbar .wordmark{display:inline-flex;align-items:center;min-height:44px}
  body.d19 .topbar .music-pill{height:44px;min-width:44px;justify-content:center}
  body.d19 .topbar .ui-ask,body.d19 .topbar .d19-help-btn,body.d19 .topbar .header-actions .avatar,body.d19 .topbar .round-button{width:44px;height:44px;min-width:44px;min-height:44px}
  #workspace .p2-page .p2-quiet,#workspace .p2-quiet{min-height:44px;min-width:44px;justify-content:center}
  #workspace .ui-filters button,#workspace .ui-select,#workspace select.ui-select,#workspace .ui-seg button,#workspace .p2-biz .biz-seg button,#workspace .p2-biz .biz-years button{min-height:44px;min-width:44px}
  #workspace .ui-file summary,#workspace .p2-details summary,#chatLog .chat-message .ui-ai-error summary,.drive-server-upload summary{min-height:44px;display:flex;align-items:center}
  #workspace .v150-archive-actions a,#workspace .v150-archive-actions button{display:inline-flex;align-items:center;min-height:44px;padding-left:12px;padding-right:12px}
  #workspace .v150-upload-label{min-height:44px}
  #workspace #v150ArchiveInput{min-height:44px}
  #workspace .p2-page .p2-secondary.p2-small,#workspace .p2-small,#workspace .hm-quick,#workspace .v110-calendar-toolbar button,#workspace .workspace-top button{min-height:44px}
  #workspace .v110-calendar-toolbar button{min-width:44px}
  #workspace input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]),#workspace select{min-height:44px}
  body.d19 .topbar #logoutButton{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
  #d2GuideBall{min-width:44px;min-height:44px}
}

/* ---- The phone's tab bar with My tasks: six places that still fit from 320 px up, and a count on My tasks */
@media (max-width:650px),(pointer:coarse) and (max-height:500px) and (max-width:1000px){
  .d19-tabbar button{position:relative;min-width:0}
  .d19-tabbar button>span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .d19-tabbar[data-count="6"] button{font-size:11px}
  .d19-tabbar .d19-badge{position:absolute;top:1px;left:calc(50% + 4px);min-width:17px;height:17px;padding:0 5px;box-sizing:border-box;border-radius:9px;background:#f2ede6;color:#141414;font:700 11px/17px var(--sans,system-ui,sans-serif);font-style:normal;text-align:center;letter-spacing:0;pointer-events:none}
  .d19-tabbar .d19-badge.is-late{background:#e0452f;color:#fff}
  .d19-tabbar .d19-badge[hidden]{display:none}
}
@media (max-width:380px){
  .d19-tabbar[data-count="6"] button{font-size:10.5px;padding-left:0;padding-right:0}
}
@media (max-width:340px){
  .d19-tabbar[data-count="6"] button{font-size:10px}
  .d19-tabbar[data-count="6"] button svg{width:20px;height:20px}
}
/* held sideways, the tab bar is a column: the count sits next to the icon */
@media (min-width:520px) and (max-height:500px) and (orientation:landscape) and (max-width:1000px){
  body.d19 .d19-tabbar .d19-badge{left:calc(50% + 6px);top:3px}
}

/* ---- Calendar (phone list): a day of all-day items has no time column */
.vw-day.is-allday .vw-ev{grid-template-columns:minmax(0,1fr)}
.vw-day.is-allday .vw-ev time{display:none}

/* ---- Business: "no costs recorded" is said in words, not as 100 % */
#workspace .p2-biz .biz-kpis .is-quiet b{font-family:var(--p2-sans);font-size:clamp(16px,4.4vw,19px);font-weight:650;line-height:1.25;color:var(--p2-soft)}

/* ---- Readable text: small captions, "now" labels, dates and role names were 2.9 - 4.4 : 1 on the cream pages.
   Every one of them is 4.9 : 1 or more now (checked by a script that measures each piece of text against its real background). */
:root{--p2-orange-ink:#a8400a}
#workspace .v110-agenda time,#workspace .v091-person-focus span,#workspace .v091-studio-summary .warn,#workspace .v091-studio-summary .warn b{color:#a8400a}
#workspace .v110-calendar-toolbar>span,#workspace .v091-person-focus small,#workspace .v091-studio-summary span,#workspace .v09-person-head span,#workspace .workspace-top .eyebrow,#workspace .empty p{color:#665e53}
#workspace .v091-studio-summary span b{color:#24201c}
#workspace .v091-studio-summary .warn b{color:#a8400a}
#workspace .v110-agenda .eyebrow,#workspace .v110-cal-dow,#workspace .v091-project-bottom{color:#665e53}
#workspace .v091-project-bottom .v091-warning{color:#a8400a!important}
.vw-day.is-past .vw-ev{opacity:.9}
.vw-day.is-past .vw-ev small{color:#5c5449}

