/* Sharing: the Info / Sharing tabs, the share form and list, bulk selection, and "Shared with me" */

/* Tabs above the selected recording */
.detail-tabs { background: transparent; border: 0; }
.detail-tabs .rz-tabview-nav { border-bottom: 1px solid var(--at-line); margin-bottom: .8rem; background: transparent; }
.detail-tabs .rz-tabview-nav li a { font-weight: 600; }
.detail-tabs .rz-tabview-panels { padding: 0; background: transparent; }
.detail-tabs .rz-tabview-panel { padding: 0; }

/* Bulk selection in the results */
.bulk-bar { display: flex; align-items: center; gap: .5rem; padding: .55rem .9rem; background: var(--at-accent-soft); border-bottom: 1px solid var(--at-line);
            font-size: .9rem; color: var(--at-accent); }

/* Sharing tab */
.share-panel { padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: 1.1rem; }
.share-panel__head p { margin: .2rem 0 0; }
.share-form { display: flex; flex-direction: column; gap: .7rem; padding: 1rem 1.1rem; border-radius: var(--at-radius-sm);
              background: linear-gradient(135deg, var(--at-accent-soft), transparent 70%); border: 1px solid var(--at-line); }
.share-form__row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.share-form__note { display: flex; align-items: flex-start; gap: .4rem; margin: 0; font-size: .8rem; color: var(--at-muted); line-height: 1.45; }
.share-form__note .rzi { font-size: 16px; margin-top: 1px; }
.share-list__head h3 { margin: 0; font-size: .95rem; font-weight: 650; }
.share-list__empty { margin: 0; }
.share-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.share { display: flex; align-items: flex-start; gap: .8rem; padding: .8rem 0; border-top: 1px solid var(--at-line); }
.share:first-child { border-top: 0; }
.share__who { flex: 1; min-width: 0; }
.share__name { font-weight: 600; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.share__email { font-size: .82rem; color: var(--at-muted); }
.share__meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: .3rem; font-size: .8rem; color: var(--at-muted); }
.share__meta span { display: inline-flex; align-items: center; gap: .3rem; }
.share__meta .rzi { font-size: 15px; }
.share__opened { color: var(--at-ok); }
.share__not-opened { color: var(--at-faint); }
.share__actions { display: flex; align-items: center; gap: .5rem; }

/* Share several */
.share-dialog { display: flex; flex-direction: column; gap: 1rem; }
.share-dialog__list { list-style: none; margin: 0; padding: .6rem .8rem; border-radius: 10px; background: var(--at-line); display: flex; flex-direction: column; gap: .3rem; font-size: .88rem; }
.share-dialog__list li { display: flex; align-items: center; gap: .4rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-dialog__list .rzi { font-size: 16px; color: var(--at-accent); }

/* Shared with me */
.new-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--at-accent); margin-right: .4rem; vertical-align: 1px; }
.shared-banner { display: flex; align-items: center; gap: .5rem; padding: .6rem .9rem; margin-bottom: .8rem; border-radius: 10px; font-size: .88rem;
                 background: var(--at-accent-soft); color: var(--rz-text-color); }
.shared-banner .rzi { color: var(--at-accent); }
.shared-callout { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; text-decoration: none; color: inherit;
                  border-color: color-mix(in srgb, var(--at-accent) 35%, transparent); transition: transform .12s, box-shadow .12s; }
.shared-callout:hover { transform: translateY(-1px); box-shadow: var(--at-shadow-lg); }
.shared-callout__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--at-accent-soft); color: var(--at-accent); flex: none; }
.shared-callout__text { flex: 1; display: flex; flex-direction: column; font-size: .92rem; }
.shared-callout__text .muted { font-size: .82rem; }

/* "Show it to them as" */
.share-form__label { font-size: .85rem; color: var(--at-muted); font-weight: 600; }
.share-form__hint { margin: -.3rem 0 0; font-size: .8rem; color: var(--at-muted); }

/* "Shared with you" under a workspace's own projects */
.section-head { display: flex; align-items: center; justify-content: space-between; margin-top: .8rem; }
.section-head h2 { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: 1.05rem; font-weight: 650; }
.section-head h2 .rzi { color: var(--at-accent); }
.project-card--shared { border-style: dashed; }
.unopened { font-size: .72rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; background: var(--at-accent); color: #fff; white-space: nowrap; }
html:has(link[href*="material-dark"]) .unopened { color: #00201e; }

/* Group filter on "Shared with me" */
.group-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.group-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--at-line);
              background: var(--at-card); color: var(--rz-text-color); text-decoration: none; font-size: .86rem; font-weight: 600; }
.group-chip .rzi { font-size: 17px; color: var(--at-muted); }
.group-chip span { font-size: .75rem; color: var(--at-muted); font-weight: 600; }
.group-chip:hover { border-color: var(--at-accent); }
.group-chip--on { background: var(--at-accent-soft); border-color: color-mix(in srgb, var(--at-accent) 45%, transparent); color: var(--at-accent); }
.group-chip--on .rzi, .group-chip--on span { color: var(--at-accent); }
