/* OneFamilyCircle RC5 consolidated production CSS */
/* OneFamilyCircle Web RC5 — Android parity / Daily Bright */
:root{
  --rc5-navy:#08295d;
  --rc5-blue:#087cf0;
  --rc5-coral:#ff5d6c;
  --rc5-mint:#20c7a9;
  --rc5-lav:#7b4de8;
  --rc5-amber:#ffb51b;
  --rc5-soft:#f8fbff;
  --rc5-line:#e5eaf2;
}

/* Keep the existing desktop shell, but make the visual language match Android RC5. */
.content{background:linear-gradient(180deg,#fbfdff 0%,#f7faff 100%)}
.desktop-sidebar{background:#fff;border-right:1px solid var(--rc5-line)}
.desktop-nav-item,.desktop-tool-list button,.desktop-footer button{border-radius:14px}
.desktop-nav-item.active{background:linear-gradient(135deg,#edf6ff,#f1edff);color:var(--rc5-navy)}
.bottom-nav{box-shadow:0 -8px 28px rgba(14,46,89,.08);border-top:1px solid #e9edf4}
.nav-destination.active{color:#148dc3}

.rc5-home{max-width:1180px;margin:0 auto;padding:4px 0 28px}
.rc5-greeting{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:2px 0 16px}
.rc5-greeting h1{margin:0;color:var(--rc5-navy);font-size:clamp(28px,4vw,44px);line-height:1.04;letter-spacing:-1.2px}
.rc5-greeting p{margin:8px 0 0;color:#76829a;font-size:14px}
.rc5-daily-hero{position:relative;min-height:340px;border-radius:30px;overflow:hidden;background:linear-gradient(135deg,#183b67,#7567c5,#39a5c7);box-shadow:0 20px 60px rgba(24,57,102,.18);isolation:isolate}
.rc5-daily-hero::before{content:"";position:absolute;inset:0;background-image:var(--rc5-hero-image);background-size:cover;background-position:center;z-index:-2}
.rc5-daily-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,22,58,.06),rgba(0,21,62,.84));z-index:-1}
.rc5-hero-inner{min-height:340px;padding:28px;display:flex;flex-direction:column;justify-content:flex-end;color:#fff}
.rc5-hero-kicker{display:inline-flex;align-items:center;gap:7px;width:max-content;padding:7px 11px;border:1px solid rgba(255,255,255,.35);border-radius:999px;background:rgba(255,255,255,.15);backdrop-filter:blur(10px);font-size:12px;font-weight:800;letter-spacing:.03em}
.rc5-hero-quote{max-width:790px;margin:14px 0 8px;font-size:clamp(28px,4.4vw,50px);line-height:1.04;font-weight:900;letter-spacing:-1.4px;text-shadow:0 3px 18px rgba(0,0,0,.22)}
.rc5-hero-sub{margin:0 0 18px;max-width:650px;color:rgba(255,255,255,.88);font-size:14px;line-height:1.55}
.rc5-hero-actions{display:flex;gap:10px;flex-wrap:wrap}
.rc5-hero-actions button{border:0;border-radius:16px;padding:12px 16px;font:inherit;font-weight:800;cursor:pointer}
.rc5-bright-btn{background:#fff;color:var(--rc5-navy);box-shadow:0 8px 20px rgba(0,0,0,.15)}
.rc5-theme-btn{background:rgba(255,255,255,.16);color:#fff;border:1px solid rgba(255,255,255,.38)!important;backdrop-filter:blur(9px)}
.rc5-source{position:absolute;right:18px;top:15px;color:rgba(255,255,255,.76);font-size:10px;text-decoration:none}
.rc5-core-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}
.rc5-space-card,.rc5-ai-card,.rc5-mini-card,.rc5-quick-row{border:1px solid var(--rc5-line);background:#fff;border-radius:24px;box-shadow:0 8px 30px rgba(23,56,97,.05)}
.rc5-space-card{padding:22px;text-align:left;cursor:pointer;min-height:190px;display:flex;flex-direction:column;justify-content:space-between}
.rc5-space-card.family{background:linear-gradient(135deg,#fff3f4,#fff)}
.rc5-space-card.friends{background:linear-gradient(135deg,#eff9ff,#fff)}
.rc5-space-icon{width:58px;height:58px;border-radius:19px;display:grid;place-items:center;margin-bottom:18px}
.rc5-space-card.family .rc5-space-icon{background:#ffe2e5;color:var(--rc5-coral)}
.rc5-space-card.friends .rc5-space-icon{background:#dff3ff;color:#168fd3}
.rc5-space-icon svg{width:31px;height:31px}
.rc5-space-card h2{margin:0;color:var(--rc5-navy);font-size:25px;line-height:1.05}
.rc5-space-card p{margin:8px 0 0;color:#76829a;line-height:1.5}
.rc5-ai-card{margin-top:14px;padding:18px 20px;display:flex;align-items:center;gap:16px;cursor:pointer;background:linear-gradient(135deg,#fff,#f5efff)}
.rc5-ai-orb{width:58px;height:58px;border-radius:18px;background:#eee6ff;color:var(--rc5-lav);display:grid;place-items:center;flex:0 0 auto}
.rc5-ai-orb svg{width:31px;height:31px}
.rc5-ai-copy{min-width:0;flex:1}
.rc5-ai-copy h2{margin:0;color:var(--rc5-navy);font-size:22px}
.rc5-ai-copy p{margin:4px 0 0;color:#78839a;line-height:1.45}
.rc5-arrow{font-size:30px;color:var(--rc5-navy)}
.rc5-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}
.rc5-mini-card{padding:18px;text-align:left;cursor:pointer;display:flex;gap:13px;align-items:center}
.rc5-mini-card .rc5-mini-icon{width:46px;height:46px;border-radius:15px;background:#e6fbf6;color:#18a98e;display:grid;place-items:center;flex:0 0 auto}
.rc5-mini-card:nth-child(2) .rc5-mini-icon{background:#eee8ff;color:var(--rc5-lav)}
.rc5-mini-card strong{display:block;color:var(--rc5-navy);font-size:16px}
.rc5-mini-card span{display:block;color:#7a869b;font-size:12px;margin-top:3px}
.rc5-quick-row{margin-top:12px;padding:14px 16px;display:flex;align-items:center;gap:13px;cursor:pointer;text-align:left;width:100%}
.rc5-quick-row strong{display:block;color:var(--rc5-navy)}
.rc5-quick-row small{display:block;color:#7b879a;margin-top:3px}
.rc5-quick-dot{width:42px;height:42px;border-radius:14px;background:#fff0f1;color:var(--rc5-coral);display:grid;place-items:center;flex:0 0 auto}
.rc5-home-footer{text-align:center;color:#8490a4;font-weight:700;font-size:12px;margin:22px 0 0}

/* Profile */
.rc5-profile-head{text-align:center;padding:4px 0 8px}
.rc5-avatar-wrap{position:relative;width:124px;height:124px;margin:0 auto 13px}
.rc5-avatar{width:124px;height:124px;border-radius:50%;background:#eef3f9 center/cover no-repeat;display:grid;place-items:center;color:var(--rc5-navy);font-size:30px;font-weight:900;box-shadow:0 10px 32px rgba(25,57,97,.13)}
.rc5-camera-badge{position:absolute;right:0;bottom:5px;width:38px;height:38px;border:4px solid #fff;border-radius:50%;background:#159ad5;color:#fff;display:grid;place-items:center;cursor:pointer;font-size:17px}
.rc5-profile-name{font-size:25px;font-weight:900;color:var(--rc5-navy)}
.rc5-profile-handle{margin-top:3px;color:#75829a;font-size:14px;font-weight:700}
.rc5-avatar-menu{display:grid;gap:8px;margin:10px 0 16px}
.rc5-avatar-menu button{border:1px solid var(--rc5-line);background:#fff;border-radius:14px;padding:12px;text-align:left;font:inherit;font-weight:750;color:var(--rc5-navy);cursor:pointer}
.rc5-avatar-menu button.danger{color:#b42318}
.rc5-handle-input{display:flex;align-items:center;border:1px solid #dce4ee;border-radius:14px;background:#fff;padding-left:13px}
.rc5-handle-input b{color:var(--rc5-navy);font-size:18px}
.rc5-handle-input input{border:0!important;outline:0!important;box-shadow:none!important;flex:1;background:transparent!important}

/* Message actions + voice */
.rc5-msg-wrap{position:relative}
.rc5-message-menu{position:absolute;right:-7px;top:5px;width:26px;height:26px;border:0;background:transparent;color:#708098;cursor:pointer;border-radius:50%;font-size:18px;display:grid;place-items:center}
.message-row.mine .rc5-message-menu{right:auto;left:-7px}
.rc5-message-deleted{font-style:italic;color:#8390a4}
.rc5-edited{font-size:9px;opacity:.78;margin-left:4px}
.rc5-composer-action{border:0;background:#eef4fb;color:var(--rc5-navy);border-radius:50%;width:40px;height:40px;display:grid;place-items:center;cursor:pointer;flex:0 0 auto}
.rc5-composer-action.listening{background:#ffe9eb;color:#d92d43;animation:rc5Pulse 1s infinite}
@keyframes rc5Pulse{50%{transform:scale(1.08)}}
.rc5-speech-note{font-size:11px;color:#7b8798;margin:6px 0 0}

/* Notifications */
.rc5-notification-toolbar{display:flex;gap:8px;flex-wrap:wrap}
.rc5-notification-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:start;padding:15px;border:1px solid var(--rc5-line);border-radius:17px;background:#fff;margin-bottom:9px}
.rc5-notification-item.unread{background:#f4f9ff;border-color:#d7eaff}
.rc5-notification-open{all:unset;display:block;cursor:pointer;min-width:0}
.rc5-notification-open h3{margin:0;color:var(--rc5-navy);font-size:15px}
.rc5-notification-open p{margin:4px 0;color:#718096;line-height:1.4}
.rc5-notification-open time{color:#8b95a6;font-size:10px}
.rc5-delete-icon{border:0;background:#fff0f1;color:#c43245;border-radius:10px;width:34px;height:34px;cursor:pointer}

/* AI / translator */
.rc5-ai-compose-row{display:flex;gap:8px;align-items:flex-end;width:100%}
.rc5-ai-compose-row textarea{flex:1}
.rc5-mic-button{width:46px;height:46px;border:0;border-radius:50%;background:#eee7ff;color:var(--rc5-lav);font-size:20px;cursor:pointer;flex:0 0 auto}
.rc5-mic-button.listening{background:#ffe8eb;color:#d92d43;animation:rc5Pulse 1s infinite}

/* Modal form polish */
.modal-card .plain-field input,.modal-card .plain-field select,.modal-card .plain-field textarea{font-size:16px}
.rc5-theme-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:12px}
.rc5-theme-grid button{border:1px solid var(--rc5-line);background:#fff;border-radius:14px;padding:12px;font:inherit;cursor:pointer;text-transform:capitalize}
.rc5-theme-grid button.active{background:#eee9ff;border-color:#b9a7ff;color:#5d42c6;font-weight:800}

@media(max-width:720px){
  .rc5-home{padding:0 0 20px}
  .rc5-greeting{display:block;margin:2px 3px 14px}
  .rc5-greeting h1{font-size:29px}
  .rc5-daily-hero{border-radius:25px;min-height:315px}
  .rc5-hero-inner{min-height:315px;padding:20px}
  .rc5-hero-quote{font-size:31px;letter-spacing:-.9px}
  .rc5-core-grid,.rc5-mini-grid{grid-template-columns:1fr 1fr;gap:10px}
  .rc5-space-card{padding:17px;min-height:174px}
  .rc5-space-card h2{font-size:21px}
  .rc5-space-card p{font-size:13px}
  .rc5-ai-card{padding:16px}
}
@media(max-width:420px){
  .rc5-core-grid{grid-template-columns:1fr 1fr}
  .rc5-space-card{min-height:185px}
  .rc5-space-icon{width:50px;height:50px}
  .rc5-mini-grid{grid-template-columns:1fr}
}


/* OneFamilyCircle Web RC5 — Full Android Visual Parity v2
   Safe override loaded after rc5-web-parity.css. No backend credentials. */
:root{
  --ofc-navy:#062b63;
  --ofc-navy-2:#0b3978;
  --ofc-blue:#0787ee;
  --ofc-blue-2:#0b63c8;
  --ofc-coral:#ff5c70;
  --ofc-mint:#14c9aa;
  --ofc-lav:#8056ef;
  --ofc-amber:#ffb51b;
  --ofc-ink:#0b2d61;
  --ofc-muted:#7a86a1;
  --ofc-line:#e7ecf5;
  --ofc-canvas:#f9fbff;
  --ofc-card:#ffffff;
  --ofc-shadow:0 18px 50px rgba(18,55,101,.08);
  --ofc-radius:26px;
}

html,body{background:var(--ofc-canvas)!important;color:var(--ofc-ink)!important}
body{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important}
button,input,textarea,select{font:inherit}

/* ---------- Desktop shell: Android language translated to desktop ---------- */
@media(min-width:1121px){
  .desktop-sidebar{background:rgba(255,255,255,.98)!important;border-right:1px solid var(--ofc-line)!important;padding:18px 14px!important}
  .desktop-brand{min-height:64px!important;padding:4px 10px 16px!important;margin-bottom:8px!important;border-bottom:0!important}
  .desktop-brand img{width:47px!important;height:47px!important}
  .desktop-brand strong{font-size:17px!important;letter-spacing:-.35px!important;color:var(--ofc-navy)!important}
  .desktop-brand small{font-size:9px!important;letter-spacing:.12em!important;color:#8a96ae!important}
  .desktop-nav-list{gap:8px!important}
  .desktop-nav-item,.desktop-tool-list button,.desktop-footer button{
    min-height:54px!important;border-radius:17px!important;padding:0 14px!important;gap:13px!important;color:#697792!important;
    transition:background .16s ease,color .16s ease,transform .16s ease!important
  }
  .desktop-nav-item:hover,.desktop-tool-list button:hover,.desktop-footer button:hover{background:#f5f8fd!important;transform:translateX(1px)}
  .desktop-nav-item.active{background:linear-gradient(135deg,#e7fbf4 0%,#eaf6ff 100%)!important;color:var(--ofc-navy)!important;box-shadow:inset 0 0 0 1px rgba(20,201,170,.13)!important}
  .desktop-nav-item b,.desktop-tool-list button,.desktop-footer button{font-size:14px!important;font-weight:750!important}
  .desktop-nav-item.active b{font-weight:850!important;color:var(--ofc-navy)!important}
  .side-icon{width:27px!important;height:27px!important;display:grid!important;place-items:center!important;flex:0 0 27px!important}
  .ofc-premium-icon{width:24px;height:24px;display:block}
  .desktop-nav-item.active .ofc-premium-icon{filter:drop-shadow(0 3px 6px rgba(0,91,180,.08))}
  .desktop-tool-list{border-top:1px solid #edf0f6!important;margin-top:18px!important;padding-top:18px!important;gap:5px!important}
  .desktop-section-label{font-size:10px!important;letter-spacing:.16em!important;color:#6b8277!important;font-weight:900!important;padding:0 10px 8px!important}
  .desktop-footer{border-top:1px solid #edf0f6!important;padding-top:12px!important}
  .desktop-workspace .brand-title img{display:none!important}
  .desktop-workspace .brand-title{gap:0!important}
  .desktop-workspace .brand-title strong{font-size:22px!important;color:var(--ofc-navy)!important;font-weight:900!important}
  .header-inner{padding:0 32px!important}
  .content{padding:100px 38px 34px!important;background:linear-gradient(180deg,#fbfdff,#f7faff)!important}
}

/* Header + brand ribbon */
.app-header{background:rgba(255,255,255,.96)!important;border-bottom:0!important;box-shadow:0 1px 0 rgba(7,44,98,.04)!important}
.brand-ribbon{height:3px!important;background:linear-gradient(90deg,#ff6a60,#ffc11b,#1fd0a9,#149cf0,#8658ef)!important;opacity:.88}
.header-icon,.header-avatar{width:44px!important;height:44px!important}
.header-avatar{box-shadow:0 0 0 3px #fff,0 4px 14px rgba(28,64,109,.12)!important}

/* Mobile bottom nav — same five destinations as Android */
.bottom-nav{height:78px!important;background:rgba(255,255,255,.985)!important;border-top:1px solid #edf1f7!important;box-shadow:0 -12px 40px rgba(8,42,92,.07)!important}
.nav-destination{font-size:11px!important;font-weight:750!important;color:#7d88a0!important;gap:3px!important}
.nav-symbol{width:43px!important;height:36px!important;border-radius:18px!important;font-size:0!important}
.nav-symbol .ofc-premium-icon{width:25px;height:25px}
.nav-destination.active{color:var(--ofc-navy)!important;font-weight:900!important}
.nav-destination.active .nav-symbol{background:linear-gradient(135deg,#dff7ff,#e7f5ff)!important;color:#0b8fe2!important;box-shadow:0 5px 16px rgba(18,142,225,.09)!important}
.nav-destination[data-nav="/family"] .nav-symbol{color:var(--ofc-coral)}
.nav-destination[data-nav="/friends"] .nav-symbol{color:var(--ofc-blue)}
.nav-destination[data-nav="/sendone"] .nav-symbol{color:#bb7b00}
.nav-destination[data-nav="/ai"] .nav-symbol{color:var(--ofc-lav)}

/* ---------- Global premium primitives ---------- */
.card,.space-card,.welcome-card,.grid-action,.action-row,.settings-list,.profile-card,.tool-card,.chat-row{
  border-color:var(--ofc-line)!important;box-shadow:0 8px 28px rgba(10,42,87,.045)!important
}
.hero-title{color:var(--ofc-navy)!important;letter-spacing:-.7px!important}
.hero-subtitle{color:var(--ofc-muted)!important}
.primary-button{background:linear-gradient(135deg,#0e79db,#0a56b6)!important;border-radius:18px!important;box-shadow:0 10px 24px rgba(15,101,193,.17)!important}
.secondary-button,.outline-button{border-radius:17px!important;border-color:#dfe6f2!important;background:#fff!important;color:var(--ofc-navy)!important}
.danger-button{border-radius:17px!important}
.modal-card{border-radius:28px!important;border-color:#e8edf5!important;box-shadow:0 26px 80px rgba(4,31,72,.19)!important}

/* Family/Friends parity */
.person-strip{padding:5px 2px 7px!important;gap:13px!important}
.person-avatar{box-shadow:0 5px 18px rgba(11,48,99,.09)!important;border:3px solid #fff!important}
.welcome-card{border-radius:24px!important;padding:20px!important}
.welcome-card.family{background:linear-gradient(135deg,#fff2f4,#fff)!important}
.welcome-card.friend{background:linear-gradient(135deg,#eff8ff,#fff)!important}
.action-grid{gap:13px!important}
.grid-action{border-radius:22px!important;min-height:134px!important;padding:18px!important;text-align:left!important}
.grid-icon{border-radius:16px!important;width:45px!important;height:45px!important;display:grid!important;place-items:center!important}
.grid-icon .ofc-premium-icon{width:24px;height:24px}

/* AI parity */
.ai-page,.ai-shell{max-width:980px!important;margin-inline:auto!important}
.ai-chip,.ai-tool-chip{border-radius:20px!important;border-color:#e6ebf4!important;background:#fff!important;box-shadow:0 7px 20px rgba(10,42,87,.04)!important}
.ai-message,.ai-bubble{border-radius:22px!important}
.ai-composer{border-radius:26px!important;border:1px solid #e3e9f3!important;background:#fff!important;box-shadow:0 12px 34px rgba(8,42,92,.07)!important}

/* ---------- Conversation: Android replica in desktop/web form ---------- */
.content:has(.ofc-chat-shell){padding-bottom:20px!important}
.ofc-chat-shell{max-width:1180px;margin:0 auto;background:#fff;border:1px solid #e8edf5;border-radius:30px;overflow:hidden;box-shadow:0 18px 60px rgba(8,43,93,.07);display:grid;grid-template-rows:auto 1fr auto;min-height:calc(100vh - 145px)}
.ofc-chat-profile{position:relative;padding:20px 24px 18px;display:grid;grid-template-columns:42px 72px minmax(0,1fr) auto;gap:14px;align-items:center;background:linear-gradient(135deg,#fff 0%,#fbfdff 62%,#f6f3ff 100%);border-bottom:1px solid #edf1f7}
.ofc-chat-back{width:42px;height:42px;border:0;border-radius:50%;background:#f5f8fc;color:var(--ofc-navy);display:grid;place-items:center}
.ofc-chat-peer-avatar{width:72px;height:72px;border-radius:50%;background:#edf5ff center/cover no-repeat;display:grid;place-items:center;font-size:22px;font-weight:900;color:var(--ofc-navy);border:4px solid #fff;box-shadow:0 8px 22px rgba(10,45,92,.11)}
.ofc-chat-peer{min-width:0}
.ofc-chat-peer h2{margin:0;color:var(--ofc-navy);font-size:20px;line-height:1.12;font-weight:900;letter-spacing:-.35px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ofc-chat-handle{margin-top:5px;color:#7785a0;font-size:12px;font-weight:700;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.ofc-private-dot{width:8px;height:8px;border-radius:50%;background:var(--ofc-mint);box-shadow:0 0 0 4px rgba(20,201,170,.12)}
.ofc-chat-call-actions{display:flex;gap:10px;align-items:center}
.ofc-chat-call{min-height:46px;border:0;border-radius:18px;padding:0 18px;color:#fff;font-weight:900;display:flex;align-items:center;gap:9px;background:linear-gradient(135deg,#0d7ee4,#0759b8);box-shadow:0 10px 22px rgba(4,98,193,.16)}
.ofc-chat-call .ofc-premium-icon{width:20px;height:20px}
.ofc-chat-messages{overflow:auto;min-height:420px;max-height:calc(100vh - 360px);padding:22px 24px 28px;background:linear-gradient(180deg,#fff 0%,#fbfdff 58%,#f9fbff 100%);scroll-behavior:smooth}
.ofc-day-divider{display:flex;align-items:center;justify-content:center;margin:2px 0 20px}
.ofc-day-divider span{padding:7px 15px;border-radius:999px;background:#f0f2fb;color:#71809d;font-size:11px;font-weight:800}
.ofc-msg-row{display:grid;grid-template-columns:38px minmax(0,1fr);gap:9px;align-items:end;margin:10px 0}
.ofc-msg-row.outgoing{grid-template-columns:minmax(0,1fr) auto;justify-items:end}
.ofc-msg-avatar{width:36px;height:36px;border-radius:50%;background:#eef6ff center/cover no-repeat;display:grid;place-items:center;font-size:10px;font-weight:900;color:var(--ofc-navy);align-self:end}
.ofc-msg-stack{display:flex;align-items:flex-end;gap:6px;max-width:min(680px,76%)}
.ofc-msg-row.outgoing .ofc-msg-stack{justify-content:flex-end}
.ofc-msg-bubble{position:relative;padding:12px 15px 9px;border-radius:21px 21px 21px 8px;border:1px solid #e7ecf4;background:#fff;color:#17335f;font-size:14px;line-height:1.48;white-space:pre-wrap;word-break:break-word;box-shadow:0 6px 18px rgba(12,48,94,.035)}
.ofc-msg-row.outgoing .ofc-msg-bubble{border-radius:21px 21px 8px 21px;border-color:transparent;background:linear-gradient(135deg,#dff1ff,#cfe9ff);color:#0a2d61}
.ofc-msg-meta{display:flex;justify-content:flex-end;align-items:center;gap:6px;margin-top:5px;font-size:9.5px;color:#7c8aa5;white-space:nowrap}
.ofc-msg-check{color:#0d8cef;font-size:11px;font-weight:900;letter-spacing:-2px}
.ofc-edited{font-weight:700}
.ofc-msg-menu{width:27px;height:27px;border:0;border-radius:50%;background:transparent;color:#91a0b8;opacity:0;display:grid;place-items:center;font-size:18px;transition:.15s}
.ofc-msg-row:hover .ofc-msg-menu,.ofc-msg-menu:focus{opacity:1;background:#f2f5fa}
.ofc-message-deleted{font-style:italic;color:#8995aa}
.ofc-file-tile{display:grid;grid-template-columns:38px 1fr;gap:10px;align-items:center;min-width:220px}
.ofc-file-icon{width:38px;height:38px;border-radius:12px;background:rgba(255,255,255,.62);display:grid;place-items:center;color:#087dde}
.ofc-file-name{font-weight:850;overflow-wrap:anywhere}
.ofc-file-size{display:block;margin-top:2px;font-size:10px;color:#73839e;font-weight:650}
.ofc-chat-empty{text-align:center;padding:74px 20px;color:#75839d}
.ofc-chat-empty .ofc-premium-icon{width:38px;height:38px;margin:0 auto 12px;color:#7756e8}
.ofc-chat-empty h3{margin:0 0 6px;color:var(--ofc-navy)}

.ofc-composer-wrap{padding:12px 18px 15px;background:#fff;border-top:1px solid #edf1f7}
.ofc-composer{display:grid;grid-template-columns:44px minmax(0,1fr) 44px 44px 48px;gap:8px;align-items:end}
.ofc-composer-btn{width:44px;height:44px;border:0;border-radius:50%;display:grid;place-items:center;background:#f3f6fb;color:var(--ofc-navy)}
.ofc-composer-btn:hover{background:#eaf2fb}
.ofc-composer-btn.listening{background:#ffe9ec;color:#ef455b;animation:ofcPulse 1s infinite}
.ofc-composer-btn .ofc-premium-icon{width:22px;height:22px}
.ofc-message-input{min-height:46px;max-height:126px;resize:none;border:1px solid #dfe6f1;border-radius:23px;background:#fff;padding:12px 16px;outline:0;color:var(--ofc-navy);line-height:1.45;box-shadow:inset 0 1px 2px rgba(10,43,89,.02)}
.ofc-message-input:focus{border-color:#8fc7ef;box-shadow:0 0 0 4px rgba(13,132,224,.08)}
.ofc-send-btn{width:48px;height:48px;border:0;border-radius:50%;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#1394f4,#0661c9);box-shadow:0 9px 22px rgba(6,105,204,.22)}
.ofc-send-btn .ofc-premium-icon{width:23px;height:23px}

/* Profile/editor */
.rc5-profile-head{padding-top:4px!important}
.rc5-avatar{width:132px!important;height:132px!important;border:5px solid #fff!important;box-shadow:0 14px 34px rgba(12,47,93,.13)!important}
.rc5-camera-badge{width:42px!important;height:42px!important;right:2px!important;bottom:3px!important;border:4px solid #fff!important;background:linear-gradient(135deg,#1197ee,#0863c7)!important;color:#fff!important}
.rc5-avatar-menu{border-radius:20px!important;border-color:#e5ebf4!important;overflow:hidden!important}
.rc5-avatar-menu button{min-height:48px!important}

/* Notifications */
.rc5-notification-item{border-radius:21px!important;border-color:#e6ebf4!important;box-shadow:0 7px 22px rgba(8,42,92,.04)!important}
.rc5-notification-item.unread{background:linear-gradient(135deg,#f0f8ff,#fff)!important}
.rc5-delete-icon{border-radius:50%!important}

/* Calls */
.call-overlay{background:radial-gradient(circle at 50% 22%,#173d72,#0a1f40 60%,#06142b)!important}
.call-header h2{font-size:24px!important}.call-header p{font-size:12px!important}
.voice-avatar{width:136px!important;height:136px!important;border:5px solid rgba(255,255,255,.15)!important;box-shadow:0 22px 55px rgba(0,0,0,.28)!important}
.call-control{width:62px!important;height:62px!important;box-shadow:0 10px 28px rgba(0,0,0,.2)!important}

@keyframes ofcPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}

@media(max-width:900px){
  .ofc-chat-shell{border-radius:0;border-left:0;border-right:0;min-height:calc(100vh - 144px);margin-left:-18px;margin-right:-18px;box-shadow:none}
  .ofc-chat-profile{grid-template-columns:42px 58px minmax(0,1fr);padding:13px 14px;gap:10px}
  .ofc-chat-peer-avatar{width:58px;height:58px}
  .ofc-chat-call-actions{grid-column:2/-1;width:100%;display:grid;grid-template-columns:1fr 1fr}
  .ofc-chat-call{justify-content:center;min-height:43px}
  .ofc-chat-messages{max-height:calc(100vh - 340px);padding:16px 14px 22px}
  .ofc-msg-stack{max-width:86%}
  .ofc-composer-wrap{padding:9px 10px 12px}
  .ofc-composer{grid-template-columns:40px minmax(0,1fr) 40px 40px 44px;gap:5px}
  .ofc-composer-btn{width:40px;height:40px}.ofc-send-btn{width:44px;height:44px}
  .ofc-message-input{min-height:44px;padding:11px 13px}
}

@media(max-width:580px){
  .content{padding-left:12px!important;padding-right:12px!important}
  .ofc-chat-shell{margin-left:-12px;margin-right:-12px}
  .ofc-chat-profile{grid-template-columns:38px 52px minmax(0,1fr)}
  .ofc-chat-back{width:38px;height:38px}.ofc-chat-peer-avatar{width:52px;height:52px}
  .ofc-chat-peer h2{font-size:17px}
  .ofc-chat-handle{font-size:10.5px}
  .ofc-chat-messages{max-height:calc(100vh - 330px)}
  .ofc-msg-avatar{width:31px;height:31px}
  .ofc-msg-row{grid-template-columns:31px minmax(0,1fr);gap:6px}
  .ofc-msg-bubble{font-size:13.5px;padding:10px 12px 8px}
  .ofc-composer{grid-template-columns:38px minmax(0,1fr) 38px 43px}
  .ofc-composer .ofc-translate-btn{display:none}
  .ofc-composer-btn{width:38px;height:38px}.ofc-send-btn{width:43px;height:43px}
}



/* =============================================================
   OneFamilyCircle RC5 Web Production Candidate — Final polish
   Android-aligned desktop/tablet/mobile experience
   ============================================================= */
:root{
  --ofc-prod-navy:#082d63;
  --ofc-prod-blue:#0d83e3;
  --ofc-prod-sky:#eaf6ff;
  --ofc-prod-mint:#dffaf1;
  --ofc-prod-coral:#ffe9ec;
  --ofc-prod-lav:#f0e9ff;
  --ofc-prod-line:#e4eaf3;
  --ofc-prod-muted:#71809a;
}
.desktop-brand small,.ofc-release-badge{display:none!important}
.desktop-brand{min-height:74px!important}
.desktop-nav-item{border:1px solid transparent!important;box-shadow:none!important;border-radius:18px!important;transition:.18s ease!important}
.desktop-nav-item.active{background:linear-gradient(135deg,#e8fff3,#edf7ff)!important;border-color:#cae9df!important;box-shadow:0 5px 18px rgba(8,54,94,.035)!important;outline:0!important}
.desktop-nav-item.active .side-icon{color:#0b72c8!important}
.desktop-nav-item:hover{background:#f6f9fc!important;border-color:#e8edf4!important}
.desktop-section-label{font-size:10px!important;letter-spacing:.13em!important;color:#75869c!important}
.top-header{background:rgba(255,255,255,.95)!important;backdrop-filter:blur(14px)}
#headerTitle{font-size:20px!important;font-weight:900!important;letter-spacing:-.35px!important}

/* Final AI layout — dense enough for desktop, still calm and simple. */
.ofc-prod-ai{max-width:1120px;margin:0 auto;padding:6px 0 24px}
.ofc-prod-ai-hero{text-align:center;padding:10px 16px 20px}
.ofc-prod-ai-brand{display:inline-flex;align-items:center;gap:9px;color:var(--ofc-prod-muted);font-size:12px;font-weight:850;margin-bottom:8px}
.ofc-prod-ai-brand img{width:34px;height:34px;object-fit:contain}
.ofc-prod-ai-hero h1{max-width:760px;margin:0 auto;color:var(--ofc-prod-navy);font-size:clamp(29px,3vw,44px);line-height:1.08;letter-spacing:-1.4px;font-weight:950}
.ofc-prod-ai-hero p{margin:11px auto 0;max-width:680px;color:var(--ofc-prod-muted);font-size:14px;line-height:1.55}
.ofc-prod-ai-categories{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:4px 0 18px}
.ofc-prod-ai-category{min-height:100px;border:1px solid var(--ofc-prod-line);border-radius:24px;background:#fff;padding:15px 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;color:var(--ofc-prod-navy);font:inherit;font-weight:900;box-shadow:0 8px 24px rgba(7,45,94,.045);cursor:pointer}
.ofc-prod-ai-category .icon-wrap{width:44px;height:44px;border-radius:15px;display:grid;place-items:center}
.ofc-prod-ai-category.travel .icon-wrap{background:#e9f5ff;color:#168ae5}
.ofc-prod-ai-category.sports .icon-wrap{background:#fff0e5;color:#f17d1d}
.ofc-prod-ai-category.stores .icon-wrap{background:#e7fbf3;color:#16aa82}
.ofc-prod-ai-category.plans .icon-wrap{background:#ffebee;color:#ef6171}
.ofc-prod-ai-category.translate .icon-wrap{background:#f1ebff;color:#7654dd}
.ofc-prod-ai-category svg{width:24px;height:24px}
.ofc-prod-ai-body{border:1px solid var(--ofc-prod-line);border-radius:28px;background:rgba(255,255,255,.9);box-shadow:0 14px 44px rgba(9,47,94,.055);overflow:hidden}
.ofc-prod-ai-suggestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:18px 18px 8px}
.ofc-prod-ai-suggestion{min-height:50px;text-align:left;padding:0 16px;border:1px solid #e5eaf2;border-radius:17px;background:#fff;color:#29405f;font:inherit;font-weight:800;cursor:pointer}
.ofc-prod-ai-messages{max-height:46vh;overflow:auto;padding:18px;display:flex;flex-direction:column;gap:12px}
.ofc-prod-ai-row{display:flex}.ofc-prod-ai-row.mine{justify-content:flex-end}
.ofc-prod-ai-bubble{max-width:76%;padding:13px 16px;border-radius:21px 21px 21px 8px;background:#f4f6fa;color:#203b62;line-height:1.52;white-space:pre-wrap}
.ofc-prod-ai-row.mine .ofc-prod-ai-bubble{background:linear-gradient(135deg,#dff1ff,#d8ecff);border-radius:21px 21px 8px 21px;color:#082d63}
.ofc-prod-ai-compose{display:grid;grid-template-columns:46px minmax(0,1fr) 48px;gap:9px;align-items:end;padding:13px;border-top:1px solid #edf1f6;background:#fff}
.ofc-prod-round{width:46px;height:46px;border:0;border-radius:50%;display:grid;place-items:center;background:#f2ecff;color:#744edb;cursor:pointer}
.ofc-prod-round.listening{background:#ffe9ec;color:#ed5265;animation:ofcPulse 1s infinite}
.ofc-prod-ai-input{min-height:46px;max-height:140px;resize:none;border:1px solid #dfe6f0;border-radius:23px;padding:12px 16px;outline:0;font:inherit;color:var(--ofc-prod-navy)}
.ofc-prod-ai-input:focus{border-color:#8fc9ef;box-shadow:0 0 0 4px rgba(13,131,227,.08)}
.ofc-prod-ai-send{width:48px;height:48px;border:0;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#158fe9,#0561c3);color:#fff;box-shadow:0 9px 22px rgba(5,99,194,.22);cursor:pointer}

/* Translator */
.ofc-translator-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-top:10px}
.ofc-translator-actions button{min-height:42px;border-radius:14px;border:1px solid #dfe6f0;background:#fff;color:var(--ofc-prod-navy);font-weight:850}
.ofc-translate-text-wrap{display:grid;grid-template-columns:44px minmax(0,1fr);gap:9px;align-items:start}
.ofc-translate-text-wrap textarea{width:100%}

/* Settings + feedback */
.ofc-settings-shell{max-width:860px;margin:0 auto}
.ofc-settings-section-title{margin:22px 4px 8px;color:#7a879b;font-size:10px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.setting-icon svg{width:21px;height:21px}
.ofc-feedback-choice{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
.ofc-feedback-card{border:1px solid #e1e7f0;border-radius:20px;background:#fff;padding:18px;text-align:left;color:var(--ofc-prod-navy);font:inherit;cursor:pointer}
.ofc-feedback-card strong{display:block;font-size:16px;margin-bottom:5px}.ofc-feedback-card span{display:block;color:#71809a;font-size:12px;line-height:1.45}
.ofc-feedback-card .feedback-icon{width:44px;height:44px;border-radius:15px;display:grid;place-items:center;margin-bottom:12px;background:#edf7ff;color:#117fcf}
.ofc-about-grid{display:grid;grid-template-columns:150px 1fr;gap:8px 14px;font-size:12px;margin-top:14px}.ofc-about-grid b{color:#71809a}.ofc-about-grid span{color:#18385f;font-weight:750}

/* Notification icons — same visual family as Android. */
.notification-icon{display:grid!important;place-items:center!important;color:#0c7ed0!important}.notification-icon svg{width:22px;height:22px}

/* Profile icon cleanup */
.rc5-camera-badge svg{width:20px;height:20px}.rc5-avatar-menu button{display:flex;align-items:center;gap:9px}.rc5-avatar-menu button svg{width:19px;height:19px;flex:0 0 auto}

/* Hide obsolete call privacy banner if old renderer ever flashes. */
.ofc41-call-note{display:none!important}

/* Stronger responsive parity. */
@media(max-width:1050px){.ofc-prod-ai-categories{grid-template-columns:repeat(5,1fr)}.ofc-prod-ai-category{min-height:86px;padding:12px 8px}}
@media(max-width:900px){
  .ofc-prod-ai{padding-bottom:82px}.ofc-prod-ai-categories{grid-template-columns:repeat(5,minmax(76px,1fr));overflow:auto;padding-bottom:4px}.ofc-prod-ai-category{min-width:82px}
  .ofc-prod-ai-hero h1{font-size:30px}.ofc-prod-ai-suggestions{grid-template-columns:1fr}.ofc-prod-ai-messages{max-height:none;min-height:260px}.ofc-prod-ai-bubble{max-width:88%}
  #headerTitle{font-size:18px!important}
}
@media(max-width:580px){
  .ofc-prod-ai-hero{padding-inline:4px}.ofc-prod-ai-hero h1{font-size:26px}.ofc-prod-ai-hero p{font-size:12.5px}
  .ofc-prod-ai-categories{margin-left:-2px;margin-right:-2px}.ofc-prod-ai-category{border-radius:20px;min-width:78px;font-size:11px}.ofc-prod-ai-category .icon-wrap{width:40px;height:40px}
  .ofc-prod-ai-body{border-radius:24px}.ofc-prod-ai-suggestions{padding:13px 13px 5px}.ofc-prod-ai-messages{padding:13px}.ofc-prod-ai-compose{grid-template-columns:42px minmax(0,1fr) 44px;padding:9px;gap:6px}.ofc-prod-round{width:42px;height:42px}.ofc-prod-ai-send{width:44px;height:44px}
  .ofc-feedback-choice{grid-template-columns:1fr}.ofc-translator-actions{grid-template-columns:1fr}.ofc-about-grid{grid-template-columns:110px 1fr}
}


/* RC5 production v2 — real browser camera capture */

.rc5-camera-panel{margin:14px 0 18px;padding:12px;border:1px solid rgba(18,56,105,.14);border-radius:22px;background:#f7fbff}
.rc5-camera-panel video{display:block;width:100%;max-height:420px;aspect-ratio:1/1;object-fit:cover;border-radius:18px;background:#07182f;transform:scaleX(-1)}
.rc5-camera-actions{display:flex;gap:10px;justify-content:center;margin-top:12px;flex-wrap:wrap}
.rc5-camera-status{margin:8px 4px 0;text-align:center;font-size:12px;color:var(--muted,#74819a)}
.rc5-avatar-menu button svg,.rc5-camera-badge svg,.rc5-camera-actions button svg{width:18px;height:18px;vertical-align:-3px;margin-right:7px}
.rc5-camera-badge svg{margin-right:0}


/* RC5.3 reliability + parity fixes */
.rc5-person-strip{height:112px;align-items:flex-start}
.rc5-person{width:82px;flex-basis:82px}
.rc5-person .person-avatar{width:58px;height:58px}
.ofc-person-name{display:block!important;margin-top:5px!important;font-size:10.5px!important;font-weight:850!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ofc-person-handle{display:block;margin-top:2px;color:#75829a;font-size:10.5px;font-weight:750;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:84px}
.rc5-avatar-menu-visible{display:grid!important;margin-top:12px}
.rc5-profile-status{margin:8px 0 2px;padding:9px 11px;border-radius:12px;background:#f4f7fb;color:#667085;font-size:11px;line-height:1.35}
.rc5-profile-status.error{background:#fff1f2;color:#b42318}
.rc5-profile-status.success{background:#ecfdf3;color:#027a48}
.rc5-camera-panel video{background:#0f172a;min-height:280px;object-fit:cover}
.ofc-prod-ai-row.thinking{justify-content:flex-start}
.ofc-ai-thinking{display:flex!important;align-items:center;gap:9px;color:#667085!important;background:#fff!important;border:1px solid #e7eaf0!important;min-width:154px}
.ofc-thinking-mark{width:22px;height:22px;display:grid;place-items:center;color:#7750d8}
.ofc-thinking-mark .ofc-premium-icon{width:19px;height:19px}
.ofc-thinking-dots{display:inline-flex;gap:3px;align-items:center;margin-left:2px}
.ofc-thinking-dots i{width:5px;height:5px;border-radius:50%;background:#7c8aa5;animation:ofcThinkingDot 1.05s infinite ease-in-out}
.ofc-thinking-dots i:nth-child(2){animation-delay:.15s}.ofc-thinking-dots i:nth-child(3){animation-delay:.3s}
@keyframes ofcThinkingDot{0%,60%,100%{transform:translateY(0);opacity:.35}30%{transform:translateY(-4px);opacity:1}}
@media(max-width:700px){.rc5-person-strip{height:108px}.rc5-person{width:74px;flex-basis:74px}.rc5-camera-panel video{min-height:220px}}


/* RC5.4 AI reliability + invite parity */
.ofc-prod-ai-category{transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease}
.ofc-prod-ai-category:hover{transform:translateY(-2px);border-color:#cbdced;box-shadow:0 12px 28px rgba(7,45,94,.08)}
.ofc-prod-ai-category.active{border-color:#88bff0;box-shadow:0 0 0 3px rgba(28,139,226,.08),0 12px 28px rgba(7,45,94,.08)}
.ofc-prod-ai-category[aria-busy="true"]{cursor:progress}
.ofc-prod-ai-send:disabled{opacity:.55;cursor:wait}
.ofc-ai-status{min-height:0;padding:0 18px;color:#76839a;font-size:12px;font-weight:750;transition:.18s ease}
.ofc-ai-status.active{min-height:28px;padding:5px 18px 0}
.ofc-ai-thinking{display:flex;align-items:center;gap:8px;background:#f4f0ff!important;color:#5d44a5!important}
.ofc-thinking-mark svg{width:18px;height:18px}.ofc-thinking-dots{display:inline-flex;gap:3px;align-items:center}
.ofc-thinking-dots i{width:5px;height:5px;border-radius:50%;background:currentColor;animation:ofcThink 1.15s infinite ease-in-out}.ofc-thinking-dots i:nth-child(2){animation-delay:.14s}.ofc-thinking-dots i:nth-child(3){animation-delay:.28s}
@keyframes ofcThink{0%,70%,100%{opacity:.3;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}
.ofc-prod-ai-row.error .ofc-prod-ai-bubble{background:#fff5f5;color:#8e3c49;border:1px solid #f4d5da}
.ofc-ai-retry{display:block;margin-top:9px;border:1px solid #e9bdc4;border-radius:11px;background:#fff;padding:7px 11px;color:#8e3c49;font-weight:850;cursor:pointer}

.ofc-invite-chooser,.ofc-invite-page{max-width:1000px;margin:0 auto}
.ofc-invite-kind-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.ofc-invite-kind{min-height:150px;border:1px solid #e0e7f0;border-radius:26px;background:#fff;padding:24px;text-align:left;display:grid;grid-template-columns:54px 1fr;grid-template-rows:auto auto;column-gap:16px;align-items:center;color:#0a3268;cursor:pointer;box-shadow:0 10px 30px rgba(6,43,91,.05)}
.ofc-invite-kind>span{grid-row:1/3;width:54px;height:54px;border-radius:18px;display:grid;place-items:center}.ofc-invite-kind.family>span{background:#fff0f2;color:#f35e6d}.ofc-invite-kind.friend>span{background:#eaf6ff;color:#198cdd}.ofc-invite-kind svg{width:27px;height:27px}.ofc-invite-kind strong{font-size:21px}.ofc-invite-kind small{color:#7c879a;font-size:13px}
.ofc-direct-invite{border:1px solid #dfd6f7;border-radius:28px;background:linear-gradient(145deg,#faf7ff,#f2ecff);padding:24px;box-shadow:0 12px 36px rgba(88,64,150,.06)}
.ofc-direct-invite-head{display:flex;gap:15px;align-items:flex-start}.ofc-at-mark{font-size:38px;font-weight:850;color:#3a315f;line-height:1}.ofc-direct-invite-head h2{margin:0 0 6px;color:#142f5c;font-size:25px}.ofc-direct-invite-head p{margin:0;color:#69758b;line-height:1.55}
.ofc-nickname-search{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:9px;align-items:center;margin-top:20px}.ofc-nickname-search>span{height:52px;border:1px solid #dcd7eb;border-right:0;border-radius:16px 0 0 16px;margin-right:-9px;background:#fff;display:grid;place-items:center;font-size:25px;font-weight:850;color:#253e68}.ofc-nickname-search input{height:52px;border:1px solid #dcd7eb;border-left:0;border-radius:0 16px 16px 0;padding:0 14px 0 2px;background:#fff;color:#0a3268;font:inherit;font-size:17px;font-weight:750;outline:0}.ofc-nickname-search input:focus{box-shadow:0 0 0 4px rgba(113,78,214,.08)}
.ofc-find-send{height:52px;border:0;border-radius:16px;padding:0 20px;background:linear-gradient(135deg,#825ce4,#6447ca);color:#fff;font:inherit;font-weight:900;display:flex;align-items:center;gap:9px;cursor:pointer;box-shadow:0 8px 20px rgba(101,70,201,.18)}.ofc-find-send svg{width:20px;height:20px}.ofc-find-send:disabled{opacity:.6;cursor:wait}
.ofc-invite-status{margin-top:13px;border-radius:14px;background:#fff;padding:11px 13px;color:#627087;font-weight:750;font-size:13px}.ofc-invite-status.error{background:#fff3f4;color:#9d4250}.ofc-invite-status.success{background:#ebfaf4;color:#16745e}
.ofc-invite-preview{margin-top:15px;border:1px solid #ded9ec;border-radius:20px;background:#fff;padding:15px;display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:14px;align-items:center}.ofc-invite-preview-avatar{width:58px;height:58px;border-radius:50%;background:#efe9ff center/cover no-repeat;display:grid;place-items:center;color:#664bb6;font-weight:900;font-size:18px}.ofc-invite-preview-copy{display:flex;flex-direction:column;min-width:0}.ofc-invite-preview-copy strong{font-size:17px;color:#112f61}.ofc-invite-preview-copy span{font-size:13px;font-weight:800;color:#6b52b4}.ofc-invite-preview-copy small{margin-top:2px;color:#7c879a}.ofc-invite-preview .primary-button{min-height:44px}.ofc-invite-preview .primary-button.sent{background:#1ba47e}
.ofc-link-invite{margin-top:16px;border:1px solid #e2e8ef;border-radius:24px;background:#fff;padding:20px}.ofc-link-invite-head{display:flex;gap:12px;align-items:flex-start;margin-bottom:14px}.ofc-link-invite-head>span{width:42px;height:42px;border-radius:14px;background:#e9f5ff;color:#168ae5;display:grid;place-items:center}.ofc-link-invite-head svg{width:22px;height:22px}.ofc-link-invite h3{margin:0 0 4px;color:#143462}.ofc-link-invite p{margin:0;color:#778399}.ofc-link-result{margin-top:14px}.ofc-link-result .invite-link{margin:9px 0;word-break:break-all}

/* Translator and category rows stay perfectly aligned. */
.ofc-translator-actions{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}.ofc-translator-actions button{width:100%;display:flex;align-items:center;justify-content:center;gap:7px}.ofc-translate-text-wrap{display:grid;grid-template-columns:46px minmax(0,1fr);gap:8px;align-items:start}.ofc-translate-text-wrap textarea{width:100%;min-height:132px;box-sizing:border-box}
@media(max-width:760px){.ofc-invite-kind-grid{grid-template-columns:1fr}.ofc-nickname-search{grid-template-columns:42px minmax(0,1fr)}.ofc-find-send{grid-column:1/-1;justify-content:center}.ofc-invite-preview{grid-template-columns:52px minmax(0,1fr)}.ofc-invite-preview .primary-button{grid-column:1/-1}.ofc-translator-actions{grid-template-columns:1fr}}


/* =============================================================
   RC5.4.2 — Relationship management / remove / block
   ============================================================= */
.ofc-person-shell{position:relative;width:84px;min-width:84px;display:flex;justify-content:center;align-items:flex-start}
.ofc-person-shell .rc5-person{margin:0}
.ofc-person-more{position:absolute;right:1px;top:-2px;width:27px;height:27px;border-radius:50%;border:2px solid #fff;background:#f3f6fb;color:#53647e;display:grid;place-items:center;font-size:12px;font-weight:950;line-height:1;letter-spacing:-1px;box-shadow:0 5px 14px rgba(7,43,87,.12);cursor:pointer;z-index:3}
.ofc-person-more:hover{background:#eaf4ff;color:#0c75c7;transform:translateY(-1px)}
.ofc-person-shell.self .ofc-person-more,.ofc-person-shell.add-shell .ofc-person-more{display:none}

.ofc-rel-profile{display:grid;grid-template-columns:76px minmax(0,1fr);gap:16px;align-items:center;margin:4px 0 18px}
.ofc-rel-avatar{width:76px;height:76px;border-radius:50%;display:grid;place-items:center;background:#eef2ff center/cover no-repeat;color:#674db4;font-weight:950;font-size:22px;box-shadow:0 9px 26px rgba(8,42,92,.1)}
.ofc-rel-profile h2{margin:0;color:#0b3267;font-size:22px}.ofc-rel-profile p{margin:3px 0 0;color:#6d55b6;font-weight:850}.ofc-rel-profile small{display:block;margin-top:4px;color:#7d899c;font-weight:750}
.ofc-rel-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:8px 0 18px}
.ofc-rel-actions button{min-height:72px;border:1px solid #e2e8f1;border-radius:18px;background:#fff;color:#0b3267;font:inherit;font-weight:850;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;cursor:pointer}
.ofc-rel-actions button:hover{background:#f7fbff;border-color:#cbdced}.ofc-rel-actions svg{width:22px;height:22px;color:#147fd4}
.ofc-rel-danger-zone{border-top:1px solid #edf0f5;padding-top:10px;display:grid;gap:7px}
.ofc-rel-row{width:100%;min-height:62px;border:0;border-radius:17px;background:#fff;padding:11px 13px;text-align:left;display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;align-items:center;font:inherit;cursor:pointer}
.ofc-rel-row svg{width:21px;height:21px}.ofc-rel-row span{display:flex;flex-direction:column}.ofc-rel-row strong{font-size:14px}.ofc-rel-row small{margin-top:2px;color:#8a93a3;font-size:11px;font-weight:650}
.ofc-rel-row.danger{color:#b42318;background:#fff7f7;border:1px solid #f4dddd}.ofc-rel-row.danger:hover{background:#fff0f0;border-color:#ecc9c9}
.ofc-rel-owner-note{padding:11px 13px;border-radius:14px;background:#f5f7fa;color:#69758a;font-size:12px;line-height:1.45}
.ofc-rel-confirm{text-align:center;padding:4px 0}.ofc-rel-confirm-icon{width:54px;height:54px;border-radius:18px;background:#eef6ff;color:#147fd4;display:grid;place-items:center;margin:0 auto 12px}.ofc-rel-confirm-icon.danger{background:#fff0f0;color:#c9362b}.ofc-rel-confirm-icon svg{width:26px;height:26px}.ofc-rel-confirm h2{margin:0 0 8px;color:#0b3267}.ofc-rel-confirm p{margin:0 auto 18px;color:#69758a;line-height:1.55;max-width:520px}.ofc-rel-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.ofc-danger-action{min-height:46px;border:0;border-radius:14px;background:#c9362b;color:#fff;font:inherit;font-weight:900;cursor:pointer}.ofc-danger-action:disabled{opacity:.55;cursor:wait}

.ofc-blocked-list{margin-top:14px;display:grid;gap:9px}.ofc-blocked-loading{padding:18px;border-radius:16px;background:#f6f8fb;color:#748198;text-align:center}
.ofc-blocked-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:11px;align-items:center;border:1px solid #e3e8f1;border-radius:17px;padding:10px;background:#fff}
.ofc-blocked-avatar{width:48px;height:48px;border-radius:50%;background:#eef2ff center/cover no-repeat;display:grid;place-items:center;color:#674db4;font-weight:900}
.ofc-blocked-copy{display:flex;flex-direction:column;min-width:0}.ofc-blocked-copy strong{color:#0b3267;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ofc-blocked-copy span{font-size:12px;color:#7256bb;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ofc-unblock-btn{min-height:38px;border:1px solid #dbe5ef;border-radius:12px;background:#fff;color:#176fae;font-weight:850;display:flex;align-items:center;gap:6px;padding:0 11px;cursor:pointer}.ofc-unblock-btn svg{width:17px;height:17px}.ofc-unblock-btn:disabled{opacity:.55}
.ofc-blocked-empty{padding:24px;border:1px dashed #dbe3ed;border-radius:18px;background:#fafcff;display:flex;flex-direction:column;align-items:center;text-align:center;color:#748198}.ofc-blocked-empty svg{width:28px;height:28px;color:#3c8ed1;margin-bottom:8px}.ofc-blocked-empty strong{color:#173b69;margin-bottom:3px}.ofc-unblock-note{margin:10px 2px 0;color:#7a8698;font-size:11.5px;line-height:1.5}

@media(max-width:580px){
  .ofc-person-shell{width:76px;min-width:76px}.ofc-person-more{right:-1px;top:-3px}
  .ofc-rel-actions{grid-template-columns:1fr 1fr 1fr}.ofc-rel-actions button{min-height:66px;font-size:11px}
  .ofc-rel-confirm-actions{grid-template-columns:1fr}.ofc-blocked-row{grid-template-columns:44px minmax(0,1fr)}.ofc-unblock-btn{grid-column:1/-1;justify-content:center}
}
