.livia-share-layer[hidden] { display: none !important; }
.livia-share-layer { position: fixed; inset: 0; z-index: 1400; display: grid; place-items: center; padding: 20px; font-family: Inter, sans-serif; }
.livia-share-scrim { position: absolute; inset: 0; border: 0; background: rgb(0 0 0 / 14%); cursor: default; }
.livia-share-dialog { position: relative; width: min(470px, calc(100vw - 28px)); overflow: visible; border: 1px solid #dedede; border-radius: 10px; background: #fff; color: #111; box-shadow: 0 18px 44px rgb(0 0 0 / 14%); }
.livia-share-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 17px 13px; border-bottom: 1px solid #ededed; }
.livia-share-heading h2 { margin: 0; font-size: 15px; font-weight: 600; line-height: 20px; }
.livia-share-heading p { margin: 2px 0 0; overflow: hidden; color: #7d7d7d; font-size: 11px; line-height: 15px; text-overflow: ellipsis; white-space: nowrap; }
.livia-share-close { width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #777; font-size: 18px; line-height: 1; cursor: pointer; }
.livia-share-close:hover, .livia-share-close:focus-visible { background: #f3f3f3; color: #111; outline: 0; }
.livia-share-content { padding: 3px 17px 16px; }
.livia-share-section { padding-top: 14px; }
.livia-share-section + .livia-share-section { margin-top: 15px; border-top: 1px solid #ededed; }
.livia-share-section h3 { margin: 0 0 8px; color: #666; font-size: 11px; font-weight: 500; line-height: 15px; }
.livia-share-section-heading { display: flex; align-items: center; justify-content: space-between; }
.livia-share-section-heading span { color: #999; font-size: 10px; }
.livia-share-add { display: grid; grid-template-columns: minmax(0, 1fr) 116px 48px; gap: 6px; }
.livia-person-picker { position: relative; min-width: 0; }
.livia-person-picker > input { width: 100%; box-sizing: border-box; }
.livia-person-suggestions { z-index: 24; width: min(220px, calc(100vw - 68px)); max-height: 166px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.livia-person-suggestions[hidden] { display: none !important; }
.livia-person-option { width: 100%; min-height: 27px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 0 7px; border: 0; border-radius: 5px; background: transparent; color: #333; font-family: Inter, sans-serif; text-align: left; cursor: pointer; }
.livia-person-option:hover, .livia-person-option:focus-visible { background: #f4f4f4; outline: 0; }
.livia-person-option strong, .livia-person-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.livia-person-option strong { font: 400 11px/14px Inter, sans-serif; }
.livia-person-option small { color: #8b8b8b; font: 400 9px/12px Inter, sans-serif; }
.livia-share-dialog input, .header-members-invite input { height: 30px; min-width: 0; padding: 0 8px; border: 1px solid #dcdcdc; border-radius: 6px; background: #fff; color: #222; font: 400 11px/1 Inter, sans-serif; outline: 0; }
.livia-share-dialog input:focus, .header-members-invite input:focus { border-color: #aaa; }
.livia-choice { position: relative; min-width: 0; }
.livia-native-choice { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.livia-choice-button { width: 100%; height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 0 8px; border: 1px solid #dcdcdc; border-radius: 6px; background: #fff; color: #333; font: 400 11px/1 Inter, sans-serif; text-align: left; cursor: pointer; }
.livia-choice-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.livia-choice-button:hover { border-color: #c8c8c8; background: #fcfcfc; }
.livia-choice-button:focus-visible, .livia-choice.is-open .livia-choice-button { border-color: #9b9b9b; outline: 0; }
.livia-choice-button svg { width: 12px; height: 12px; flex: 0 0 auto; fill: none; stroke: #777; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 140ms ease; }
.livia-choice.is-open .livia-choice-button svg { transform: rotate(180deg); }
.livia-choice-menu { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; width: max(100%, 116px); max-height: 166px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 3px; border: 1px solid #dedede; border-radius: 7px; background: #fff; box-shadow: 0 9px 22px rgb(0 0 0 / 11%); scrollbar-width: thin; }
.livia-choice-menu[hidden] { display: none !important; }
.livia-choice-option { width: 100%; min-height: 27px; display: grid; grid-template-columns: minmax(0, 1fr) 14px; align-items: center; gap: 7px; padding: 0 7px; border: 0; border-radius: 5px; background: transparent; color: #333; font: 400 11px/1.2 Inter, sans-serif; text-align: left; cursor: pointer; }
.livia-choice-option:hover, .livia-choice-option:focus-visible { background: #f4f4f4; outline: 0; }
.livia-choice-option.is-selected { background: #f1f1f1; color: #111; font-weight: 500; }
.livia-choice-check { visibility: hidden; color: #777; font-size: 10px; text-align: center; }
.livia-choice-option.is-selected .livia-choice-check { visibility: visible; }
.livia-share-add > button, .livia-share-copy-row button, .header-members-invite form > button, .header-invite-copy { height: 30px; padding: 0 10px; border: 1px solid #222; border-radius: 6px; background: #222; color: #fff; font: 500 11px/1 Inter, sans-serif; cursor: pointer; }
.livia-share-access-list { margin-top: 8px; }
.livia-share-empty { margin: 10px 1px 2px; color: #999; font-size: 10px; }
.livia-share-access-row { min-height: 35px; display: grid; grid-template-columns: 23px minmax(0, 1fr) 104px 22px; align-items: center; gap: 7px; }
.livia-share-avatar { width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid #e3e3e3; border-radius: 50%; background: #f7f7f7; color: #555; font-size: 8px; }
.livia-share-identity { min-width: 0; }
.livia-share-identity strong, .livia-share-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.livia-share-identity strong { font-size: 11px; font-weight: 500; line-height: 14px; }
.livia-share-identity small { margin-top: 1px; color: #929292; font-size: 9px; line-height: 12px; }
.livia-share-access-row .livia-choice-button { height: 26px; border-color: transparent; color: #666; }
.livia-share-access-row .livia-choice-button:hover, .livia-share-access-row .livia-choice-button:focus-visible { border-color: #ddd; }
.livia-share-remove { width: 21px; height: 21px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #999; font-size: 15px; cursor: pointer; }
.livia-share-remove:hover { background: #f5f5f5; color: #333; }
.livia-share-link-controls { display: grid; grid-template-columns: 146px minmax(0, 1fr) 116px; gap: 6px; }
.livia-share-link-controls input[hidden] { display: block; visibility: hidden; }
.livia-share-copy-row { min-height: 34px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; margin-top: 7px; }
.livia-share-copy-row span { overflow: hidden; padding: 0 1px 7px; color: #858585; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.livia-share-feedback, .header-invite-feedback { min-height: 13px; margin: 5px 1px 0; color: #777; font-size: 9px; line-height: 13px; }
.livia-share-open, .livia-share-open body, .livia-share-open #workspace-page-columns { overflow: hidden !important; }

.header-member-invite-row { margin-top: 3px; border-top: 1px solid #ededed; border-radius: 0 0 6px 6px; }
.header-member-invite-icon { color: #666; font-size: 16px; font-weight: 400; line-height: 1; }
.header-members-invite { padding: 9px 10px 10px; }
.header-members-invite[hidden] { display: none !important; }
.header-members-invite form label { display: grid; gap: 5px; color: #777; font-size: 10px; line-height: 13px; }
.header-members-invite form button, .header-invite-copy { width: 100%; margin-top: 7px; }
.header-invite-divider { height: 1px; margin: 11px 0 9px; background: #ededed; }
.header-invite-link-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.header-invite-link-heading strong { font-size: 11px; font-weight: 500; }
.header-invite-link-heading small { color: #929292; font-size: 9px; }
.header-invite-switch { display: grid; grid-template-columns: 27px 1fr; align-items: center; gap: 7px; margin-top: 9px; cursor: pointer; }
.header-invite-switch input { position: absolute; opacity: 0; pointer-events: none; }
.header-invite-switch span { position: relative; width: 27px; height: 16px; border-radius: 999px; background: #d9d9d9; transition: background 150ms ease; }
.header-invite-switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform 150ms ease; }
.header-invite-switch input:checked + span { background: #222; }
.header-invite-switch input:checked + span::after { transform: translateX(11px); }
.header-invite-switch em { color: #555; font-size: 10px; font-style: normal; }
.header-invite-copy { border-color: #ddd; background: #fff; color: #333; }
.header-invite-copy:hover { background: #f7f7f7; }

@media (max-width: 560px) {
  .livia-share-add { grid-template-columns: minmax(0, 1fr) 96px; }
  .livia-share-add button { grid-column: 1 / -1; }
  .livia-share-link-controls { grid-template-columns: 1fr 1fr; }
  .livia-share-link-controls input { grid-column: 1 / -1; }
}

