/* DOS Community – Settings page, the "What's on your mind?" box, the Create sheet, the Share sheet,
   private / blocked profiles and follow requests. Same look as the rest of the community. */

/* ---------------------------------------------------------------
 * Feed: "What's on your mind?"
 * ------------------------------------------------------------- */
.dosc-app .dosc-fdc {
	margin: 4px 0 22px; padding: 14px 16px 6px;
	background: #fff; border: 1px solid #e7dfd9; border-radius: 16px; box-shadow: 0 1px 2px rgba(40, 25, 15, .05), 0 4px 16px rgba(40, 25, 15, .04);
}
.dosc-app .dosc-fdc-top { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #efe9e4; }
.dosc-app .dosc-fdc-av { flex: none; display: block; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #f4efeb; }
.dosc-app .dosc-fdc-av img { display: block; width: 44px; height: 44px; object-fit: cover; }
.dosc-app .dosc-fdc-input,
.dosc-app .dosc-fdc-input:hover,
.dosc-app .dosc-fdc-input:focus {
	flex: 1 1 auto; min-width: 0; height: 44px; margin: 0; padding: 0 18px;
	background: #f4f1ee; border: 0; border-radius: 22px; box-shadow: none; color: #6f655e;
	font: 400 16px/44px "Helvetica Neue", Helvetica, Arial, sans-serif; text-align: left; text-transform: none; letter-spacing: 0;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; transition: background-color .15s ease;
}
.dosc-app .dosc-fdc-input:hover { background: #ece7e2; }
.dosc-app .dosc-fdc-input:focus-visible { outline: 2px solid #654638; outline-offset: 2px; }
.dosc-app .dosc-fdc-row { display: flex; gap: 4px; padding-top: 6px; }
.dosc-app .dosc-fdc-opt,
.dosc-app .dosc-fdc-opt:hover,
.dosc-app .dosc-fdc-opt:focus {
	flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 0; height: 44px; margin: 0; padding: 0 8px;
	background: none; border: 0; border-radius: 10px; box-shadow: none; color: #5c524b;
	font: 600 15px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; text-transform: none; letter-spacing: 0; white-space: nowrap; cursor: pointer;
	transition: background-color .15s ease;
}
.dosc-app .dosc-fdc-opt:hover { background: #f4f1ee; }
.dosc-app .dosc-fdc-opt svg { flex: none; }
.dosc-app .dosc-fdc-opt span { overflow: hidden; text-overflow: ellipsis; }
.dosc-app .dosc-fdc-opt em { padding: 2px 6px; border-radius: 6px; background: #f4efeb; color: #8a7b71; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 560px) {
	.dosc-app .dosc-fdc { margin: 6px 12px 16px; padding: 12px 12px 4px; border-radius: 14px; }
	.dosc-app .dosc-fdc-input { font-size: 15px; }
	.dosc-app .dosc-fdc-opt { gap: 6px; font-size: 13px; }
	.dosc-app .dosc-fdc-opt em { display: none; }
}

/* Create sheet: icons on the left, "Soon" on Live video */
.dosc-igs.is-create .dosc-igs-item, .dosc-igs.is-create .dosc-igs-item:hover, .dosc-igs.is-create .dosc-igs-item:focus { justify-content: flex-start; gap: 14px; padding: 13px 22px; text-align: left; }
.dosc-igs.is-create .dosc-igs-item .dosc-ig-i { display: inline-flex; color: #000; }
.dosc-igs.is-create .dosc-igs-item.is-soon { color: #8a7b71; }
.dosc-igs.is-create .dosc-igs-item.is-soon .dosc-ig-i { color: #8a7b71; }
.dosc-igs.is-create .dosc-igs-item.is-soon::after { content: "Soon"; margin-left: auto; padding: 2px 7px; border-radius: 6px; background: #f4efeb; color: #8a7b71; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
/* Create sheet: larger and wider, with more room around each option (same look) */
.dosc-igs.is-create .dosc-igs-box { max-width: 560px; max-height: min(90vh, 760px); border-radius: 18px; }
.dosc-igs.is-create .dosc-igs-title { padding: 30px 32px 10px; font-size: 22px; }
.dosc-igs.is-create .dosc-igs-title + .dosc-igs-list { margin-top: 18px; }
.dosc-igs.is-create .dosc-igs-item, .dosc-igs.is-create .dosc-igs-item:hover, .dosc-igs.is-create .dosc-igs-item:focus { gap: 18px; min-height: 66px; padding: 18px 34px; font-size: 17px; }
.dosc-igs.is-create .dosc-igs-item .dosc-ig-i svg { width: 26px; height: 26px; }
.dosc-igs.is-create .dosc-igs-item.is-soon::after { padding: 4px 9px; font-size: 12px; }
.dosc-igs.is-create .dosc-igs-cancel, .dosc-igs.is-create .dosc-igs-cancel:hover, .dosc-igs.is-create .dosc-igs-cancel:focus { min-height: 64px; margin-top: 4px; padding: 18px 34px 20px; font-size: 17px; }
@media (max-width: 760px) {
	.dosc-igs.is-create .dosc-igs-box { max-width: none; border-radius: 18px 18px 0 0; }
	.dosc-igs.is-create .dosc-igs-title { padding: 14px 24px 8px; font-size: 20px; }
	.dosc-igs.is-create .dosc-igs-item, .dosc-igs.is-create .dosc-igs-item:hover, .dosc-igs.is-create .dosc-igs-item:focus { min-height: 60px; padding: 16px 26px; font-size: 16.5px; }
	.dosc-igs.is-create .dosc-igs-cancel, .dosc-igs.is-create .dosc-igs-cancel:hover, .dosc-igs.is-create .dosc-igs-cancel:focus { min-height: 58px; padding: 16px 26px; }
}

/* "What's on your mind?" box on your own profile page */
.dosc-app .dosc-pf-composer { margin: 6px 0 20px; }
.dosc-app .dosc-pf-composer .dosc-fdc { margin: 0; }
@media (max-width: 560px) { .dosc-app .dosc-pf-composer .dosc-fdc { margin: 0 12px; } }

/* ---------------------------------------------------------------
 * Follow: "Requested", private / blocked profile, Add story
 * ------------------------------------------------------------- */
.dosc-app .dosc-fbtn.is-requested,
.dosc-app .dosc-fbtn.is-requested:hover,
.dosc-app .dosc-ig-btns .dosc-fbtn.dosc-ig-follow.is-requested,
.dosc-app .dosc-ig-btns .dosc-fbtn.dosc-ig-follow.is-requested:hover:not([disabled]),
.dosc-app .dosc-ig-btns .dosc-fbtn.dosc-ig-follow.is-requested:focus { background: #efe9e4 !important; color: #000 !important; }
.dosc-app .dosc-ig-btns .dosc-ig-storybtn { gap: 6px; }
.dosc-app .dosc-ig-private { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 18px 0 30px; padding: 40px 20px; border-top: 1px solid #e7dfd9; text-align: center; }
.dosc-app .dosc-ig-private-ico { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 6px; border: 2px solid #000; border-radius: 50%; }
.dosc-app .dosc-ig-private h2 { margin: 0; font: 700 18px/1.3 "Helvetica Neue", Helvetica, Arial, sans-serif; }
.dosc-app .dosc-ig-private p { max-width: 340px; color: #6f5e55; font-size: 14px; }

/* follow request buttons (Settings > Privacy, Notifications) */
.dosc-app .dosc-set-acts { display: flex; flex: none; align-items: center; gap: 8px; margin-left: auto; }
.dosc-app .dosc-set-btn,
.dosc-app .dosc-set-btn:hover,
.dosc-app .dosc-set-btn:focus {
	display: inline-flex; align-items: center; justify-content: center; height: 32px; margin: 0; padding: 0 14px;
	background: #efe9e4; border: 0; border-radius: 8px; box-shadow: none; color: #000;
	font: 600 13.5px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; text-transform: none; letter-spacing: 0; white-space: nowrap; cursor: pointer;
}
.dosc-app .dosc-set-btn:hover { background: #e4dcd5; }
.dosc-app .dosc-set-btn.is-dark { background: #654638; color: #fff; }
.dosc-app .dosc-set-btn.is-dark:hover { background: #000; }
.dosc-app .dosc-set-btn[disabled] { opacity: .5; cursor: default; }
.dosc-app .dosc-set-done { color: #6f5e55; font-size: 13px; }
.dosc-app .dosc-notif .dosc-set-acts { padding-left: 8px; }

/* ---------------------------------------------------------------
 * Settings page
 * ------------------------------------------------------------- */
.dosc-app .dosc-set { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 0; width: 100%; max-width: 1040px; margin: 28px auto 60px; padding: 0 24px; }
.dosc-app .dosc-set-nav { padding-right: 24px; border-right: 1px solid #e7dfd9; }
.dosc-app .dosc-set-h1 { margin: 0 0 18px; padding: 0 12px; font: 600 30px/1.15 "EB Garamond", Garamond, Georgia, serif; }
.dosc-app .dosc-set-nav ul { display: flex; flex-direction: column; gap: 2px; }
.dosc-app .dosc-set-link { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 12px; color: #000; text-decoration: none; transition: background-color .15s ease; }
.dosc-app .dosc-set-link:hover { background: #f6f2ee; }
.dosc-app .dosc-set-link.is-active { background: #f1ebe5; }
.dosc-app .dosc-set-link > span { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.dosc-app .dosc-set-link b { font-weight: 600; font-size: 15px; line-height: 1.3; }
.dosc-app .dosc-set-link small { color: #7a6c63; font-size: 12.5px; line-height: 1.35; }
.dosc-app .dosc-set-link > .dosc-ico:last-child { display: none; color: #b3a69d; }
.dosc-app .dosc-set-link.is-red { color: #c62828; }
.dosc-app .dosc-set-link.is-red small { color: #b17b74; }
.dosc-app .dosc-set-panel { min-width: 0; padding: 4px 0 0 40px; }
.dosc-app .dosc-set-back { display: none; }
.dosc-app .dosc-set-title { margin: 0 0 22px; font: 600 24px/1.2 "Helvetica Neue", Helvetica, Arial, sans-serif; }
.dosc-app .dosc-set-h3 { display: flex; align-items: center; gap: 8px; margin: 30px 0 10px; font: 600 16px/1.3 "Helvetica Neue", Helvetica, Arial, sans-serif; }
.dosc-app .dosc-set-h3 em { min-width: 20px; padding: 0 6px; border-radius: 10px; background: #654638; color: #fff; font-style: normal; font-size: 12px; line-height: 20px; text-align: center; }
.dosc-app .dosc-set-h3 em:empty { display: none; }
.dosc-app .dosc-set-note { margin: 0 0 16px; color: #6f5e55; font-size: 14px; }
.dosc-app .dosc-set-note a { color: #654638; font-weight: 600; }
.dosc-app .dosc-set-empty { color: #8a7b71; font-size: 14px; }
.dosc-app .dosc-set-form { max-width: 560px; }
.dosc-app .dosc-set-form .dosc-msg { min-height: 20px; margin: 6px 0 0; color: #c62828; font-size: 14px; }
.dosc-app .dosc-set-form .dosc-msg.is-ok { color: #2f7d4f; }
.dosc-app .dosc-set-btns { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 18px; }
.dosc-app .dosc-set-avatar { margin-bottom: 18px; }

/* switches: label left, switch right */
.dosc-app .dosc-set-sw { position: relative; border-bottom: 1px solid #efe9e4; }
.dosc-app .dosc-set-swi { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.dosc-app .dosc-set-sw label { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 2px; cursor: pointer; }
.dosc-app .dosc-set-swt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dosc-app .dosc-set-swt b { font-weight: 600; font-size: 15px; }
.dosc-app .dosc-set-swt small { color: #7a6c63; font-size: 13px; line-height: 1.45; }
.dosc-app .dosc-set-swk { position: relative; flex: none; width: 46px; height: 28px; border-radius: 14px; background: #d9cec2; transition: background-color .18s ease; }
.dosc-app .dosc-set-swk::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .18s ease; }
.dosc-app .dosc-set-swi:checked + label .dosc-set-swk { background: #654638; }
.dosc-app .dosc-set-swi:checked + label .dosc-set-swk::after { transform: translateX(18px); }
.dosc-app .dosc-set-swi:focus-visible + label .dosc-set-swk { outline: 2px solid #654638; outline-offset: 2px; }

/* people lists (requests, blocked) */
.dosc-app .dosc-set-people { display: flex; flex-direction: column; max-width: 560px; }
.dosc-app .dosc-set-people li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #efe9e4; }
.dosc-app .dosc-set-person { display: flex; flex: 1 1 auto; align-items: center; gap: 12px; min-width: 0; color: #000; text-decoration: none; }
.dosc-app .dosc-set-person img { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #f4efeb; }
.dosc-app .dosc-set-person span { display: flex; flex-direction: column; min-width: 0; }
.dosc-app .dosc-set-person b { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dosc-app .dosc-set-person small { color: #7a6c63; font-size: 13px; }
.dosc-app .dosc-set-zero { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 560px; padding: 40px 20px; border: 1px dashed #e0d6cd; border-radius: 16px; color: #6f5e55; text-align: center; }
.dosc-app .dosc-set-zero p { color: #000; font-weight: 600; }
.dosc-app .dosc-set-zero small { font-size: 13px; }
.dosc-app .dosc-set-danger, .dosc-app .dosc-set-out { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 560px; }
.dosc-app .dosc-set-danger p, .dosc-app .dosc-set-out p { color: #3d3430; }

@media (max-width: 900px) {
	.dosc-app .dosc-set { grid-template-columns: minmax(0, 1fr); margin: 0 auto 40px; padding: 0 16px; }
	.dosc-app .dosc-set-nav { padding: 0; border: 0; }
	.dosc-app .dosc-set-h1 { margin: 18px 0 10px; padding: 0 4px; font-size: 26px; }
	.dosc-app .dosc-set-link { padding: 13px 6px; border-radius: 0; border-bottom: 1px solid #f1ebe5; }
	.dosc-app .dosc-set-link.is-active { background: none; }
	.dosc-app .dosc-set-link > .dosc-ico:last-child { display: block; }
	.dosc-app .dosc-set-panel { display: none; padding: 0; }
	/* a section is open: only the section, with a way back */
	.dosc-app .dosc-set.has-tab .dosc-set-nav { display: none; }
	.dosc-app .dosc-set.has-tab .dosc-set-panel { display: block; }
	.dosc-app .dosc-set-back { display: inline-flex; align-items: center; gap: 6px; margin: 14px 0 6px; color: #000; font-weight: 600; text-decoration: none; }
	.dosc-app .dosc-set-title { margin-bottom: 14px; font-size: 20px; }
}

/* ---------------------------------------------------------------
 * Share sheet
 * ------------------------------------------------------------- */
html.dosc-sh-lock { overflow: hidden; }
.dosc-sh { position: fixed; inset: 0; z-index: 100300; display: flex; align-items: center; justify-content: center; padding: 20px; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color: #000; }
.dosc-sh *, .dosc-sh *::before, .dosc-sh *::after { box-sizing: border-box; }
.dosc-sh-back { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .22s ease; }
.dosc-sh-box {
	position: relative; display: flex; flex-direction: column; width: 100%; max-width: 540px; max-height: min(88vh, 720px);
	background: #fff; border-radius: 16px; box-shadow: 0 24px 70px rgba(0, 0, 0, .3); overflow: hidden;
	opacity: 0; transform: scale(1.04); transition: opacity .2s ease, transform .22s cubic-bezier(.2, .85, .25, 1);
}
.dosc-sh.is-open .dosc-sh-back { opacity: 1; }
.dosc-sh.is-open .dosc-sh-box { opacity: 1; transform: none; }
.dosc-sh-head { position: relative; display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 52px; border-bottom: 1px solid #efe9e4; }
.dosc-sh-head h2 { margin: 0; font: 700 16px/1.3 "Helvetica Neue", Helvetica, Arial, sans-serif; }
.dosc-sh-grab { display: none; }
.dosc-sh .dosc-sh-x, .dosc-sh .dosc-sh-x:hover, .dosc-sh .dosc-sh-x:focus { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 36px; height: 36px; margin: 0; padding: 0; background: none; border: 0; border-radius: 50%; box-shadow: none; color: #000; cursor: pointer; }
.dosc-sh .dosc-sh-x:hover { background: #f4efeb; }
.dosc-sh-search { display: flex; align-items: center; gap: 8px; margin: 12px 16px 4px; padding: 0 12px; height: 40px; background: #f4f1ee; border-radius: 10px; color: #7a6c63; }
.dosc-sh-search input, .dosc-sh-search input:focus { flex: 1 1 auto; min-width: 0; height: 40px; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; outline: 0; color: #000; font: 400 15px/40px "Helvetica Neue", Helvetica, Arial, sans-serif; }
.dosc-sh-people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 4px; min-height: 120px; max-height: 300px; padding: 10px 12px 12px; overflow-y: auto; overscroll-behavior: contain; }
.dosc-sh-people.is-loading { opacity: .5; }
.dosc-sh .dosc-sh-p, .dosc-sh .dosc-sh-p:hover, .dosc-sh .dosc-sh-p:focus {
	display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; margin: 0; padding: 8px 4px; background: none; border: 0; border-radius: 12px; box-shadow: none; color: #000; cursor: pointer;
}
.dosc-sh .dosc-sh-p:hover { background: #f8f4f1; }
.dosc-sh-pav { position: relative; display: block; width: 64px; height: 64px; }
.dosc-sh-pav img { display: block; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #f4efeb; }
.dosc-sh-tick { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid #fff; border-radius: 50%; background: #654638; color: #fff; opacity: 0; transform: scale(.6); transition: opacity .15s ease, transform .15s ease; }
.dosc-sh-p.is-on .dosc-sh-tick { opacity: 1; transform: none; }
.dosc-sh-p.is-on img { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #654638; }
.dosc-sh-pn { display: block; width: 100%; overflow: hidden; font-size: 12.5px; line-height: 1.3; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.dosc-sh-none { grid-column: 1 / -1; padding: 30px 0; color: #8a7b71; font-size: 14px; text-align: center; }
.dosc-sh-compose { display: flex; gap: 8px; padding: 10px 16px 12px; border-top: 1px solid #efe9e4; }
.dosc-sh-compose[hidden] { display: none; }
.dosc-sh-msg, .dosc-sh-msg:focus { flex: 1 1 auto; min-width: 0; height: 42px; margin: 0; padding: 0 14px; background: #f4f1ee; border: 0; border-radius: 10px; box-shadow: none; outline: 0; color: #000; font: 400 15px/42px "Helvetica Neue", Helvetica, Arial, sans-serif; }
.dosc-sh .dosc-sh-send, .dosc-sh .dosc-sh-send:hover, .dosc-sh .dosc-sh-send:focus { flex: none; height: 42px; margin: 0; padding: 0 22px; background: #654638; border: 0; border-radius: 10px; box-shadow: none; color: #fff; font: 600 15px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; cursor: pointer; }
.dosc-sh .dosc-sh-send:hover:not([disabled]) { background: #000; }
.dosc-sh .dosc-sh-send[disabled] { opacity: .5; cursor: default; }
.dosc-sh-guest { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 20px 16px; text-align: center; }
.dosc-sh-guest p { margin: 0; color: #3d3430; font-size: 14.5px; }
.dosc-sh-login { padding: 9px 22px; border-radius: 10px; background: #654638; color: #fff !important; font-weight: 600; text-decoration: none; }
.dosc-sh-sub { margin: 0; padding: 12px 16px 2px; border-top: 6px solid #f4efeb; color: #7a6c63; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dosc-sh-ext { display: flex; gap: 2px; padding: 8px 10px 14px; overflow-x: auto; scrollbar-width: none; }
.dosc-sh-ext::-webkit-scrollbar { display: none; }
.dosc-sh .dosc-sh-e, .dosc-sh .dosc-sh-e:hover, .dosc-sh .dosc-sh-e:focus { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 78px; margin: 0; padding: 6px 2px; background: none; border: 0; border-radius: 12px; box-shadow: none; color: #000; cursor: pointer; }
.dosc-sh .dosc-sh-e:hover { background: #f8f4f1; }
.dosc-sh-eico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #f4f1ee; }
.dosc-sh-elbl { font-size: 12px; line-height: 1.2; text-align: center; }
.dosc-sh-toast { position: fixed; left: 50%; bottom: 28px; z-index: 100400; max-width: calc(100vw - 40px); padding: 11px 18px; border-radius: 10px; background: #1f1a17; color: #fff; font: 500 14px/1.35 "Helvetica Neue", Helvetica, Arial, sans-serif; opacity: 0; transform: translate(-50%, 10px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.dosc-sh-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 600px) {
	.dosc-sh { align-items: flex-end; padding: 0; }
	.dosc-sh-box { max-width: none; max-height: 88vh; border-radius: 16px 16px 0 0; transform: translateY(40px); }
	.dosc-sh-grab { display: block; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: #d9cec2; }
	.dosc-sh-people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.dosc-sh-ext { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
	.dosc-sh-box, .dosc-sh-back, .dosc-sh-toast { transition: none; }
}
