/* OT Diary Creator Experience — every rule is scoped to plugin-owned UI. */
.otd-profile-utilities {
    position: absolute;
    top: 68px;
    right: 48px;
    z-index: 998;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}
.otd-profile-utilities > * {
    pointer-events: auto;
}
.otd-profile-utility-share-slot {
    display: inline-flex;
    align-items: center;
}
.otd-profile-utility-share-slot:empty {
    display: none;
}
.otd-private-profile-settings,
.otd-profile-share-launch,
.otd-profile-utility-share-slot > a,
.otd-profile-utility-share-slot > button,
.otd-profile-share-fallback {
    box-sizing: border-box !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    color: #171717 !important;
    background: rgba(255,255,255,.94) !important;
    border: 1px solid rgba(17,17,17,.10) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.06) !important;
    text-decoration: none !important;
    font-family: inherit !important;
    font-size: 0 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    overflow: hidden !important;
    transition: transform .18s ease, background .18s ease, border-color .18s ease !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.otd-private-profile-settings:hover,
.otd-profile-share-launch:hover,
.otd-profile-utility-share-slot > a:hover,
.otd-profile-utility-share-slot > button:hover,
.otd-profile-share-fallback:hover {
    color: #111 !important;
    background: #fff !important;
    border-color: rgba(17,17,17,.18) !important;
    transform: translateY(-1px);
}
.otd-private-profile-settings:focus-visible,
.otd-profile-share-launch:focus-visible,
.otd-profile-utility-share-slot > a:focus-visible,
.otd-profile-utility-share-slot > button:focus-visible,
.otd-profile-share-fallback:focus-visible {
    outline: 2px solid #111 !important;
    outline-offset: 3px !important;
}
.otd-profile-share-launch svg,
.otd-profile-utility-share-slot svg,
.otd-profile-share-fallback svg,
.otd-private-profile-settings svg {
    width: 18px !important;
    height: 18px !important;
    flex: none !important;
    display: block !important;
}
.otd-profile-utility-share-slot img {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain !important;
}
/* Hide textual descendants of the moved Share control, but preserve its icon. */
.otd-profile-utility-share-slot > a > span,
.otd-profile-utility-share-slot > button > span {
    font-size: 0 !important;
}

.otd-experience-surface {
    width: min(100%, 1160px);
    margin: 0 auto;
    padding: 44px 36px 120px;
    box-sizing: border-box;
    color: #111;
    font-family: inherit;
}

.otd-settings-back {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    margin: 0 0 30px;
    padding: 0 15px;
    color: #111 !important;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 999px;
    text-decoration: none !important;
    font-family: inherit;
    font-size: 12px;
    line-height: 1;
    letter-spacing: .08em;
    box-shadow: none;
    transition: border-color .16s ease, transform .16s ease, background .16s ease;
}
.otd-settings-back strong {
    font: inherit;
    font-weight: 650;
}
.otd-settings-back span {
    display: block;
    margin-top: -1px;
    font-size: 17px;
    line-height: 1;
    letter-spacing: 0;
}
.otd-settings-back:hover {
    color: #111 !important;
    background: #f8f8f8;
    border-color: #c9c9c9;
    transform: translateX(-1px);
}
.otd-settings-back:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

