.header-share, .content-share { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: #f7f3e7; border: 1px solid #d5d8c9; border-radius: 9px; color: #244e3c; font: inherit; font-size: 13px; padding: 10px 13px; cursor: pointer; min-height: 42px; }
.content-share { margin: 10px 0; }
.share-dialog { width: min(620px, calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 25px; overflow: auto; border: 1px solid #c6d1c1; border-radius: 20px; background: #fdfbf3; color: #254636; box-shadow: 0 25px 100px #123b3b44; }
.share-dialog::backdrop { background: #102d2b99; }
.share-heading { display: flex; align-items: start; justify-content: space-between; gap: 15px; }
.share-heading h2 { font: 400 30px/1.2 Georgia, serif; margin: 7px 0 20px; color: #254636; }
.share-heading > button { width: 42px; height: 42px; padding: 0; border: 1px solid #d5d8c9; border-radius: 50%; background: #fffdf6; font-size: 27px; color: #254636; cursor: pointer; flex: none; }
.share-preview { display: grid; grid-template-columns: 135px minmax(0,1fr); border: 1px solid #deded0; border-radius: 12px; overflow: hidden; background: #fffefa; }
.share-preview img { display: block; width: 100%; height: 100%; min-height: 145px; object-fit: cover; background: #ede6d6; }
.share-preview > div { padding: 15px; min-width: 0; }
.share-preview small { display: block; font-size: 11px; color: #667458; margin-bottom: 5px; }
.share-preview strong { display: block; font: 400 21px/1.2 Georgia, serif; color: #254636; }
.share-preview p { font-size: 12px; line-height: 1.5; color: #64705d; margin: 8px 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.share-preview div > span { font-size: 11px; color: #7b826f; }
.share-primary { display: flex; gap: 10px; margin: 20px 0 16px; }
.share-primary button { flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 46px; padding: 11px; border: 1px solid #254f3b; border-radius: 9px; font-family: inherit; font-size: 14px; font-weight: 600; color: #fffcef; background: #254f3b; cursor: pointer; }
.share-primary button[hidden] { display: none; }
.share-networks { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.share-networks a, .share-networks button { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 9px; border: 1px solid #deded0; border-radius: 9px; background: #fffefa; color: #354b3c; text-decoration: none; font: 13px sans-serif; cursor: pointer; }
.share-network-mark { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: none; border-radius: 7px; color: white; font: 700 16px sans-serif; }
.share-other { margin: 18px 0; font-size: 13px; color: #51644f; }
.share-other summary { cursor: pointer; min-height: 38px; align-content: center; }
.share-other p { line-height: 1.6; }
.share-copy-apps, .share-secondary { display: flex; flex-wrap: wrap; gap: 8px; }
.share-copy-apps button, .share-secondary button, .share-secondary a { padding: 9px 11px; min-height: 40px; color: #315742; background: #f0f1e7; border: 1px solid #d9ddce; border-radius: 8px; font: 12px sans-serif; text-decoration: none; cursor: pointer; }
.share-link-label, .share-scope { display: block; font-size: 12px; color: #596c53; margin: 18px 0 8px; }
.share-scope[hidden] { display: none; }
.share-link-label input, .share-scope select { display: block; width: 100%; box-sizing: border-box; padding: 11px; margin-top: 6px; border-radius: 8px; border: 1px solid #cbd3c2; background: #fffef9; color: #354d3c; font: 12px sans-serif; min-height: 42px; }
.share-status { min-height: 20px; margin: 10px 0 0; font-size: 12px; color: #47623c; line-height: 1.5; }
.share-dialog :focus-visible, .header-share:focus-visible, .content-share:focus-visible { outline: 3px solid #b98b27; outline-offset: 3px; }
@media (max-width: 600px) { .header-share { padding: 10px; } .header-share > span { display: none; } .share-dialog { padding: 18px; } .share-preview { grid-template-columns: 90px minmax(0,1fr); } .share-preview strong { font-size: 18px; } .share-networks { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 380px) { .kalam-header { padding-inline: 12px; } .app-header .kalam-brand { gap: 7px; } .kalam-brand img { width: 32px; height: 32px; flex-basis: 32px; } .kalam-brand small { display: none; } .header-tools { gap: 4px; } }
@media print { .header-share, .content-share, .share-dialog { display: none !important; } }
