:root {
  --yd-blue: #0b63f6;
  --yd-blue-deep: #0649c9;
  --yd-navy: #0b1428;
  --yd-text: #17213a;
  --yd-muted: #69758c;
  --yd-teal: #10ae9d;
  --yd-red: #eb2f32;
  --yd-line: #dfe7f2;
  --yd-surface: #fff;
  --yd-canvas: #f6f9fe;
  --yd-shadow: 0 12px 38px rgba(30, 70, 130, .07);
}

body.app-ui { color: var(--yd-text); background: var(--yd-canvas); }
.yd-mobile-header { display: none; }
.yd-page { min-height: 65vh; padding: 42px 0 80px; background: radial-gradient(circle at 50% 0, rgba(48, 112, 244, .065), transparent 34%), var(--yd-canvas); }
.yd-shell { width: min(calc(100% - 40px), 1120px); margin: 0 auto; }
.yd-narrow-shell, .yd-detail-shell { width: min(calc(100% - 40px), 920px); margin: 0 auto; }
.yd-page h1, .yd-page h2, .yd-page h3 { color: var(--yd-navy); letter-spacing: -.045em; }
.yd-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--yd-blue); font-weight: 900; font-size: 13px; letter-spacing: .18em; }
.yd-eyebrow i { width: 22px; height: 3px; border-radius: 5px; background: linear-gradient(90deg, var(--yd-teal), var(--yd-blue)); }
.yd-empty-state { padding: 70px 24px; border: 1px solid var(--yd-line); border-radius: 22px; background: #fff; text-align: center; }
.yd-empty-state > i { font-size: 38px; color: #aebbd0; }
.yd-empty-state h2 { margin: 16px 0 5px; }
.yd-empty-state p { margin: 0; color: var(--yd-muted); }
.yd-empty-state a { display: inline-flex; margin-top: 20px; padding: 10px 16px; border-radius: 10px; color: #fff; background: var(--yd-blue); font-weight: 800; }

/* Job match */
.yd-page-intro { margin-bottom: 24px; }
.yd-page-intro-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.yd-primary-button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 17px; border-radius: 11px; color: #fff; background: var(--yd-blue); font-weight: 850; }
.yd-page-intro h1 { margin: 8px 0 5px; font-size: clamp(32px, 5vw, 46px); }
.yd-page-intro p { margin: 0; color: var(--yd-muted); font-size: 17px; }
.yd-safety-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 28px; padding: 22px 26px; border: 1px solid var(--yd-line); border-radius: 20px; background: #fff; box-shadow: var(--yd-shadow); }
.yd-safety-card > div { display: flex; align-items: center; gap: 10px; font-weight: 750; }
.yd-safety-card > div i { color: var(--yd-teal); font-size: 20px; }
.yd-safety-card > div.danger i { color: var(--yd-red); }
.yd-safety-card > a { grid-column: 1 / -1; color: var(--yd-blue); font-weight: 850; }
.yd-search { display: flex; align-items: center; height: 68px; margin: 24px 0; padding: 0 22px; border: 1px solid var(--yd-line); border-radius: 19px; background: #fff; box-shadow: var(--yd-shadow); }
.yd-search > i { color: var(--yd-navy); font-size: 22px; }
.yd-search input { flex: 1; min-width: 0; height: 100%; padding: 0 18px; border: 0; outline: 0; color: var(--yd-text); background: transparent; font-size: 16px; }
.yd-search button { width: 46px; height: 46px; border: 0; background: transparent; font-size: 24px; cursor: pointer; }
.yd-list-summary { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 15px; color: var(--yd-muted); }
.yd-list-summary p { margin: 0; }
.yd-list-summary strong { color: var(--yd-blue); font-size: 18px; }
.yd-job-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.yd-job-card { overflow: hidden; border: 1px solid var(--yd-line); border-radius: 22px; background: #fff; box-shadow: var(--yd-shadow); transition: transform .2s, box-shadow .2s; }
.yd-job-card:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(30, 70, 130, .12); }
.yd-job-card > a { display: block; padding: 24px; }
.yd-job-card-head { display: flex; align-items: center; gap: 12px; }
.yd-company-avatar { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 15px; color: var(--yd-blue); background: #eff5ff; font-weight: 900; font-size: 18px; }
.yd-job-company { min-width: 0; flex: 1; }
.yd-job-company strong, .yd-job-company small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yd-job-company strong { font-size: 15px; }
.yd-job-company small { color: #98a3b6; font-size: 11px; }
.yd-job-state { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; color: var(--yd-teal); background: #ecfbf8; font-size: 12px; font-weight: 850; white-space: nowrap; }
.yd-job-state i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.yd-job-state.closed { color: var(--yd-red); background: #fff0f1; }
.yd-job-card h2 { margin: 16px 0 8px; font-size: 21px; line-height: 1.35; }
.yd-job-place { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--yd-muted); }
.yd-job-place i { color: var(--yd-blue); }
.yd-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 17px 0; }
.yd-chip-row span { padding: 6px 11px; border-radius: 999px; color: #5c687e; background: #f4f7fb; font-size: 12px; }
.yd-job-card footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--yd-line); }
.yd-job-card footer strong { color: var(--yd-blue); font-size: 19px; }
.yd-job-card footer span { color: var(--yd-muted); }
.yd-job-quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.yd-job-quick-actions > a { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--yd-blue); border-radius: 18px; color: var(--yd-blue); background: #fff; }
.yd-job-quick-actions > a:last-child { border-color: var(--yd-teal); color: var(--yd-teal); }
.yd-job-quick-actions > a > i { width: 48px; text-align: center; font-size: 34px; }
.yd-job-quick-actions strong, .yd-job-quick-actions small { display: block; }
.yd-job-quick-actions strong { font-size: 18px; }
.yd-job-quick-actions small { color: var(--yd-muted); }
.yd-more-link { display: flex; justify-content: center; gap: 8px; margin-top: 24px; color: var(--yd-blue); font-weight: 850; }
.yd-empty { grid-column: 1 / -1; min-height: 250px; display: grid; place-content: center; justify-items: center; gap: 7px; border: 1px solid var(--yd-line); border-radius: 20px; color: var(--yd-muted); background: #fff; }
.yd-empty > i { color: #acb7c9; font-size: 36px; }
.yd-empty strong { color: var(--yd-navy); font-size: 18px; }

/* Job detail */
.yd-detail-page { padding-bottom: 150px; }
.yd-detail-hero, .yd-detail-card, .yd-apply-box { margin-bottom: 18px; padding: 36px; border: 1px solid var(--yd-line); border-radius: 25px; background: #fff; box-shadow: var(--yd-shadow); }
.yd-detail-status { display: flex; align-items: center; gap: 10px; }
.yd-detail-status > span:last-child { padding: 6px 10px; border-radius: 999px; color: #0d806f; background: #eafaf5; font-size: 12px; font-weight: 800; }
.yd-detail-hero h1 { margin: 20px 0 14px; font-size: clamp(30px, 5vw, 46px); line-height: 1.35; }
.yd-detail-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--yd-muted); }
.yd-job-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 30px; overflow: hidden; border: 1px solid var(--yd-line); border-radius: 20px; background: #f9fbff; }
.yd-job-facts > div { min-height: 120px; padding: 24px; border-right: 1px solid var(--yd-line); }
.yd-job-facts > div:last-child { border-right: 0; }
.yd-job-facts span, .yd-job-facts strong { display: block; }
.yd-job-facts span { color: var(--yd-muted); }
.yd-job-facts strong { margin-top: 12px; font-size: 20px; }
.yd-detail-chips { margin-bottom: 0; }
.yd-detail-card h2 { margin: 0 0 16px; font-size: 24px; }
.yd-detail-card h3 { margin: 28px 0 10px; }
.yd-detail-card p { margin: 0; line-height: 1.85; }
.yd-detail-card dl { margin: 0; }
.yd-detail-card dl div { display: grid; grid-template-columns: 160px 1fr; padding: 13px 0; border-bottom: 1px solid var(--yd-line); }
.yd-detail-card dl div:last-child { border-bottom: 0; }
.yd-detail-card dt { color: var(--yd-muted); }
.yd-detail-card dd { margin: 0; font-weight: 750; }
.yd-apply-box summary { cursor: pointer; color: var(--yd-blue); font-size: 18px; font-weight: 900; }
.yd-apply-box form { margin-top: 22px; }
.yd-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.yd-form-grid .full { grid-column: 1 / -1; }
.yd-form-grid label, .yd-apply-box label { display: grid; gap: 7px; }
.yd-form-grid label > span, .yd-apply-box label > span { font-weight: 800; }
.yd-form-grid input, .yd-form-grid select, .yd-form-grid textarea, .yd-apply-box input, .yd-apply-box select, .yd-apply-box textarea { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid var(--yd-line); border-radius: 11px; outline: 0; background: #fff; }
.yd-form-grid textarea, .yd-apply-box textarea { min-height: 110px; resize: vertical; }
.yd-apply-box > form > label { margin-top: 15px; }
.yd-apply-box label.yd-check { display: flex; grid-template-columns: auto 1fr; align-items: center; }
.yd-apply-box label.yd-check input { width: 18px; min-height: 18px; }
.yd-apply-box button, .yd-schedule-form form > button, .yd-profile-edit form > button { width: 100%; min-height: 50px; margin-top: 18px; border: 0; border-radius: 12px; color: #fff; background: var(--yd-blue); font-weight: 850; cursor: pointer; }
.yd-detail-actions { position: fixed; z-index: 150; left: 50%; bottom: 0; width: min(100%, 1024px); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 26px max(16px, env(safe-area-inset-bottom)); border: 1px solid var(--yd-line); border-bottom: 0; border-radius: 22px 22px 0 0; background: rgba(255, 255, 255, .97); box-shadow: 0 -12px 32px rgba(15, 35, 75, .1); transform: translateX(-50%); backdrop-filter: blur(18px); }
.yd-detail-actions > a, .yd-detail-actions form button { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 2px solid var(--yd-blue); border-radius: 14px; color: var(--yd-blue); background: #fff; font-size: 17px; font-weight: 900; }
.yd-detail-actions form button { border-color: var(--yd-blue); color: #fff; background: var(--yd-blue); cursor: pointer; }
.yd-detail-actions small { grid-column: 1 / -1; color: var(--yd-muted); text-align: center; }

/* Community */
.yd-community-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 28px; }
.yd-community-head h1, .yd-market-head h1, .yd-profile-head h1 { margin: 0; font-size: 38px; }
.yd-community-head p, .yd-market-head p, .yd-profile-head p { margin: 8px 0 0; color: var(--yd-muted); }
.yd-write-button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px; color: #fff; background: var(--yd-blue); font-weight: 850; box-shadow: 0 9px 20px rgba(11, 99, 246, .2); }
.yd-category-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.yd-category-tabs::-webkit-scrollbar { display: none; }
.yd-category-tabs a { flex: 1 0 auto; padding: 10px 16px; border-radius: 999px; color: var(--yd-muted); text-align: center; font-weight: 750; }
.yd-category-tabs a.active { color: var(--yd-blue); background: #eaf2ff; }
.yd-sort-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 18px 0 4px; overflow: hidden; border: 1px solid var(--yd-line); border-radius: 12px; background: #fff; }
.yd-sort-tabs a { padding: 11px; text-align: center; color: var(--yd-muted); font-weight: 750; }
.yd-sort-tabs a.active { color: var(--yd-blue); background: #f0f5ff; }
.yd-community-list { margin-top: 20px; border-top: 1px solid var(--yd-line); }
.yd-community-row { border-bottom: 1px solid var(--yd-line); }
.yd-community-row > a { position: relative; display: flex; gap: 24px; padding: 24px 6px; }
.yd-community-copy { min-width: 0; flex: 1; }
.yd-community-label { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; color: #39709a; background: #eaf4fc; font-size: 11px; font-weight: 850; }
.yd-community-label.category-question { color: #0b8f76; background: #e6f8f2; }
.yd-community-label.category-free { color: #765ac8; background: #f0ecff; }
.yd-community-label.category-info { color: #e36f18; background: #fff1e4; }
.yd-community-copy h2 { margin: 11px 0 6px; font-size: 21px; }
.yd-community-copy > p { max-width: 760px; margin: 0; color: var(--yd-muted); line-height: 1.65; }
.yd-community-copy footer { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: #8490a4; font-size: 12px; }
.yd-mini-avatar { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--yd-blue); font-size: 11px; font-weight: 850; }
.yd-community-thumb { position: relative; width: 150px; height: 105px; flex: 0 0 auto; overflow: hidden; border-radius: 15px; background: #edf1f6; }
.yd-community-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yd-community-thumb span { position: absolute; right: 7px; bottom: 7px; padding: 2px 6px; border-radius: 999px; color: #fff; background: rgba(10, 18, 35, .68); font-size: 10px; }
.yd-comment-count { position: absolute; right: 6px; bottom: 19px; display: flex; align-items: center; gap: 5px; color: #7b89a1; font-size: 12px; }
.yd-form-head { margin-bottom: 22px; }
.yd-form-head h1 { margin: 8px 0 4px; font-size: 36px; }
.yd-form-head p { margin: 0; color: var(--yd-muted); }
.yd-form-card, .yd-post-detail, .yd-comments { padding: 32px; border: 1px solid var(--yd-line); border-radius: 22px; background: #fff; box-shadow: var(--yd-shadow); }
.yd-form-card > label { display: grid; gap: 8px; margin-bottom: 17px; }
.yd-form-card > label > span { font-weight: 850; }
.yd-form-card input, .yd-form-card select, .yd-form-card textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--yd-line); border-radius: 12px; outline: 0; }
.yd-form-card textarea { resize: vertical; }
.yd-form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.yd-form-actions a, .yd-form-actions button { min-height: 48px; display: inline-flex; align-items: center; padding: 0 22px; border: 0; border-radius: 11px; font-weight: 850; }
.yd-form-actions a { border: 1px solid var(--yd-line); }
.yd-form-actions button { color: #fff; background: var(--yd-blue); cursor: pointer; }
.yd-post-detail header h1 { margin: 17px 0; font-size: 35px; line-height: 1.4; }
.yd-post-author { display: flex; align-items: center; gap: 10px; }
.yd-post-author strong, .yd-post-author small { display: block; }
.yd-post-author small { color: var(--yd-muted); }
.yd-post-image { width: 100%; max-height: 520px; margin: 26px 0; border-radius: 18px; object-fit: cover; background: #f0f3f7; }
.yd-post-body { min-height: 180px; padding: 26px 0; border-top: 1px solid var(--yd-line); font-size: 16px; line-height: 1.9; }
.yd-post-reaction { display: flex; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--yd-line); color: var(--yd-muted); }
.yd-post-reaction button { border: 0; background: transparent; cursor: pointer; }
.yd-comments { margin-top: 18px; }
.yd-comments > h2 { margin: 0 0 20px; }
.yd-comments > h2 strong { color: var(--yd-blue); }
.yd-comments article { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--yd-line); }
.yd-comments article > div { flex: 1; }
.yd-comments article header { display: flex; justify-content: space-between; }
.yd-comments article time { color: var(--yd-muted); font-size: 12px; }
.yd-comments article p { margin: 5px 0 0; }
.yd-comments form { display: grid; gap: 10px; margin-top: 20px; }
.yd-comments textarea { min-height: 90px; padding: 12px; border: 1px solid var(--yd-line); border-radius: 12px; resize: vertical; }
.yd-comments form button, .yd-login-notice { justify-self: end; padding: 10px 18px; border: 0; border-radius: 10px; color: #fff; background: var(--yd-blue); font-weight: 800; cursor: pointer; }
.yd-comments-empty { color: var(--yd-muted); }

/* Chat */
.yd-chat-tabs { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--yd-line); border-radius: 16px; background: #f1f5fb; }
.yd-chat-tabs a { padding: 18px; color: var(--yd-muted); text-align: center; font-size: 17px; font-weight: 850; }
.yd-chat-tabs a i { margin-right: 8px; }
.yd-chat-tabs a.active { color: var(--yd-blue); background: #fff; box-shadow: var(--yd-shadow); }
.yd-chat-caption { margin: 22px 0; color: var(--yd-muted); }
.yd-chat-guide { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; padding: 22px; border: 1px solid var(--yd-line); border-radius: 18px; background: #fff; }
.yd-chat-guide > span { width: 54px; height: 54px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--yd-blue); background: #edf4ff; font-size: 23px; }
.yd-chat-guide > div { flex: 1; }
.yd-chat-guide strong { font-size: 18px; }
.yd-chat-guide p { margin: 4px 0 0; color: var(--yd-muted); }
.yd-room-list { overflow: hidden; border: 1px solid var(--yd-line); border-radius: 22px; background: #fff; box-shadow: var(--yd-shadow); }
.yd-room-row { display: flex; align-items: center; gap: 16px; padding: 21px 24px; border-bottom: 1px solid var(--yd-line); }
.yd-room-row:last-child { border-bottom: 0; }
.yd-room-avatar { position: relative; width: 68px; height: 68px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--yd-blue); background: #eaf2ff; font-size: 26px; }
.yd-room-avatar.seller { color: #258a61; background: #e8f7ef; }
.yd-online { position: absolute; right: 3px; bottom: 5px; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: var(--yd-blue); }
.yd-room-copy { min-width: 0; flex: 1; }
.yd-room-copy h2 { margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 19px; }
.yd-room-copy p { margin: 4px 0 7px; overflow: hidden; color: var(--yd-muted); white-space: nowrap; text-overflow: ellipsis; }
.yd-room-copy > div { display: flex; gap: 7px; }
.yd-room-copy > div span { padding: 3px 8px; border-radius: 999px; color: var(--yd-blue); background: #edf4ff; font-size: 11px; }
.yd-room-row aside { align-self: flex-start; text-align: right; }
.yd-room-row aside time { display: block; color: var(--yd-muted); font-size: 12px; }
.yd-room-row aside strong { width: 26px; height: 26px; display: grid; place-items: center; margin: 11px 0 0 auto; border-radius: 50%; color: #fff; background: var(--yd-blue); font-size: 12px; }
.yd-new-chat { position: fixed; z-index: 110; right: max(24px, calc((100vw - 1120px) / 2)); bottom: 110px; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--yd-blue); box-shadow: 0 14px 30px rgba(11, 99, 246, .3); }
.yd-new-chat span { font-size: 10px; }
.yd-chat-room-page { min-height: calc(100vh - 106px); padding: 28px 0 120px; background: #f8faff; }
.yd-chat-room-shell { width: min(calc(100% - 36px), 940px); margin: 0 auto; }
.yd-chat-context { display: flex; align-items: center; gap: 15px; padding: 18px; border: 1px solid var(--yd-line); border-radius: 16px; background: #fff; }
.yd-context-icon { width: 62px; height: 62px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; color: var(--yd-blue); background: #eef4ff; font-size: 25px; }
.yd-chat-context > div { min-width: 0; flex: 1; }
.yd-chat-context h2 { margin: 0; overflow: hidden; color: var(--yd-navy); white-space: nowrap; text-overflow: ellipsis; font-size: 18px; }
.yd-chat-context p { margin: 3px 0; color: var(--yd-muted); }
.yd-chat-context a { color: var(--yd-blue); font-weight: 800; }
.yd-payment-state { display: inline-flex; gap: 6px; padding: 9px 12px; border-radius: 11px; color: #0a9a65; background: #eafaf2; font-weight: 850; white-space: nowrap; }
.yd-payment-state.unpaid { color: var(--yd-red); background: #fff0f1; }
.yd-payment-guide { display: flex; align-items: center; gap: 14px; margin: 14px 0; padding: 15px 18px; border-radius: 14px; color: #17724e; background: #edfbf3; }
.yd-payment-guide.unpaid { color: #c82630; background: #fff1f2; }
.yd-payment-guide.safe { color: #275b9c; background: #edf4ff; }
.yd-payment-guide > i { font-size: 24px; }
.yd-payment-guide > div { flex: 1; }
.yd-payment-guide strong { display: block; }
.yd-payment-guide p { margin: 2px 0 0; color: var(--yd-muted); font-size: 12px; }
.yd-payment-guide > span { text-align: right; font-size: 11px; }
.yd-payment-guide > span strong { color: var(--yd-red); font-size: 16px; }
.yd-messages { padding: 20px 4px; }
.yd-system-message { margin: 12px 0 22px; text-align: center; }
.yd-system-message span { display: inline-block; padding: 7px 13px; border-radius: 999px; color: var(--yd-muted); background: #eaf0f7; font-size: 11px; }
.yd-message { display: flex; gap: 10px; margin: 16px 0; }
.yd-message.mine { justify-content: flex-end; }
.yd-message-avatar { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--yd-line); border-radius: 50%; color: var(--yd-blue); background: #fff; }
.yd-message > div { max-width: min(72%, 570px); }
.yd-message > div > strong { display: block; margin-bottom: 4px; color: var(--yd-muted); font-size: 12px; }
.yd-message p { display: inline-block; margin: 0; padding: 12px 15px; border: 1px solid var(--yd-line); border-radius: 5px 16px 16px 16px; background: #fff; line-height: 1.55; }
.yd-message.mine p { color: #fff; border-color: var(--yd-blue); border-radius: 16px 5px 16px 16px; background: var(--yd-blue); }
.yd-message time { margin: 0 5px; color: #8692a6; font-size: 10px; }
.yd-chat-composer { position: fixed; z-index: 180; left: 50%; bottom: 0; width: min(100%, 1024px); display: flex; align-items: center; gap: 10px; padding: 12px 22px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--yd-line); background: rgba(255, 255, 255, .97); transform: translateX(-50%); backdrop-filter: blur(18px); }
.yd-chat-composer > button { width: 44px; height: 44px; flex: 0 0 auto; border: 0; border-radius: 50%; color: var(--yd-blue); background: #edf4ff; cursor: pointer; }
.yd-chat-composer label { position: relative; flex: 1; }
.yd-chat-composer input { width: 100%; height: 48px; padding: 0 45px 0 16px; border: 1px solid var(--yd-line); border-radius: 999px; outline: 0; }
.yd-chat-composer label i { position: absolute; right: 16px; top: 16px; color: var(--yd-muted); }
.yd-chat-composer > button.send { color: #fff; background: var(--yd-blue); }

/* Calendar and work log */
.yd-calendar-shell { width: min(calc(100% - 40px), 1020px); margin: 0 auto; }
.yd-calendar-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 22px; padding: 4px; border-radius: 13px; background: #e9edf4; }
.yd-calendar-tabs a { padding: 10px; border-radius: 10px; color: var(--yd-muted); text-align: center; font-weight: 850; }
.yd-calendar-tabs a.active { color: #fff; background: var(--yd-blue); box-shadow: 0 7px 15px rgba(11, 99, 246, .2); }
.yd-calendar-head { position: relative; display: flex; align-items: center; justify-content: center; gap: 28px; margin-bottom: 13px; }
.yd-calendar-head h1 { margin: 0; font-size: 25px; }
.yd-calendar-head > a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.yd-calendar-head > a:hover { background: #eaf1fb; }
.yd-calendar-head .settings { position: absolute; right: 0; font-size: 19px; }
.yd-month-calendar { overflow: hidden; border: 1px solid var(--yd-line); border-radius: 18px; background: #fff; box-shadow: var(--yd-shadow); }
.yd-weekdays, .yd-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.yd-weekdays { border-bottom: 1px solid var(--yd-line); }
.yd-weekdays span { padding: 10px; text-align: center; font-weight: 850; }
.yd-weekdays span:first-child { color: #e53a43; }
.yd-weekdays span:last-child { color: var(--yd-blue); }
.yd-calendar-cell { min-width: 0; min-height: 112px; padding: 8px; border-right: 1px solid var(--yd-line); border-bottom: 1px solid var(--yd-line); }
.yd-calendar-cell:nth-child(7n) { border-right: 0; }
.yd-calendar-cell:nth-last-child(-n+7) { border-bottom: 0; }
.yd-calendar-cell > time { width: 25px; height: 25px; display: grid; place-items: center; margin-bottom: 5px; border-radius: 50%; font-size: 12px; font-weight: 750; }
.yd-calendar-cell:nth-child(7n+1) > time { color: #e53a43; }
.yd-calendar-cell:nth-child(7n) > time { color: var(--yd-blue); }
.yd-calendar-cell.muted > time { color: #c3cad5; }
.yd-calendar-cell.today > time { color: #fff; background: var(--yd-blue); }
.yd-event-pill, .yd-work-entry { display: block; margin-top: 3px; padding: 4px 6px; overflow: hidden; border-radius: 5px; color: #264768; background: #e6f0ff; white-space: nowrap; text-overflow: ellipsis; font-size: 10px; }
.yd-event-pill.green { color: #267050; background: #dcf5e5; }
.yd-event-pill.purple { color: #6e43a2; background: #eee2ff; }
.yd-event-pill.gray { color: #556170; background: #e9edf2; }
.yd-event-pill small { margin-left: 3px; }
.yd-work-entry { padding: 3px; color: inherit; background: transparent; text-align: center; }
.yd-work-entry b, .yd-work-entry em, .yd-work-entry small { display: block; font-style: normal; }
.yd-work-entry b { margin: 0 auto 2px; border-radius: 999px; color: #fff; background: #2abb5e; }
.yd-work-entry.pending b { background: #ed343c; }
.yd-work-entry em { font-size: 10px; }
.yd-work-entry small { padding: 1px 2px; border-radius: 4px; color: #24834b; background: #dff5e6; font-size: 8px; }
.yd-work-entry.pending small { color: #d92f38; background: #ffe5e7; }
.yd-calendar-summary { display: flex; align-items: center; gap: 10px; padding: 20px 0 0; }
.yd-calendar-summary > div { flex: 1; }
.yd-calendar-summary small, .yd-calendar-summary strong, .yd-calendar-summary span { display: block; }
.yd-calendar-summary strong { font-size: 25px; }
.yd-calendar-summary span { color: var(--yd-muted); font-size: 12px; }
.yd-calendar-summary > a { padding: 12px 16px; border: 1px solid var(--yd-line); border-radius: 12px; background: #fff; font-weight: 750; }
.yd-calendar-summary > a:first-of-type { color: var(--yd-blue); background: #eaf2ff; }
.yd-calendar-legend { display: flex; justify-content: center; gap: 18px; padding: 18px 0; color: var(--yd-muted); font-size: 11px; }
.yd-calendar-legend span { display: inline-flex; align-items: center; gap: 5px; }
.yd-calendar-legend i { width: 9px; height: 9px; border-radius: 3px; background: #ccd3df; }
.yd-calendar-legend i.green { background: #5ac876; }.yd-calendar-legend i.blue { background: #58a0ec; }.yd-calendar-legend i.orange { background: #efb548; }.yd-calendar-legend i.purple { background: #9f6ad5; }
.yd-unpaid-notice { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 16px; border-radius: 14px; color: var(--yd-red); background: #fff0f1; }
.yd-unpaid-notice > i { font-size: 25px; }
.yd-unpaid-notice p { margin: 2px 0 0; color: var(--yd-muted); }
.yd-schedule-form, .yd-profile-edit { margin-top: 20px; padding: 20px; border: 1px solid var(--yd-line); border-radius: 18px; background: #fff; }
.yd-schedule-form > summary, .yd-profile-edit > summary { cursor: pointer; color: var(--yd-blue); font-size: 17px; font-weight: 900; }
.yd-schedule-form form, .yd-profile-edit form { margin-top: 20px; }
.yd-team-calendar-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; padding: 16px 18px; border: 1px solid #d7e5fb; border-radius: 16px; background: linear-gradient(100deg,#f5f9ff,#edf5ff); }
.yd-team-calendar-bar > div { display: flex; align-items: center; gap: 12px; }
.yd-team-calendar-bar > div > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--yd-blue); background: #fff; box-shadow: 0 7px 18px rgba(30,80,150,.08); }
.yd-team-calendar-bar strong, .yd-team-calendar-bar p { display: block; margin: 0; }
.yd-team-calendar-bar p { margin-top: 2px; color: var(--yd-muted); font-size: 12px; }
.yd-team-calendar-bar > a { position: relative; padding: 10px 13px; border-radius: 10px; color: #fff; background: var(--yd-blue); font-size: 12px; font-weight: 850; }
.yd-team-calendar-bar > a em { position: absolute; right: -6px; top: -7px; min-width: 19px; height: 19px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: var(--yd-red); font-size: 9px; font-style: normal; }
.yd-calendar-scope-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 15px; }
.yd-calendar-scope-tabs a { min-height: 45px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--yd-line); border-radius: 12px; color: var(--yd-muted); background: #fff; font-size: 13px; font-weight: 800; }
.yd-calendar-scope-tabs a.active { color: var(--yd-blue); border-color: #bcd3fa; background: #ebf3ff; box-shadow: 0 6px 16px rgba(11,99,246,.08); }
.yd-team-filter { display: flex; gap: 8px; margin: -3px 0 16px; overflow-x: auto; scrollbar-width: none; }
.yd-team-filter::-webkit-scrollbar { display: none; }
.yd-team-filter a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border: 1px solid var(--yd-line); border-radius: 999px; color: var(--yd-muted); background: #fff; font-size: 11px; font-weight: 750; }
.yd-team-filter a.active { color: var(--yd-blue); border-color: #a9c8fb; background: #eef5ff; }
.yd-team-filter a.create { color: #fff; border-color: var(--yd-blue); background: var(--yd-blue); }
.yd-team-filter small { color: #98a3b5; }
.team-dot { width: 9px; height: 9px; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: #0b63f6; }
.team-tone-1 { --team-tone:#0b63f6; --team-soft:#eaf2ff; }
.team-tone-2 { --team-tone:#12a594; --team-soft:#e7f8f5; }
.team-tone-3 { --team-tone:#8b5bd6; --team-soft:#f1ebff; }
.team-tone-4 { --team-tone:#e48b24; --team-soft:#fff3e2; }
.team-tone-5 { --team-tone:#e05269; --team-soft:#ffedf1; }
.team-dot[class*="team-tone-"] { background: var(--team-tone); }
.yd-calendar-current-filter { display: flex; align-items: center; gap: 7px; margin: -2px 0 10px; color: var(--yd-muted); font-size: 11px; }
.yd-calendar-current-filter i { color: var(--yd-blue); }
.yd-calendar-current-filter strong { color: var(--yd-text); }
.yd-calendar-current-filter span { margin-left: auto; }
.yd-event-pill.team-entry { color: var(--team-tone); border-left: 3px solid var(--team-tone); background: var(--team-soft); }
.yd-event-pill.team-entry i { margin-right: 3px; }
.yd-event-pill.personal-entry { border-left: 3px solid #8e99a9; }
.yd-work-entry.team-entry { padding: 3px 2px; border: 1px solid var(--team-tone); border-radius: 5px; background: var(--team-soft); }
.yd-work-entry.team-entry > i { color: var(--team-tone); font-size: 7px; }
.yd-calendar-more { display: block; color: var(--yd-muted); text-align: center; font-size: 8px; }
.yd-calendar-legend i.team { background: linear-gradient(135deg,#0b63f6 50%,#12a594 50%); }
.yd-calendar-agenda { margin-top: 24px; padding: 22px; border: 1px solid var(--yd-line); border-radius: 18px; background: #fff; box-shadow: var(--yd-shadow); }
.yd-calendar-agenda > header, .yd-team-members > header, .yd-team-upcoming > header, .yd-incoming-invites > header, .yd-outgoing-invites > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.yd-calendar-agenda > header span, .yd-team-members > header span, .yd-team-upcoming > header span, .yd-incoming-invites > header span, .yd-outgoing-invites > header span { color: var(--yd-blue); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.yd-calendar-agenda > header h2, .yd-team-members > header h2, .yd-team-upcoming > header h2, .yd-incoming-invites > header h2, .yd-outgoing-invites > header h2 { margin: 2px 0 0; font-size: 20px; }
.yd-calendar-agenda > header > strong, .yd-team-members > header > strong, .yd-incoming-invites > header > strong, .yd-outgoing-invites > header > strong { color: var(--yd-blue); }
.yd-agenda-list article { display: flex; align-items: center; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--yd-line); }
.yd-agenda-list article:last-child { border-bottom: 0; }
.yd-agenda-list article > time { width: 48px; flex: 0 0 auto; text-align: center; }
.yd-agenda-list article > time strong, .yd-agenda-list article > time span { display: block; }
.yd-agenda-list article > time strong { color: var(--yd-blue); font-size: 23px; }
.yd-agenda-list article > time span { color: var(--yd-muted); font-size: 10px; }
.yd-agenda-list article > div { min-width: 0; flex: 1; }
.yd-agenda-list h3 { margin: 5px 0 4px; font-size: 16px; }
.yd-agenda-list p { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; color: var(--yd-muted); font-size: 11px; }
.yd-agenda-list p i:not(:first-child) { margin-left: 5px; }
.yd-agenda-list small { color: #929daf; }
.yd-agenda-list article > form button { width: 32px; height: 32px; border: 0; border-radius: 9px; color: #9aa5b5; background: #f4f6f9; cursor: pointer; }
.yd-agenda-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.yd-agenda-badges span, .yd-agenda-badges em { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 999px; font-size: 9px; font-style: normal; font-weight: 800; }
.yd-agenda-badges span.team { color: var(--team-tone); background: var(--team-soft); }
.yd-agenda-badges span.personal { color: #596578; background: #eef1f5; }
.yd-agenda-badges em { color: #69758b; background: #f6f8fb; }
.yd-calendar-empty { padding: 35px 10px; color: var(--yd-muted); text-align: center; }
.yd-calendar-empty > i { font-size: 30px; }
.yd-calendar-empty strong { display: block; margin-top: 10px; color: var(--yd-text); }
.yd-calendar-empty p { margin: 4px 0 0; }
.yd-calendar-target-box { margin-bottom: 16px; padding: 15px; border: 1px solid #d7e5fb; border-radius: 13px; background: #f4f8ff; }
.yd-calendar-target-box label { display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 10px; }
.yd-calendar-target-box label > span { font-weight: 850; }
.yd-calendar-target-box select { width: 100%; min-height: 45px; padding: 0 11px; border: 1px solid #cbdcf6; border-radius: 10px; background: #fff; }
.yd-calendar-target-box p { margin: 8px 0 0 150px; color: var(--yd-muted); font-size: 11px; }
.yd-calendar-target-box p i { margin-right: 5px; color: var(--yd-blue); }

/* Team calendar management */
.yd-team-shell { width: min(calc(100% - 40px),1120px); margin: 0 auto; }
.yd-team-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.yd-team-page-head span { color: var(--yd-blue); font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.yd-team-page-head h1 { margin: 4px 0; font-size: 36px; }
.yd-team-page-head p { margin: 0; color: var(--yd-muted); }
.yd-team-page-head > a { display: inline-flex; align-items: center; gap: 7px; padding: 11px 15px; border-radius: 11px; color: #fff; background: var(--yd-blue); font-weight: 800; }
.yd-team-privacy { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 15px 18px; border: 1px solid #cfe5dc; border-radius: 14px; color: #187b5a; background: #effbf6; }
.yd-team-privacy > i { font-size: 25px; }
.yd-team-privacy strong { display: block; }
.yd-team-privacy p { margin: 2px 0 0; color: #5d776e; font-size: 12px; }
.yd-incoming-invites, .yd-outgoing-invites { margin-bottom: 18px; padding: 20px; border: 1px solid #cbdcf8; border-radius: 18px; background: #fff; box-shadow: var(--yd-shadow); }
.yd-incoming-invites article, .yd-outgoing-invites article { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-top: 1px solid var(--yd-line); }
.yd-incoming-invites article > span, .yd-outgoing-invites article > span { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: var(--yd-blue); background: #edf4ff; }
.yd-incoming-invites article > div, .yd-outgoing-invites article > div { min-width: 0; flex: 1; }
.yd-incoming-invites article strong, .yd-outgoing-invites article strong { display: block; }
.yd-incoming-invites article p, .yd-outgoing-invites article p { margin: 2px 0 0; color: var(--yd-muted); font-size: 11px; }
.yd-incoming-invites button, .yd-outgoing-invites button { min-height: 35px; padding: 0 11px; border: 1px solid var(--yd-line); border-radius: 9px; background: #fff; cursor: pointer; font-weight: 800; }
.yd-incoming-invites button.accept { color: #fff; border-color: var(--yd-blue); background: var(--yd-blue); }
.yd-incoming-invites button.decline { color: var(--yd-muted); }
.yd-invite-link-card { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 17px; border: 1px solid #bcd5ff; border-radius: 15px; background: #edf5ff; }
.yd-invite-link-card > i { color: var(--yd-blue); font-size: 25px; }
.yd-invite-link-card > div { min-width: 0; flex: 1; }
.yd-invite-link-card p { margin: 3px 0 6px; color: var(--yd-muted); font-size: 11px; }
.yd-invite-link-card code { display: block; overflow: hidden; color: #31517e; white-space: nowrap; text-overflow: ellipsis; }
.yd-invite-link-card button { padding: 10px 12px; border: 0; border-radius: 9px; color: #fff; background: var(--yd-blue); cursor: pointer; font-weight: 800; }
.yd-team-layout { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 18px; align-items: start; }
.yd-team-sidebar { display: grid; gap: 14px; }
.yd-team-list-card, .yd-team-create, .yd-team-overview, .yd-team-invite-form, .yd-team-members, .yd-team-upcoming, .yd-team-empty-main { border: 1px solid var(--yd-line); border-radius: 18px; background: #fff; box-shadow: var(--yd-shadow); }
.yd-team-list-card { overflow: hidden; }
.yd-team-list-card > header { display: flex; justify-content: space-between; padding: 17px; border-bottom: 1px solid var(--yd-line); }
.yd-team-list-card > header h2 { margin: 0; font-size: 17px; }
.yd-team-list-card > header span { color: var(--yd-blue); font-weight: 900; }
.yd-team-list-card nav a { display: flex; align-items: center; gap: 9px; padding: 14px 15px; border-bottom: 1px solid var(--yd-line); }
.yd-team-list-card nav a:last-child { border-bottom: 0; }
.yd-team-list-card nav a.active { background: #eef5ff; }
.yd-team-list-card nav a > span { min-width: 0; flex: 1; }
.yd-team-list-card nav strong, .yd-team-list-card nav small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.yd-team-list-card nav small { margin-top: 3px; color: var(--yd-muted); font-size: 9px; }
.yd-team-list-card nav > a > i:last-child { color: #a3adbc; font-size: 10px; }
.yd-team-create { padding: 17px; }
.yd-team-create > summary { cursor: pointer; color: var(--yd-blue); font-weight: 900; }
.yd-team-create form { display: grid; gap: 12px; margin-top: 16px; }
.yd-team-create label { display: grid; gap: 6px; }
.yd-team-create label span { font-size: 11px; font-weight: 800; }
.yd-team-create input, .yd-team-create textarea { width: 100%; min-height: 43px; padding: 10px; border: 1px solid var(--yd-line); border-radius: 9px; }
.yd-team-create textarea { min-height: 80px; resize: vertical; }
.yd-team-create-note { display: flex; gap: 7px; color: var(--yd-muted); font-size: 10px; }
.yd-team-create-note i { color: var(--yd-blue); }
.yd-team-create button { min-height: 44px; border: 0; border-radius: 9px; color: #fff; background: var(--yd-blue); cursor: pointer; font-weight: 850; }
.yd-team-content { min-width: 0; display: grid; gap: 14px; }
.yd-team-overview { overflow: hidden; }
.yd-team-overview-title { display: flex; align-items: center; gap: 14px; padding: 22px; }
.team-icon { width: 58px; height: 58px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 17px; color: var(--team-tone); background: var(--team-soft); font-size: 24px; }
.yd-team-overview-title > div { min-width: 0; flex: 1; }
.yd-team-overview-title small { color: var(--yd-blue); font-weight: 850; }
.yd-team-overview-title h2 { margin: 3px 0; font-size: 25px; }
.yd-team-overview-title p { margin: 0; color: var(--yd-muted); }
.yd-team-overview-title > a { color: var(--yd-blue); font-size: 12px; font-weight: 850; }
.yd-team-overview-meta { display: flex; gap: 20px; padding: 13px 22px; border-top: 1px solid var(--yd-line); color: var(--yd-muted); background: #fafcff; font-size: 10px; }
.yd-team-overview-meta i { margin-right: 5px; color: var(--yd-blue); }
.yd-team-invite-form { padding: 20px; }
.yd-team-invite-form > header { display: flex; align-items: center; gap: 12px; }
.yd-team-invite-form > header > div { flex: 1; }
.yd-team-invite-form > header span { color: var(--yd-blue); font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.yd-team-invite-form h2 { margin: 2px 0; font-size: 20px; }
.yd-team-invite-form p { margin: 0; color: var(--yd-muted); font-size: 11px; }
.yd-team-invite-form > header > i { color: #a9c4ef; font-size: 32px; }
.yd-team-invite-form form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; }
.yd-team-invite-form input { min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--yd-line); border-radius: 10px; }
.yd-team-invite-form button { padding: 0 16px; border: 0; border-radius: 10px; color: #fff; background: var(--yd-blue); font-weight: 850; }
.yd-team-members, .yd-team-upcoming { padding: 20px; }
.yd-team-members > div > article { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--yd-line); }
.yd-member-avatar { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: #fff; background: var(--yd-blue); font-weight: 900; }
.yd-team-members article > div { min-width: 0; flex: 1; }
.yd-team-members article > div strong, .yd-team-members article > div p { display: block; margin: 0; }
.yd-team-members article > div p { color: var(--yd-muted); font-size: 10px; }
.yd-team-members article > em { padding: 4px 8px; border-radius: 999px; color: var(--yd-blue); background: #edf4ff; font-size: 10px; font-style: normal; font-weight: 800; }
.yd-team-members article select { height: 32px; border: 1px solid var(--yd-line); border-radius: 8px; background: #fff; font-size: 10px; }
.yd-team-members .yd-owner-transfer button { width: 31px; height: 31px; border: 0; border-radius: 8px; color: #aa7200; background: #fff7dc; cursor: pointer; }
.yd-team-members article > form:last-child button { width: 31px; height: 31px; border: 0; border-radius: 8px; color: #c44a59; background: #fff0f2; cursor: pointer; }
.yd-team-leave { margin-top: 12px; text-align: right; }
.yd-team-leave button { border: 0; color: #c44a59; background: transparent; cursor: pointer; font-size: 11px; }
.yd-team-upcoming > header a { color: var(--yd-blue); font-size: 11px; font-weight: 800; }
.yd-team-upcoming > div > article { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--yd-line); }
.yd-team-upcoming article time { width: 42px; text-align: center; }
.yd-team-upcoming article time strong, .yd-team-upcoming article time span { display: block; }
.yd-team-upcoming article time strong { color: var(--yd-blue); font-size: 20px; }
.yd-team-upcoming article time span { color: var(--yd-muted); font-size: 9px; }
.yd-team-upcoming article > div { flex: 1; }
.yd-team-upcoming article > div strong, .yd-team-upcoming article > div p { display: block; margin: 0; }
.yd-team-upcoming article > div p { margin-top: 2px; color: var(--yd-muted); font-size: 10px; }
.yd-team-upcoming article > span { padding: 4px 7px; border-radius: 999px; color: #267050; background: #e6f7eb; font-size: 9px; font-weight: 800; }
.yd-team-empty-mini { padding: 26px 16px; color: var(--yd-muted); text-align: center; }
.yd-team-empty-mini i { font-size: 27px; }
.yd-team-empty-mini p { margin: 7px 0; }
.yd-team-empty-mini a { color: var(--yd-blue); font-weight: 800; }
.yd-team-empty-main { padding: 70px 25px; color: var(--yd-muted); text-align: center; }
.yd-team-empty-main i { color: #afc2df; font-size: 48px; }
.yd-team-empty-main h2 { margin: 15px 0 5px; }
.yd-team-empty-main p { margin: 0; }
.yd-outgoing-invites { margin-top: 18px; }
.yd-outgoing-invites article > button { width: 35px; padding: 0; color: var(--yd-blue); }
.yd-outgoing-invites article form button { color: #c44a59; }

/* Market */
.yd-market-head { display: flex; align-items: center; gap: 15px; margin-bottom: 24px; }
.yd-market-head > div { flex: 1; }
.yd-market-head form { position: relative; width: 300px; }
.yd-market-head form input { width: 100%; height: 45px; padding: 0 45px 0 14px; border: 1px solid var(--yd-line); border-radius: 999px; outline: 0; background: #fff; }
.yd-market-head form button { position: absolute; right: 4px; top: 3px; width: 39px; height: 39px; border: 0; background: transparent; cursor: pointer; }
.yd-market-head > a { width: 45px; height: 45px; display: grid; place-items: center; font-size: 23px; }
.yd-business-banner { position: relative; min-height: 176px; display: flex; align-items: center; overflow: hidden; padding: 30px; border: 1px solid #d7e4fb; border-radius: 20px; background: linear-gradient(105deg, #f5f8ff, #e9f1ff); }
.yd-business-banner h2 { margin: 0 0 18px; font-size: 24px; }
.yd-business-banner h2 strong { color: var(--yd-blue); }
.yd-business-banner p { display: flex; gap: 20px; margin: 0; }
.yd-business-banner p span { display: flex; align-items: center; gap: 7px; }
.yd-business-banner p i { color: var(--yd-blue); font-size: 20px; }
.yd-business-banner > i { margin-left: auto; margin-right: 150px; color: #9abaf3; font-size: 84px; transform: rotate(7deg); }
.yd-business-banner > a { position: absolute; right: 24px; bottom: 24px; padding: 10px 15px; border-radius: 9px; color: #fff; background: var(--yd-blue); font-weight: 800; }
.yd-shipping-notice { display: flex; align-items: center; gap: 16px; margin: 16px 0 24px; padding: 17px 20px; border-radius: 15px; background: #fffaf2; }
.yd-shipping-notice > i:first-child { font-size: 28px; }
.yd-shipping-notice span { flex: 1; }
.yd-shipping-notice strong, .yd-shipping-notice small { display: block; }
.yd-shipping-notice small { color: var(--yd-muted); }
.yd-market-categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.yd-market-categories > a { min-height: 175px; display: flex; align-items: center; justify-content: space-between; padding: 25px; overflow: hidden; border: 1px solid var(--yd-line); border-radius: 18px; background: #fff; }
.yd-market-categories strong, .yd-market-categories small { display: block; }
.yd-market-categories strong { margin-bottom: 12px; font-size: 23px; }
.yd-market-categories small { color: var(--yd-muted); line-height: 1.7; }
.yd-market-categories > a > i { color: #a5b4c7; font-size: 70px; transform: translate(4px, 8px); }
.yd-market-categories > a.accent strong { color: #168056; }
.yd-market-promo { display: flex; align-items: center; min-height: 185px; margin: 22px 0; overflow: hidden; padding: 30px; border-radius: 18px; background: linear-gradient(100deg, #edf5ff, #e1ecfd); }
.yd-market-promo > div { flex: 1; }
.yd-market-promo h2 { margin: 0; font-size: 28px; }
.yd-market-promo p { margin: 6px 0 18px; }
.yd-market-promo span { display: inline-flex; padding: 8px 12px; border-radius: 8px; color: #fff; background: var(--yd-blue); font-weight: 800; }
.yd-market-promo img { width: 280px; max-height: 160px; object-fit: cover; border-radius: 90px 12px 12px 90px; }
.yd-popular-products > header { display: flex; align-items: center; justify-content: space-between; }
.yd-popular-products > header h2 { margin: 0; font-size: 26px; }
.yd-popular-products > header button { padding: 8px 12px; border: 1px solid var(--yd-line); border-radius: 9px; background: #fff; cursor: pointer; }
.yd-market-filter { display: none; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 8px; margin: 14px 0; padding: 14px; border: 1px solid var(--yd-line); border-radius: 13px; background: #fff; }
.yd-market-filter.open { display: grid; }
.yd-market-filter input, .yd-market-filter select { min-width: 0; height: 42px; padding: 0 10px; border: 1px solid var(--yd-line); border-radius: 8px; }
.yd-market-filter button { padding: 0 18px; border: 0; border-radius: 8px; color: #fff; background: var(--yd-blue); font-weight: 800; }
.yd-market-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 16px; }
.yd-market-grid article { min-width: 0; }
.yd-market-image { position: relative; overflow: hidden; aspect-ratio: 1.08; border-radius: 15px; background: #f0f3f7; }
.yd-market-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.yd-market-grid article:hover img { transform: scale(1.04); }
.yd-market-image span { position: absolute; left: 8px; top: 8px; padding: 3px 7px; border-radius: 5px; color: #fff; background: var(--yd-blue); font-size: 10px; font-weight: 900; }
.yd-market-grid h3 { margin: 9px 0 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 16px; }
.yd-market-grid > article > a > strong { display: block; font-size: 18px; }
.yd-market-grid > article > a > small { display: block; color: var(--yd-muted); }

/* Profile */
.yd-profile-head { margin-bottom: 24px; }
.yd-profile-card, .yd-point-card, .yd-share-card, .yd-favorites-card, .yd-settings-card { margin-bottom: 18px; padding: 26px; border: 1px solid var(--yd-line); border-radius: 20px; background: #fff; box-shadow: var(--yd-shadow); }
.yd-profile-identity { display: flex; align-items: center; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--yd-line); }
.yd-profile-logo { width: 98px; height: 98px; flex: 0 0 auto; display: grid; place-content: center; border: 1px solid var(--yd-line); border-radius: 50%; color: #111; text-align: center; font-size: 21px; font-weight: 700; line-height: 1.1; }
.yd-profile-logo small { display: block; font-size: 9px; letter-spacing: .14em; }
.yd-profile-identity > div { flex: 1; }
.yd-profile-identity h2 { margin: 0 0 6px; font-size: 24px; }
.yd-profile-identity h2 span { margin-left: 7px; padding: 3px 7px; border: 1px solid var(--yd-blue); border-radius: 5px; color: var(--yd-blue); font-size: 11px; vertical-align: middle; }
.yd-profile-identity p { margin: 0 0 8px; color: var(--yd-muted); }
.yd-profile-identity p strong { margin-left: 8px; color: #414d62; }
.yd-profile-identity p button { border: 0; background: transparent; cursor: pointer; }
.yd-profile-identity em { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; color: #b7791f; background: #fff6dc; font-style: normal; font-size: 12px; font-weight: 800; }
.yd-profile-identity em.verified { color: #139553; background: #e9f9ef; }
.yd-profile-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 20px; }
.yd-profile-stats a { text-align: center; border-right: 1px solid var(--yd-line); }
.yd-profile-stats a:last-child { border-right: 0; }
.yd-profile-stats span, .yd-profile-stats strong { display: block; }
.yd-profile-stats strong { margin-top: 4px; font-size: 24px; }
.yd-profile-stats a:first-child strong { color: var(--yd-blue); }
.yd-point-card { background: linear-gradient(110deg, #f4f9ff, #fff); }
.yd-point-card > header, .yd-share-card > header, .yd-favorites-card > header, .yd-settings-card > header { display: flex; align-items: center; gap: 14px; }
.yd-point-card > header > span, .yd-share-card > header > span, .yd-favorites-card > header > span, .yd-settings-card > header > i { width: 50px; height: 50px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--yd-blue); background: #e8f2ff; font-size: 23px; }
.yd-point-card header > div, .yd-share-card header > div, .yd-favorites-card header > div, .yd-settings-card header > div { flex: 1; }
.yd-point-card h2, .yd-share-card h2, .yd-favorites-card h2, .yd-settings-card h2 { margin: 0; font-size: 21px; }
.yd-point-card p, .yd-share-card p, .yd-favorites-card p, .yd-settings-card p { margin: 2px 0 0; color: var(--yd-muted); }
.yd-point-card header strong { display: block; color: var(--yd-blue); font-size: 27px; }
.yd-point-card header a, .yd-share-card header button, .yd-favorites-card header a { padding: 8px 13px; border: 1px solid #bfd2fb; border-radius: 999px; color: var(--yd-blue); background: #fff; font-weight: 750; }
.yd-point-card > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--yd-line); }
.yd-point-card > div > span { display: grid; gap: 3px; text-align: center; border-right: 1px solid var(--yd-line); }
.yd-point-card > div > span:last-child { border-right: 0; }
.yd-point-card > div i { color: var(--yd-blue); font-size: 23px; }
.yd-point-card > div small { color: var(--yd-muted); }
.yd-share-card { background: linear-gradient(110deg, #fbf9ff, #fff); }
.yd-share-card header > span { color: #7658da; background: #f0ebff; }
.yd-share-card header button { cursor: pointer; }
.yd-share-card > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 20px; }
.yd-share-card > div button { display: grid; gap: 6px; justify-items: center; border: 0; background: transparent; cursor: pointer; }
.yd-share-card > div i { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--yd-line); border-radius: 50%; background: #fff; font-size: 20px; }
.yd-favorites-card { background: linear-gradient(110deg, #fff9f9, #fff); }
.yd-favorites-card header > span { color: #f04758; background: #fff0f1; }
.yd-favorites-card > div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.yd-favorites-card > div a { position: relative; min-height: 95px; display: grid; place-content: center; border: 1px solid var(--yd-line); border-radius: 12px; background: #fff; text-align: center; }
.yd-favorites-card > div a strong { font-size: 16px; }
.yd-favorites-card > div a small { font-size: 9px; }
.yd-favorites-card > div a i { position: absolute; right: 7px; bottom: 6px; color: var(--yd-blue); font-size: 11px; }
.yd-settings-card { padding-bottom: 10px; }
.yd-settings-card > header { padding-bottom: 15px; }
.yd-settings-card nav a, .yd-settings-card form button { width: 100%; min-height: 49px; display: flex; align-items: center; gap: 12px; padding: 0 8px; border: 0; border-top: 1px solid var(--yd-line); background: transparent; text-align: left; cursor: pointer; }
.yd-settings-card nav a > i:first-child, .yd-settings-card form button > i:first-child { width: 23px; color: #6d7787; font-size: 18px; }
.yd-settings-card nav a span { flex: 1; }
.yd-settings-card nav a em { margin-left: auto; color: var(--yd-muted); font-style: normal; }
.yd-settings-card nav a > i:last-child, .yd-settings-card form button > i:last-child { margin-left: auto; color: #7b8798; }
.yd-settings-card form button { color: var(--yd-red); }

@media (max-width: 920px) {
  .yd-job-list { grid-template-columns: 1fr; }
  .yd-market-grid { grid-template-columns: repeat(3, 1fr); }
  .yd-market-categories { grid-template-columns: repeat(2, 1fr); }
  .yd-business-banner > i { margin-right: 130px; }
}

/* Native-like mobile layout based on the supplied references. */
@media (max-width: 680px) {
  body.app-ui { width: 100%; max-width: 100vw; padding-bottom: calc(94px + env(safe-area-inset-bottom)) !important; background: #f7faff !important; font-size: 14px; }
  body.app-ui-no-nav { padding-bottom: 0 !important; }
  body.app-ui .topbar, body.app-ui .site-header, body.app-ui .site-footer { display: none !important; }
  body.app-ui .yd-mobile-header { position: sticky; z-index: 140; top: 0; min-height: 82px; display: flex; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--yd-line); background: rgba(255, 255, 255, .97); backdrop-filter: blur(20px); }
  .yd-mobile-brand { display: flex; align-items: center; gap: 12px; }
  body.app-ui .yd-mobile-header--brand > .yd-mobile-brand { display: flex !important; visibility: visible !important; opacity: 1 !important; }
  body.app-ui .yd-mobile-header--brand > .yd-mobile-actions { display: flex !important; visibility: visible !important; opacity: 1 !important; }
  .yd-mobile-brand img { width: 46px; height: 46px; border-radius: 12px; }
  .yd-mobile-brand strong { color: var(--yd-navy); font-size: 20px; letter-spacing: -.05em; }
  .yd-mobile-title { position: absolute; left: 50%; color: var(--yd-navy); font-size: 20px; transform: translateX(-50%); }
  .yd-mobile-title-left { position: static; margin-right: auto; font-size: 25px; transform: none; }
  .yd-mobile-back { width: 42px; height: 42px; display: grid; place-items: center; margin-left: -10px; font-size: 23px; }
  .yd-mobile-actions { display: flex; align-items: center; gap: 5px; margin-left: auto; }
  .yd-mobile-actions > a, .yd-mobile-actions > button { position: relative; width: 43px; height: 43px; display: grid; place-items: center; border: 0; border-radius: 12px; color: var(--yd-navy); background: transparent; font-size: 22px; }
  .yd-mobile-actions > button { color: #fff; background: var(--yd-navy); }
  .yd-mobile-actions > button.yd-action-plain { color: var(--yd-navy); background: transparent; }
  .yd-action-dot { position: absolute; right: 6px; top: 5px; width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; background: var(--yd-red); }
  .yd-action-badge { position: absolute; right: 2px; top: -1px; min-width: 19px; height: 19px; padding: 0 4px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 999px; color: #fff; background: var(--yd-red); font-size: 9px; }
  body.app-ui .yd-bottom-nav { left: 12px; right: 12px; bottom: 0; min-height: 88px; display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 8px 5px max(8px, env(safe-area-inset-bottom)); border: 1px solid var(--yd-line); border-bottom: 0; border-radius: 22px 22px 0 0; background: rgba(255, 255, 255, .98); box-shadow: 0 -10px 30px rgba(21, 45, 80, .08); }
  body.app-ui .yd-bottom-nav::before { display: none; }
  body.app-ui .yd-bottom-nav a, body.app-ui .yd-bottom-nav a:nth-child(3) { min-width: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px; color: #586478; font-size: 10px; font-weight: 700; }
  body.app-ui .yd-bottom-nav a span, body.app-ui .yd-bottom-nav a:nth-child(3) span { width: 38px; height: 38px; display: grid; place-items: center; margin: 0; border: 0; border-radius: 12px; color: #586478; background: transparent; box-shadow: none; font-size: 21px; transform: none; }
  body.app-ui .yd-bottom-nav a.active { color: var(--yd-blue); }
  body.app-ui .yd-bottom-nav a.active span, body.app-ui .yd-bottom-nav a:nth-child(3).active span { color: var(--yd-blue); background: #edf4ff; box-shadow: none; transform: none; }
  body.refined-ui.app-ui:not(.admin-body) .mobile-bottom-nav.yd-bottom-nav a:nth-child(3) span { width: 38px !important; height: 38px !important; margin: 0 !important; border: 0 !important; border-radius: 12px !important; color: #586478 !important; background: transparent !important; box-shadow: none !important; transform: none !important; }
  body.refined-ui.app-ui:not(.admin-body) .mobile-bottom-nav.yd-bottom-nav a:nth-child(3).active span { color: var(--yd-blue) !important; background: #edf4ff !important; }
  .yd-page { min-height: calc(100vh - 170px); padding: 28px 0 26px; }
  .yd-shell, .yd-narrow-shell, .yd-detail-shell, .yd-calendar-shell { width: calc(100% - 28px); min-width: 0; }
  .yd-page-intro { margin-bottom: 20px; }
  .yd-page-intro-row { align-items: flex-start; }
  .yd-primary-button { padding: 9px 11px; font-size: 12px; }
  .yd-page-intro h1 { margin-top: 6px; font-size: 31px; }
  .yd-page-intro p { font-size: 15px; }
  .yd-safety-card { grid-template-columns: 1fr 1fr; gap: 14px 8px; padding: 17px; border-radius: 17px; }
  .yd-safety-card > div { gap: 7px; font-size: 11px; }
  .yd-safety-card > div:nth-child(3) { grid-column: 1 / -1; }
  .yd-safety-card > div i { font-size: 16px; }
  .yd-safety-card > a { font-size: 13px; }
  .yd-search { height: 61px; margin: 18px 0; padding: 0 15px; border-radius: 16px; }
  .yd-search input { padding: 0 10px; font-size: 14px; }
  .yd-list-summary { gap: 10px; margin: 18px 0 12px; font-size: 12px; }
  .yd-list-summary span { text-align: right; }
  .yd-job-list { gap: 14px; }
  .yd-job-card { border-radius: 19px; }
  .yd-job-card > a { padding: 19px; }
  .yd-company-avatar { width: 44px; height: 44px; border-radius: 14px; }
  .yd-job-card h2 { font-size: 19px; }
  .yd-job-place { font-size: 12px; }
  .yd-chip-row { margin: 13px 0; }
  .yd-job-card footer strong { font-size: 17px; }
  .yd-job-card footer span { font-size: 12px; }
  .yd-job-quick-actions { gap: 10px; }
  .yd-job-quick-actions > a { gap: 8px; min-width: 0; padding: 14px 10px; border-radius: 15px; }
  .yd-job-quick-actions > a > i { width: 35px; font-size: 25px; }
  .yd-job-quick-actions strong { font-size: 15px; }
  .yd-job-quick-actions small { font-size: 10px; }
  .yd-detail-page { padding-top: 18px; padding-bottom: 130px; }
  .yd-detail-hero, .yd-detail-card, .yd-apply-box { margin-bottom: 12px; padding: 22px 19px; border-radius: 20px; }
  .yd-detail-hero h1 { margin: 17px 0 12px; font-size: 28px; }
  .yd-detail-meta { gap: 6px 11px; font-size: 12px; }
  .yd-job-facts { grid-template-columns: 1fr 1fr; margin-top: 22px; }
  .yd-job-facts > div { min-height: 102px; padding: 17px; border-bottom: 1px solid var(--yd-line); }
  .yd-job-facts > div:nth-child(2) { border-right: 0; }
  .yd-job-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
  .yd-job-facts strong { margin-top: 9px; font-size: 17px; }
  .yd-detail-card h2 { font-size: 21px; }
  .yd-detail-card dl div { grid-template-columns: 110px 1fr; }
  .yd-detail-actions { grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 14px max(10px, env(safe-area-inset-bottom)); border-radius: 0; }
  .yd-detail-actions > a, .yd-detail-actions form button { min-height: 50px; font-size: 16px; }
  .yd-detail-actions small { font-size: 10px; }
  .yd-form-grid { grid-template-columns: 1fr; }
  .yd-form-grid .full { grid-column: auto; }
  .yd-community-head { margin-bottom: 20px; }
  .yd-community-head h1, .yd-market-head h1, .yd-profile-head h1 { font-size: 29px; }
  .yd-community-head p { font-size: 13px; }
  .yd-write-button { padding: 10px 13px; font-size: 13px; }
  .yd-category-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 0 -2px; overflow: visible; }
  .yd-category-tabs a { min-width: 0; padding: 8px 1px; font-size: 10px; white-space: nowrap; }
  .yd-sort-tabs { margin-top: 15px; }
  .yd-community-row > a { gap: 12px; padding: 19px 4px; }
  .yd-community-copy h2 { margin: 9px 0 4px; font-size: 17px; }
  .yd-community-copy > p { display: -webkit-box; overflow: hidden; font-size: 12px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .yd-community-copy footer { gap: 5px; font-size: 10px; }
  .yd-community-thumb { width: 94px; height: 78px; }
  .yd-comment-count { right: 0; bottom: 10px; }
  .yd-form-head h1 { font-size: 28px; }
  .yd-form-card, .yd-post-detail, .yd-comments { padding: 20px 17px; border-radius: 18px; }
  .yd-post-detail header h1 { font-size: 25px; }
  .yd-post-body { font-size: 14px; }
  .yd-chat-tabs a { padding: 14px 7px; font-size: 14px; }
  .yd-chat-caption { margin: 18px 0; }
  .yd-chat-guide { gap: 12px; padding: 16px; }
  .yd-chat-guide > span { width: 48px; height: 48px; }
  .yd-chat-guide strong { font-size: 15px; }
  .yd-chat-guide p { font-size: 11px; }
  .yd-room-row { gap: 12px; padding: 17px 14px; }
  .yd-room-avatar { width: 58px; height: 58px; font-size: 22px; }
  .yd-room-copy h2 { font-size: 16px; }
  .yd-room-copy p { font-size: 12px; }
  .yd-new-chat { right: 20px; bottom: 105px; width: 64px; height: 64px; }
  .yd-chat-room-page { min-height: calc(100vh - 82px); padding: 12px 0 96px; }
  .yd-chat-room-shell { width: calc(100% - 20px); }
  .yd-chat-context { gap: 10px; padding: 12px; }
  .yd-context-icon { width: 50px; height: 50px; }
  .yd-chat-context h2 { font-size: 14px; }
  .yd-chat-context p, .yd-chat-context a { font-size: 11px; }
  .yd-payment-state { padding: 7px 8px; font-size: 10px; }
  .yd-payment-guide { padding: 12px; font-size: 11px; }
  .yd-payment-guide > i { font-size: 20px; }
  .yd-payment-guide p { font-size: 10px; }
  .yd-messages { padding: 10px 4px; }
  .yd-message > div { max-width: 78%; }
  .yd-message p { padding: 10px 12px; font-size: 13px; }
  .yd-chat-composer { padding: 8px 10px max(8px, env(safe-area-inset-bottom)); }
  .yd-calendar-page { padding-top: 16px; }
  .yd-calendar-tabs { margin-bottom: 17px; }
  .yd-calendar-head h1 { font-size: 21px; }
  .yd-month-calendar { margin: 0 -14px; border-right: 0; border-left: 0; border-radius: 0; box-shadow: none; }
  .yd-weekdays span { padding: 8px 2px; font-size: 11px; }
  .yd-calendar-cell { min-height: 73px; padding: 4px 2px; }
  .yd-calendar-cell > time { width: 21px; height: 21px; margin-left: 3px; font-size: 10px; }
  .yd-event-pill { padding: 2px 3px; font-size: 7.5px; }
  .yd-event-pill small { display: none; }
  .yd-work-entry b { font-size: 8px; }
  .yd-work-entry em { font-size: 7.5px; }
  .yd-work-entry small { font-size: 6.5px; }
  .yd-calendar-summary { padding-top: 15px; }
  .yd-calendar-summary strong { font-size: 21px; }
  .yd-calendar-summary > a { padding: 9px 10px; font-size: 11px; }
  .yd-calendar-legend { gap: 8px; overflow-x: auto; justify-content: flex-start; white-space: nowrap; }
  .yd-unpaid-notice p { font-size: 10px; }
  .yd-schedule-form { padding: 16px; }
  .yd-market-page { padding-top: 18px; }
  .yd-market-head { display: none; }
  .yd-business-banner { min-height: 150px; padding: 20px 15px; }
  .yd-business-banner h2 { margin-bottom: 15px; font-size: 19px; }
  .yd-business-banner p { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; font-size: 10px; }
  .yd-business-banner p i { font-size: 15px; }
  .yd-business-banner > i { position: absolute; right: 18px; top: 18px; margin: 0; font-size: 55px; }
  .yd-business-banner > a { right: 14px; bottom: 14px; padding: 8px 10px; font-size: 11px; }
  .yd-shipping-notice { padding: 13px; }
  .yd-shipping-notice small { font-size: 10px; }
  .yd-market-categories { grid-template-columns: 1fr 1fr; gap: 9px; }
  .yd-market-categories > a { min-width: 0; min-height: 137px; padding: 17px 12px; }
  .yd-market-categories strong { margin-bottom: 7px; font-size: 19px; }
  .yd-market-categories small { font-size: 10px; }
  .yd-market-categories > a > i { font-size: 43px; }
  .yd-market-promo { min-height: 145px; padding: 20px 15px; }
  .yd-market-promo h2 { font-size: 21px; }
  .yd-market-promo p { font-size: 10px; }
  .yd-market-promo span { font-size: 10px; }
  .yd-market-promo img { width: 125px; height: 110px; }
  .yd-popular-products > header h2 { font-size: 21px; }
  .yd-market-filter, .yd-market-filter.open { grid-template-columns: 1fr; }
  .yd-market-filter button { min-height: 42px; }
  .yd-market-grid { grid-template-columns: repeat(2, 1fr); gap: 14px 10px; }
  .yd-market-grid h3 { font-size: 13px; }
  .yd-market-grid > article > a > strong { font-size: 15px; }
  .yd-market-grid > article > a > small { font-size: 10px; }
  .yd-profile-page { padding-top: 18px; }
  .yd-profile-head { margin-bottom: 18px; }
  .yd-profile-head h1 { display: none; }
  .yd-profile-head p { margin-top: 0; }
  .yd-profile-card, .yd-point-card, .yd-share-card, .yd-favorites-card, .yd-settings-card { margin-bottom: 13px; padding: 18px 15px; border-radius: 17px; }
  .yd-profile-identity { gap: 11px; padding-bottom: 17px; }
  .yd-profile-logo { width: 70px; height: 70px; font-size: 16px; }
  .yd-profile-identity h2 { font-size: 17px; }
  .yd-profile-identity h2 span { display: inline-block; margin-left: 2px; }
  .yd-profile-identity p { font-size: 11px; }
  .yd-profile-identity em { font-size: 10px; }
  .yd-profile-stats span { font-size: 11px; }
  .yd-profile-stats strong { font-size: 17px; }
  .yd-profile-stats a { min-width: 0; }
  .yd-profile-stats strong { overflow-wrap: anywhere; }
  .yd-point-card > header > span, .yd-share-card > header > span, .yd-favorites-card > header > span, .yd-settings-card > header > i { width: 42px; height: 42px; font-size: 19px; }
  .yd-point-card h2, .yd-share-card h2, .yd-favorites-card h2, .yd-settings-card h2 { font-size: 17px; }
  .yd-point-card p, .yd-share-card p, .yd-favorites-card p, .yd-settings-card p { font-size: 10px; }
  .yd-point-card header strong { font-size: 21px; }
  .yd-point-card header a, .yd-share-card header button, .yd-favorites-card header a { padding: 6px 9px; font-size: 10px; }
  .yd-point-card > div i { font-size: 19px; }
  .yd-point-card > div small { font-size: 9px; }
  .yd-share-card > div span { font-size: 10px; }
  .yd-favorites-card > div { gap: 6px; overflow-x: auto; }
  .yd-favorites-card > div a { min-width: 91px; min-height: 75px; }
  .yd-favorites-card > div a strong { font-size: 12px; }
  .yd-settings-card nav a, .yd-settings-card form button { min-height: 46px; font-size: 13px; }
}

@media (max-width: 680px) {
  .yd-team-calendar-bar { align-items: flex-start; padding: 13px; }
  .yd-team-calendar-bar > div > span { width: 36px; height: 36px; border-radius: 11px; }
  .yd-team-calendar-bar strong { font-size: 13px; }
  .yd-team-calendar-bar p { max-width: 180px; font-size: 9px; }
  .yd-team-calendar-bar > a { padding: 9px; font-size: 10px; white-space: nowrap; }
  .yd-calendar-scope-tabs { gap: 5px; }
  .yd-calendar-scope-tabs a { min-height: 40px; gap: 4px; padding: 0 3px; font-size: 10px; }
  .yd-team-filter { margin-bottom: 12px; }
  .yd-calendar-current-filter { margin-bottom: 7px; }
  .yd-event-pill.team-entry { border-left-width: 2px; }
  .yd-event-pill.team-entry i, .yd-work-entry.team-entry > i { display: none; }
  .yd-calendar-agenda { margin: 18px -2px 0; padding: 16px 13px; border-radius: 16px; }
  .yd-calendar-agenda > header h2 { font-size: 17px; }
  .yd-agenda-list article { gap: 9px; padding: 12px 0; }
  .yd-agenda-list article > time { width: 38px; }
  .yd-agenda-list article > time strong { font-size: 19px; }
  .yd-agenda-list h3 { font-size: 14px; }
  .yd-agenda-list p, .yd-agenda-list small { font-size: 9px; }
  .yd-calendar-target-box { padding: 12px; }
  .yd-calendar-target-box label { grid-template-columns: 1fr; }
  .yd-calendar-target-box p { margin-left: 0; font-size: 9px; }
  .yd-team-page { padding-top: 16px; }
  .yd-team-shell { width: calc(100% - 28px); }
  .yd-team-page-head { align-items: flex-start; }
  .yd-team-page-head h1 { display: none; }
  .yd-team-page-head p { max-width: 235px; font-size: 11px; }
  .yd-team-page-head > a { padding: 9px 10px; font-size: 10px; white-space: nowrap; }
  .yd-team-privacy { align-items: flex-start; padding: 13px; }
  .yd-team-privacy strong { font-size: 12px; }
  .yd-team-privacy p { font-size: 9px; }
  .yd-incoming-invites, .yd-outgoing-invites { padding: 15px 13px; }
  .yd-incoming-invites article, .yd-outgoing-invites article { flex-wrap: wrap; }
  .yd-incoming-invites article > div { min-width: calc(100% - 55px); }
  .yd-incoming-invites article form { flex: 1; }
  .yd-incoming-invites article form button { width: 100%; }
  .yd-invite-link-card { align-items: flex-start; flex-wrap: wrap; padding: 14px; }
  .yd-invite-link-card > div { width: calc(100% - 45px); }
  .yd-invite-link-card button { width: 100%; }
  .yd-team-layout { grid-template-columns: 1fr; }
  .yd-team-sidebar { gap: 10px; }
  .yd-team-list-card nav { display: flex; overflow-x: auto; scrollbar-width: none; }
  .yd-team-list-card nav a { min-width: 210px; border-right: 1px solid var(--yd-line); border-bottom: 0; }
  .yd-team-list-card nav a:last-child { border-right: 0; }
  .yd-team-overview-title { align-items: flex-start; flex-wrap: wrap; padding: 17px 15px; }
  .team-icon { width: 48px; height: 48px; border-radius: 14px; }
  .yd-team-overview-title > div { width: calc(100% - 65px); }
  .yd-team-overview-title h2 { font-size: 20px; }
  .yd-team-overview-title p { font-size: 10px; }
  .yd-team-overview-title > a { width: 100%; padding-top: 10px; border-top: 1px solid var(--yd-line); text-align: right; }
  .yd-team-overview-meta { flex-wrap: wrap; gap: 6px 12px; padding: 11px 15px; }
  .yd-team-invite-form, .yd-team-members, .yd-team-upcoming { padding: 16px 14px; }
  .yd-team-invite-form form { grid-template-columns: 1fr; }
  .yd-team-invite-form form button { min-height: 42px; }
  .yd-team-members article > div p { max-width: 145px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .yd-outgoing-invites article > div { min-width: 170px; }
}