.otd-experience-kicker {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 650;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.otd-experience-title {
    margin: 0;
    font-size: clamp(42px, 5vw, 72px);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 650;
}
.otd-experience-subtitle {
    margin: 14px 0 0;
    max-width: 670px;
    color: #777;
    font-size: 18px;
    line-height: 1.45;
}
.otd-updates-feed {
    width: min(100%, 700px);
    margin: 42px auto 0;
    display: grid;
    gap: 22px;
}
.otd-update-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 22px;
    overflow: hidden;
}
.otd-update-card__head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 16px 18px;
}
.otd-update-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: #f1f1f1;
}
.otd-update-author { min-width: 0; flex: 1; }
.otd-update-author a { color: #111; font-size: 14px; font-weight: 650; text-decoration: none; }
.otd-update-meta { display: flex; gap: 7px; margin-top: 2px; color: #8a8a8a; font-size: 12px; }
.otd-update-image { display: block; width: 100%; max-height: 700px; object-fit: cover; background: #f4f4f4; }
.otd-update-body { padding: 18px; }
.otd-update-body h2 { margin: 0 0 8px; color: #111; font-size: 21px; line-height: 1.18; letter-spacing: -.025em; }
.otd-update-body p { margin: 0; color: #666; font-size: 14px; line-height: 1.55; }
.otd-update-open { display: inline-flex; margin-top: 16px; color: #111; font-size: 13px; font-weight: 650; text-decoration: none; }
.otd-feed-loading,
.otd-feed-empty,
.otd-feed-error { padding: 44px 24px; color: #777; text-align: center; background: #fff; border: 1px solid #e9e9e9; border-radius: 22px; }
.otd-feed-more-wrap { display: flex; justify-content: center; padding-top: 2px; }
.otd-feed-more { appearance: none; border: 1px solid #ddd; background: #fff; color: #111; border-radius: 999px; padding: 12px 20px; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.otd-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 38px; }
.otd-setting-link { display: flex; align-items: center; justify-content: space-between; min-height: 92px; padding: 20px 22px; color: #111; background: #fff; border: 1px solid #e8e8e8; border-radius: 18px; text-decoration: none !important; transition: border-color .16s ease, transform .16s ease; }
.otd-setting-link:hover { color: #111; border-color: #cfcfcf; transform: translateY(-1px); }
.otd-setting-link strong { display: block; font-size: 15px; font-weight: 650; }
.otd-setting-link span { display: block; margin-top: 4px; color: #888; font-size: 13px; }
.otd-setting-link__arrow { flex: none; margin-left: 18px; font-size: 22px; font-weight: 300; }

@media (max-width: 782px) {
    .otd-profile-utilities {
        top: calc(env(safe-area-inset-top, 0px) + 14px);
        right: max(16px, env(safe-area-inset-right, 0px));
        gap: 8px;
    }
    body.admin-bar .otd-profile-utilities { top: calc(env(safe-area-inset-top, 0px) + 54px); }
    .otd-private-profile-settings,
    .otd-profile-share-launch,
    .otd-profile-utility-share-slot > a,
    .otd-profile-utility-share-slot > button,
    .otd-profile-share-fallback {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        max-width: 44px !important;
    }
    .otd-private-profile-settings,
    .otd-profile-share-launch,
    .otd-profile-utility-share-slot > a,
    .otd-profile-utility-share-slot > button,
    .otd-profile-share-fallback { width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important; max-width: 44px !important; }
    .otd-experience-surface { padding: 30px 18px 100px; }
    .otd-experience-title { font-size: 46px; }
    .otd-experience-subtitle { font-size: 16px; }
    .otd-settings-grid { grid-template-columns: 1fr; }
    .otd-updates-feed { margin-top: 30px; }
}

/* Settings 1.2 — a complete Creator Workspace shell, scoped entirely to plugin-owned UI. */
.otd-experience-surface:has(.otd-settings-app-shell) {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}
.otd-settings-app-shell {
    min-height: calc(100vh - 32px);
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    background: #f7f7f7;
    color: #111;
}
.otd-settings-sidebar {
    position: sticky;
    top: 32px;
    align-self: start;
    height: calc(100vh - 32px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-right: 1px solid #e5e5e5;
    overflow: auto;
}
.otd-settings-brand {
    min-height: 108px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    color: #111 !important;
    border-bottom: 1px solid #e5e5e5;
    text-decoration: none !important;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -.055em;
}
.otd-settings-nav { padding: 35px 16px 22px; }
.otd-settings-nav-label {
    margin: 18px 14px 13px;
    color: #9b9b9b;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .14em;
}
.otd-settings-nav-label:first-child { margin-top: 0; }
.otd-settings-nav-item {
    min-height: 52px;
    padding: 0 14px;
    display: grid;
    grid-template-columns: 28px minmax(0,1fr) 8px;
    align-items: center;
    gap: 10px;
    color: #5d5d5d !important;
    border-radius: 14px;
    text-decoration: none !important;
    font-size: 15px;
    transition: background .15s ease, color .15s ease;
}
.otd-settings-nav-item:hover { background: #f7f7f7; color: #111 !important; }
.otd-settings-nav-item.is-active { background: #f1f1f1; color: #111 !important; font-weight: 600; }
.otd-settings-nav-icon { width: 28px; text-align: center; color: currentColor; font-size: 17px; }
.otd-settings-nav-dot { width: 7px; height: 7px; border-radius: 50%; background: #111; }
.otd-settings-user {
    margin-top: auto;
    min-height: 76px;
    padding: 12px 18px;
    display: grid;
    grid-template-columns: 40px minmax(0,1fr) 20px;
    align-items: center;
    gap: 10px;
    color: #111 !important;
    border-top: 1px solid #e5e5e5;
    text-decoration: none !important;
}
.otd-settings-user-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #ddd; display:flex; align-items:center; justify-content:center; }
.otd-settings-user-avatar img { width: 100%; height: 100%; object-fit: cover; display:block; }
.otd-settings-user-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; font-weight:650; }
.otd-settings-user-arrow { text-align:right; font-size:17px; }
.otd-settings-stage { min-width: 0; }
.otd-settings-topbar {
    min-height: 108px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}
.otd-settings-topbar > div:first-child { display:flex; flex-direction:column; gap:4px; }
.otd-settings-topbar strong { font-size:17px; line-height:1.2; }
.otd-settings-topbar span { color:#8c8c8c; font-size:13px; }
.otd-settings-topbar-actions { display:flex; align-items:center; gap:12px; }
.otd-settings-profile-shortcut,
.otd-settings-create {
    box-sizing:border-box;
    min-height:48px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#111 !important;
    text-decoration:none !important;
    font-weight:650;
}
.otd-settings-profile-shortcut { width:48px; border:1px solid #e3e3e3; border-radius:50%; font-size:20px; }
.otd-settings-create { padding:0 24px; background:#111; color:#fff !important; border-radius:999px; font-size:15px; }
.otd-settings-main { padding: 50px 42px 120px; }
.otd-settings-main .otd-settings-back { margin-bottom: 34px; }
.otd-settings-main .otd-experience-subtitle { max-width:760px; }
.otd-settings-overview {
    margin-top: 38px;
    padding: 0;
    background:#fff;
    border:1px solid #e6e6e6;
    border-radius:22px;
    overflow:hidden;
}
.otd-settings-section-head {
    padding: 25px 28px;
    display:flex;
    justify-content:space-between;
    gap:24px;
    align-items:flex-start;
    border-bottom:1px solid #ededed;
}
.otd-settings-section-head h2 { margin:0; font-size:20px; letter-spacing:-.02em; }
.otd-settings-section-head p { margin:7px 0 0; color:#858585; font-size:14px; line-height:1.45; }
.otd-settings-section-head > span { flex:none; margin-top:2px; padding:7px 11px; border-radius:999px; background:#f1f1f1; color:#707070; font-size:10px; font-weight:700; letter-spacing:.08em; }
.otd-settings-main .otd-settings-grid { margin:0; padding:18px; gap:12px; }
.otd-settings-main .otd-setting-link { min-height:104px; border-radius:16px; background:#fafafa; }
.otd-settings-note { margin-top:16px; padding:22px 24px; background:#fff; border:1px solid #e6e6e6; border-radius:18px; }
.otd-settings-note strong { display:block; font-size:14px; }
.otd-settings-note p { margin:6px 0 0; color:#858585; font-size:13px; line-height:1.5; }

@media (max-width: 960px) {
    .otd-settings-app-shell { grid-template-columns: 230px minmax(0,1fr); }
    .otd-settings-brand { padding: 0 22px; }
    .otd-settings-topbar { padding: 0 26px; }
    .otd-settings-main { padding: 42px 26px 110px; }
}
@media (max-width: 782px) {
    .otd-settings-app-shell { display:block; min-height:100vh; }
    .otd-settings-sidebar { position:static; height:auto; border-right:0; border-bottom:1px solid #e5e5e5; }
    .otd-settings-brand { min-height:74px; }
    .otd-settings-nav { display:none; }
    .otd-settings-user { display:none; }
    .otd-settings-topbar { min-height:74px; padding:0 18px; }
    .otd-settings-topbar-actions { gap:8px; }
    .otd-settings-profile-shortcut { width:40px; min-height:40px; }
    .otd-settings-create { min-height:40px; padding:0 16px; }
    .otd-settings-main { padding:30px 18px 100px; }
    .otd-settings-section-head { padding:20px; }
    .otd-settings-main .otd-settings-grid { padding:12px; }
}


/* Share Profile 1.3 — all selectors are plugin-owned and cannot restyle the theme globally. */
.otdiary-share-modal[hidden] { display: none !important; }
.otdiary-share-modal { position: fixed; inset: 0; z-index: 100000; display: grid; align-items: end; justify-items: center; font-family: inherit; }
.otdiary-share-modal__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(0,0,0,.38); cursor: default; }
.otdiary-share-modal__sheet { position: relative; z-index: 1; width: min(94vw, 560px); max-height: min(92vh, 900px); overflow: auto; box-sizing: border-box; padding: 10px 22px 24px; background: #fff; border: 1px solid rgba(17,17,17,.08); border-radius: 26px 26px 0 0; box-shadow: 0 -20px 70px rgba(0,0,0,.18); }
.otdiary-share-modal__grab { width: 42px; height: 4px; margin: 0 auto 16px; border-radius: 99px; background: #d6d6d6; }
.otdiary-share-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.otdiary-share-modal__head span { display:block; margin-bottom:5px; color:#8d8d8d; font-size:10px; font-weight:700; letter-spacing:.14em; }
.otdiary-share-modal__head h2 { margin:0; color:#111; font-size:28px; line-height:1; letter-spacing:-.035em; }
.otdiary-share-modal__head > button { width:34px; height:34px; border:1px solid #e5e5e5; border-radius:50%; background:#fff; color:#111; font:inherit; font-size:22px; line-height:1; cursor:pointer; }
.otdiary-story-card-preview { position:relative; width:min(68%, 280px); aspect-ratio:9/16; margin:0 auto 20px; box-sizing:border-box; display:flex; flex-direction:column; align-items:center; justify-content:center; overflow:hidden; padding:28px 20px; color:#111; text-align:center; background:linear-gradient(155deg,#f7f7f7 0%,#d9d9d9 52%,#b9b9b9 100%); border:1px solid #e4e4e4; border-radius:22px; }
.otdiary-story-card-preview::after { content:""; position:absolute; inset:auto -25% -18% 10%; height:45%; border-radius:50%; background:rgba(255,255,255,.55); filter:blur(36px); }
.otdiary-story-card-preview__brand { position:absolute; z-index:1; top:18px; left:18px; padding:7px 10px; border-radius:12px; background:rgba(255,255,255,.86); font-size:15px; font-weight:750; letter-spacing:-.04em; }
.otdiary-story-card-preview img { position:relative; z-index:1; width:78px; height:78px; margin-top:18px; object-fit:cover; border-radius:50%; border:3px solid #fff; background:#eee; }
.otdiary-story-card-preview__name { position:relative; z-index:1; margin-top:15px; font-size:24px; line-height:1.02; font-weight:750; letter-spacing:-.045em; }
.otdiary-story-card-preview__username { position:relative; z-index:1; margin-top:5px; color:#444; font-size:13px; }
.otdiary-story-card-preview__meta { position:relative; z-index:1; margin-top:12px; color:#444; font-size:10px; line-height:1.45; }
.otdiary-story-card-preview__cta { position:relative; z-index:1; margin-top:28px; padding:9px 13px; border:1px solid rgba(17,17,17,.18); border-radius:999px; background:rgba(255,255,255,.66); font-size:10px; font-weight:700; }
.otdiary-story-card-preview__foot { position:absolute; z-index:1; left:18px; right:18px; bottom:18px; color:#4f4f4f; font-size:9px; }
.otdiary-share-modal__actions { display:grid; gap:9px; }
.otdiary-share-action { appearance:none; width:100%; min-height:66px; box-sizing:border-box; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; padding:12px 16px; color:#111; text-align:left; background:#fff; border:1px solid #e4e4e4; border-radius:16px; font:inherit; cursor:pointer; }
.otdiary-share-action.is-primary { color:#fff; background:#111; border-color:#111; }
.otdiary-share-action span { font-size:14px; font-weight:700; }
.otdiary-share-action small { display:block; margin-top:4px; color:inherit; opacity:.64; font-size:11px; line-height:1.35; }
.otdiary-share-modal__status { min-height:18px; margin:12px 2px 0; color:#686868; font-size:11px; line-height:1.4; text-align:center; }
html.otd-share-open { overflow:hidden; }
@media (min-width: 700px) { .otdiary-share-modal { align-items:center; } .otdiary-share-modal__sheet { border-radius:26px; } }


/* 1.3.5 — My Links creator performance list. */
.otd-my-links{display:grid;gap:16px;max-width:1180px}
.otd-my-links__stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.otd-my-links__stats>div{display:grid;gap:8px;padding:18px 20px;border:1px solid #e6e6e6;border-radius:18px;background:#fff}
.otd-my-links__stats span,.otd-my-link-row__metric span,.otd-my-link-row__url>span{color:#858585;font-size:11px;font-weight:600}
.otd-my-links__stats strong{font-size:27px;font-weight:550;letter-spacing:-.04em}
.otd-my-links__list{display:grid;border:1px solid #e8e8e8;border-radius:20px;background:#fff;overflow:hidden}
.otd-my-link-row{display:grid;grid-template-columns:minmax(220px,1.35fr) minmax(210px,1.1fr) 86px 86px 112px auto;align-items:center;gap:14px;min-width:0;padding:14px 16px;border-bottom:1px solid #ededed}
.otd-my-link-row:last-child{border-bottom:0}
.otd-my-link-row__identity{display:flex;align-items:center;gap:12px;min-width:0}
.otd-my-link-row__identity img,.otd-my-link-row__placeholder{width:48px;height:48px;flex:none;border-radius:12px;background:#f4f4f4;object-fit:contain}
.otd-my-link-row__placeholder{display:grid;place-items:center;font-size:18px}
.otd-my-link-row__identity div{display:grid;gap:3px;min-width:0}
.otd-my-link-row__identity strong,.otd-my-link-row__identity span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.otd-my-link-row__identity strong{font-size:13px;font-weight:650}
.otd-my-link-row__identity span{color:#858585;font-size:11px}
.otd-my-link-row__url{display:grid;gap:5px;min-width:0}
.otd-my-link-row__url code{display:block;overflow:hidden;color:#333;font-family:inherit;font-size:11px;text-overflow:ellipsis;white-space:nowrap;background:transparent}
.otd-my-link-row__metric{display:grid;gap:5px}
.otd-my-link-row__metric strong{font-size:14px;font-weight:650}
.otd-my-link-row__actions{display:flex;gap:7px;justify-content:flex-end}
.otd-my-link-row__actions button,.otd-my-link-row__actions a{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 11px;border:1px solid #dedede;border-radius:999px;background:#fff;color:#111;text-decoration:none;font:inherit;font-size:11px;font-weight:650;cursor:pointer}
.otd-my-link-row__actions button:hover,.otd-my-link-row__actions a:hover{border-color:#aaa}
.otd-my-links__note{margin:0;color:#888;font-size:11px;line-height:1.55}
.otd-my-links__empty{margin:0}
@media(max-width:980px){.otd-my-link-row{grid-template-columns:minmax(200px,1.4fr) minmax(170px,1fr) repeat(3,80px);}.otd-my-link-row__actions{grid-column:1/-1;justify-content:flex-start;padding-left:60px}}
@media(max-width:700px){.otd-my-links__stats{grid-template-columns:repeat(2,minmax(0,1fr))}.otd-my-link-row{grid-template-columns:minmax(0,1fr) repeat(3,minmax(62px,auto));gap:10px;padding:13px}.otd-my-link-row__url{grid-column:1/-1;padding-left:60px}.otd-my-link-row__actions{padding-left:60px}.otd-my-link-row__identity img,.otd-my-link-row__placeholder{width:48px;height:48px}}
@media(max-width:470px){.otd-my-link-row{grid-template-columns:minmax(0,1fr) repeat(3,58px)}.otd-my-link-row__metric strong{font-size:13px}.otd-my-links__stats strong{font-size:23px}}


/* 1.3.6 — compact unified performance bar for My Links. */
.otd-my-links__stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  overflow:hidden;
  border:1px solid #e7e7e7;
  border-radius:14px;
  background:#fff;
}
.otd-my-links__stats>div{
  display:grid;
  gap:3px;
  min-width:0;
  padding:10px 14px;
  border:0;
  border-radius:0;
  background:transparent;
}
.otd-my-links__stats>div+div{
  border-left:1px solid #ededed;
}
.otd-my-links__stats span{
  color:#8a8a8a;
  font-size:10px;
  font-weight:600;
  line-height:1.15;
}
.otd-my-links__stats strong{
  font-size:20px;
  font-weight:560;
  line-height:1.05;
  letter-spacing:-.035em;
  white-space:nowrap;
}
@media(max-width:700px){
  .otd-my-links__stats{
    grid-template-columns:repeat(4,minmax(0,1fr));
    border-radius:13px;
  }
  .otd-my-links__stats>div{
    padding:9px 10px;
  }
  .otd-my-links__stats span{
    font-size:9px;
  }
  .otd-my-links__stats strong{
    font-size:18px;
  }
}
@media(max-width:470px){
  .otd-my-links__stats>div{
    padding:8px 7px;
  }
  .otd-my-links__stats span{
    font-size:8px;
  }
  .otd-my-links__stats strong{
    font-size:16px;
  }
}


/* 1.3.7 — sortable My Links summary bar. */
.otd-my-links__stats>button.otd-my-links__sort{
  appearance:none;
  -webkit-appearance:none;
  display:grid;
  gap:3px;
  min-width:0;
  padding:10px 14px;
  border:0;
  border-radius:0;
  background:transparent;
  color:#111;
  text-align:left;
  font:inherit;
  cursor:pointer;
}
.otd-my-links__stats>button.otd-my-links__sort+button.otd-my-links__sort{border-left:1px solid #ededed}
.otd-my-links__sort span{display:flex;align-items:center;gap:5px;color:#8a8a8a;font-size:10px;font-weight:600;line-height:1.15}
.otd-my-links__sort span i{display:inline-grid;place-items:center;width:14px;height:14px;color:#8a8a8a;font-size:11px;font-style:normal;line-height:1;transition:transform .16s ease,color .16s ease}
.otd-my-links__sort strong{font-size:20px;font-weight:560;line-height:1.05;letter-spacing:-.035em;white-space:nowrap}
.otd-my-links__sort:hover,.otd-my-links__sort:focus-visible{background:#fafafa;outline:none}
.otd-my-links__sort:focus-visible{box-shadow:inset 0 0 0 2px #111}
.otd-my-links__sort[data-sort-state="desc"] span i,.otd-my-links__sort[data-sort-state="asc"] span i{color:#111}
.otd-my-links__sort[data-sort-state="desc"],.otd-my-links__sort[data-sort-state="asc"]{background:#fafafa}
.otd-my-link-row{transition:background-color .15s ease}
@media(max-width:700px){
  .otd-my-links__stats>button.otd-my-links__sort{padding:9px 10px}
  .otd-my-links__sort span{font-size:9px;gap:3px}
  .otd-my-links__sort span i{width:11px;height:11px;font-size:9px}
  .otd-my-links__sort strong{font-size:18px}
}
@media(max-width:470px){
  .otd-my-links__stats>button.otd-my-links__sort{padding:8px 7px}
  .otd-my-links__sort span{font-size:8px}
  .otd-my-links__sort strong{font-size:16px}
}


/* 1.3.9 — Earnings compact bar. Core now reuses the proven My Links metric-bar markup. */
.otd-earnings-summary{margin-top:0}
.otd-earnings-summary>div{min-width:0}
.otd-earnings-summary>div span{display:block}
.otd-earnings-summary>div strong{display:block}


/* 1.3.10 — Earnings bar: keep unified layout but give payment states more breathing room. */
.otd-earnings-summary>div{
  gap:5px;
  padding:15px 16px;
}
.otd-earnings-summary>div span{
  font-size:10px;
}
.otd-earnings-summary>div strong{
  font-size:23px;
  line-height:1.08;
}
@media(max-width:700px){
  .otd-earnings-summary>div{
    padding:13px 10px;
  }
  .otd-earnings-summary>div strong{
    font-size:20px;
  }
}
@media(max-width:470px){
  .otd-earnings-summary>div{
    padding:12px 7px;
  }
  .otd-earnings-summary>div strong{
    font-size:17px;
  }
}


/* 1.3.11 — refined creator workspace sidebar based on the earlier OT Diary navigation language.
   Visual-only: destinations, permissions and section ownership remain unchanged. */
@media (min-width: 783px) {
  .otd-settings-app-shell {
    grid-template-columns: 276px minmax(0, 1fr);
  }

  .otd-settings-sidebar {
    background: #fff;
    border-right: 1px solid #e8e8e8;
    overflow-x: hidden;
  }

  .otd-settings-brand {
    min-height: 96px;
    padding: 0 28px;
    border-bottom: 1px solid #ededed;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.052em;
  }

  .otd-settings-nav {
    padding: 27px 16px 18px;
  }

  .otd-settings-nav-label {
    margin: 20px 14px 9px;
    color: #a0a0a0;
    font-size: 10px;
    font-weight: 650;
    line-height: 1;
    letter-spacing: .145em;
  }

  .otd-settings-nav-label:first-child {
    margin-top: 0;
  }

  .otd-settings-nav-item {
    min-height: 48px;
    padding: 0 13px;
    grid-template-columns: 24px minmax(0, 1fr) 7px;
    gap: 9px;
    border-radius: 13px;
    color: #666 !important;
    font-size: 14px;
    font-weight: 450;
  }

  .otd-settings-nav-item:hover {
    background: #f7f7f7;
    color: #111 !important;
  }

  .otd-settings-nav-item.is-active {
    background: #f1f1f1;
    color: #111 !important;
    font-weight: 600;
  }

  .otd-settings-nav-icon {
    width: 24px;
    font-size: 15px;
    line-height: 1;
  }

  .otd-settings-nav-dot {
    width: 6px;
    height: 6px;
  }

  .otd-settings-user {
    min-height: 70px;
    padding: 10px 16px;
    grid-template-columns: 38px minmax(0,1fr) 18px;
    gap: 9px;
    border-top: 1px solid #ededed;
    background: #fff;
  }

  .otd-settings-user-avatar {
    width: 38px;
    height: 38px;
  }

  .otd-settings-user-name {
    font-size: 13px;
    font-weight: 650;
  }

  .otd-settings-user-arrow {
    font-size: 15px;
  }
}

@media (min-width: 783px) and (max-width: 960px) {
  .otd-settings-app-shell {
    grid-template-columns: 226px minmax(0,1fr);
  }

  .otd-settings-brand {
    padding: 0 20px;
  }

  .otd-settings-nav {
    padding-right: 12px;
    padding-left: 12px;
  }

  .otd-settings-nav-item {
    padding-right: 11px;
    padding-left: 11px;
    font-size: 13px;
  }
}


/* 1.3.12 — unified OT Diary workspace.
   Settings no longer uses a separate client-rendered shell. The real Core workspace
   sidebar now carries the refined earlier OT Diary navigation language everywhere. */
@media (min-width: 881px) {
  .otd-app-shell {
    grid-template-columns: 276px minmax(0,1fr);
  }

  .otd-app-nav {
    background:#fff;
    border-right:1px solid #e8e8e8;
    box-shadow:none;
    overflow-x:hidden;
  }

  .otd-app-nav__brand {
    min-height:96px;
    padding:0 28px;
    border-bottom:1px solid #ededed;
    color:#111 !important;
    font-size:24px;
    font-weight:700;
    letter-spacing:-.052em;
    text-decoration:none !important;
  }

  .otd-app-nav__scroll {
    padding:27px 16px 20px;
    scrollbar-width:thin;
  }

  .otd-nav-label {
    margin:20px 14px 9px;
    color:#a0a0a0;
    font-size:10px;
    font-weight:650;
    line-height:1;
    letter-spacing:.145em;
  }

  .otd-app-nav__scroll > .otd-nav-label:first-child {
    margin-top:0;
  }

  .otd-nav-link {
    position:relative;
    min-height:48px;
    margin:1px 0;
    padding:0 13px;
    gap:9px;
    border-radius:13px;
    color:#666 !important;
    font-size:14px;
    font-weight:450;
    letter-spacing:-.008em;
    text-decoration:none !important;
  }

  .otd-nav-link:hover {
    background:#f7f7f7;
    color:#111 !important;
  }

  .otd-nav-link.is-active {
    background:#f1f1f1;
    color:#111 !important;
    font-weight:600;
  }

  .otd-nav-link.is-active::after {
    width:6px;
    height:6px;
    margin-left:auto;
    flex:0 0 6px;
  }

  .otd-nav-icon {
    width:24px;
    flex:0 0 24px;
    font-size:15px;
    line-height:1;
  }

  .otd-app-user {
    padding:10px 16px;
    border-top:1px solid #ededed;
    background:#fff;
  }

  .otd-user-card {
    min-height:50px;
    grid-template-columns:38px minmax(0,1fr) 18px;
    gap:9px;
  }

  .otd-user-card .otd-avatar {
    width:38px;
    height:38px;
  }

  .otd-user-card strong {
    font-size:13px;
    font-weight:650;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
  }

  .otd-user-card span {
    font-size:10px;
  }

  .otd-user-card > a:last-child {
    font-size:15px;
    text-align:right;
  }
}

@media (min-width: 881px) and (max-width: 1050px) {
  .otd-app-shell {
    grid-template-columns:226px minmax(0,1fr);
  }
  .otd-app-nav__brand { padding:0 20px; }
  .otd-app-nav__scroll { padding-left:12px; padding-right:12px; }
}

/* Settings uses the same normal OT Diary page/card/form system as every other
   creator workspace page. These rules only normalize its spacing; no parallel UI. */
.otd-app-content .otd-page-head + .otd-internal-profile {
  margin-top:0;
}

.otd-app-content .otd-dashboard-grid .otd-form-card h2,
.otd-app-content .otd-dashboard-grid .otd-side-note h3 {
  letter-spacing:-.018em;
}

.otd-app-content .otd-dashboard-grid .otd-field input:disabled {
  color:#707070;
  -webkit-text-fill-color:#707070;
  opacity:1;
  background:#f7f7f7;
}


/* 1.3.13 — Home dashboard notification carousel, above Core's creator dashboard. */
.otd-home-notifications {
    margin: 0 0 30px;
    min-width: 0;
}
.otd-home-notifications__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 12px;
}
.otd-home-notifications__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #8a8a8a;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .15em;
}
.otd-home-notifications__head h2 {
    margin: 0;
    color: #111;
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: -.025em;
    font-weight: 650;
}
.otd-home-notifications__controls {
    display: flex;
    gap: 7px;
}
.otd-home-notifications__controls button {
    appearance: none;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #dedede;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font: inherit;
    font-size: 15px;
    cursor: pointer;
}
.otd-home-notifications__track {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1px 1px 7px;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.otd-home-notifications__track::-webkit-scrollbar { display: none; }
.otd-home-notification-card {
    flex: 0 0 clamp(245px, 28vw, 320px);
    min-height: 104px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    padding: 10px;
    color: #111 !important;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 18px;
    text-decoration: none !important;
    scroll-snap-align: start;
    transition: border-color .16s ease, transform .16s ease;
}
.otd-home-notification-card:hover {
    color: #111 !important;
    border-color: #cecece;
    transform: translateY(-1px);
}
.otd-home-notification-card__media {
    min-height: 82px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #f2f2f2;
    color: #777;
}
.otd-home-notification-card__media img {
    width: 100%;
    height: 100%;
    min-height: 82px;
    object-fit: cover;
}
.otd-home-notification-card__media.is-empty { font-size: 18px; }
.otd-home-notification-card__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.otd-home-notification-card__meta {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    color: #8a8a8a;
    font-size: 10px;
    white-space: nowrap;
}
.otd-home-notification-card__meta b { color: #606060; font-weight: 650; }
.otd-home-notification-card__body strong {
    display: -webkit-box;
    margin: 6px 0 5px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #111;
    font-size: 14px;
    line-height: 1.18;
    letter-spacing: -.015em;
    font-weight: 650;
}
.otd-home-notification-card__body small {
    overflow: hidden;
    color: #888;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.otd-home-notification-card.is-loading,
.otd-home-notification-card.is-empty-state {
    grid-template-columns: 1fr;
    place-items: center;
    min-height: 104px;
    color: #777 !important;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 782px) {
    .otd-home-notifications { margin-bottom: 24px; }
    .otd-home-notifications__head { margin-bottom: 10px; }
    .otd-home-notifications__head h2 { font-size: 18px; }
    .otd-home-notifications__controls { display: none; }
    .otd-home-notifications__track {
        gap: 10px;
        margin-right: -18px;
        padding-right: 18px;
    }
    .otd-home-notification-card {
        flex-basis: min(82vw, 286px);
        grid-template-columns: 72px minmax(0, 1fr);
        min-height: 96px;
        border-radius: 16px;
    }
    .otd-home-notification-card__media,
    .otd-home-notification-card__media img { min-height: 74px; }
}
