@font-face{font-family:"Archivo Black";src:url(/static/ArchivoBlack.woff2) format("woff2");font-display:swap}
*{box-sizing:border-box}
body{margin:0;background:#fff;color:#333;font:12px/1.4 "Lucida Grande",Tahoma,Verdana,Arial,sans-serif}
a{color:#3b5998;text-decoration:none}
a:hover{text-decoration:underline}
button,input,textarea,select{font:inherit;border-radius:0}
[hidden]{display:none!important}

/* top bar */
.bar{background:#3b5998;border-bottom:1px solid #29447e}
.bar .in{max-width:980px;margin:0 auto;padding:0 10px;display:flex;flex-wrap:wrap;align-items:center;gap:0 18px;min-height:40px}
.bar a{color:#fff;font-weight:bold;padding:12px 0}
.bar .nb{display:flex;align-items:center}
.bar a.logo{font:400 28px/1 "Archivo Black","Arial Black",Impact,sans-serif;letter-spacing:-1.5px;margin-right:10px;padding:0}
.bar .sp{flex:1}
.bar form{margin:0}
.bar input{width:150px;padding:3px 5px;border:1px solid #1d4088}
.bar button{background:none;border:0;color:#fff;cursor:pointer;padding:12px 0}

/* layout */
.page{max-width:980px;margin:0 auto;padding:10px 10px 14px;display:flex;flex-wrap:wrap;gap:14px;align-items:flex-start}
.page.block{display:block}
.left{flex:0 1 160px;min-width:140px}
.mid{flex:3 1 440px;min-width:0}
.mid.narrow{max-width:640px}
.right{flex:1 1 190px;min-width:170px;max-width:100%}
.foot{max-width:980px;margin:0 auto;padding:10px;border-top:1px solid #ccc;display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;color:#666;font-size:11px}
.banner{background:#ffebe8;border-bottom:1px solid #dd3c10;padding:8px 10px;color:#333}
.banner .in{max-width:980px;margin:0 auto;display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center}

/* left nav */
.nav a{display:flex;align-items:center;gap:7px;padding:4px 6px;font-weight:bold;border-top:1px solid transparent;border-bottom:1px solid transparent}
.nav a.on{background:#d8dfea;border-color:#b0bcd6}
.nav i{width:12px;height:12px;background:#8b97b5;display:block;flex:none}
.nav a.on i{background:#3b5998}
.nav .n{margin-left:auto;color:#fff;background:#d8271c;padding:0 4px;font-size:10px}
.syncinfo{margin-top:12px;padding:6px;border-top:1px solid #ccc;color:#666;font-size:11px}
.left .ptitle{display:none}

/* buttons, status */
.btn{font-size:11px;font-weight:bold;background:#5b74a8;color:#fff;border:1px solid #29447e;padding:4px 12px;min-height:26px;cursor:pointer}
.btn:disabled{opacity:.6;cursor:default}
a.btn{display:inline-block;line-height:16px;color:#fff;text-decoration:none}
.btn.grey{background:#eceff5;color:#333;border-color:#999}
.status{font-size:11px;color:#666;min-height:1.4em;margin-top:4px}
.err{color:#dd3c10}
.ok{color:#3b7a20}

/* home */
.syncbox{border:1px solid #ccc;border-top:2px solid #3b5998;padding:6px 10px;margin-bottom:8px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.syncbox b{font-size:13px}
.note{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;background:#fff9d7;border:1px solid #e2c822;padding:6px 10px;margin-bottom:4px}
.note .t{flex:1 1 160px;min-width:0;white-space:pre-wrap}
.note .m{color:#666;font-size:11px}
.feedhead{display:flex;align-items:baseline;justify-content:space-between;gap:10px;border-bottom:1px solid #ccc;padding:10px 0 4px}
.feedhead b{font-size:14px}
.feedhead span{font-size:11px}
.feedhead.tight{padding-top:4px}
.feedhead.tight b{font-size:18px}
.day{background:#ebeef4;border-bottom:1px solid #ccc;padding:3px 8px;font-weight:bold;font-size:11px;margin-top:8px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:12px 10px;padding:10px 2px}
.tile{min-width:0}
.thumb{display:block;aspect-ratio:9/16;background:#6d7da1;position:relative;border:1px solid #29447e;overflow:hidden}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.thumb .play{position:absolute;left:50%;top:50%;margin:-11px 0 0 -8px;width:0;height:0;border-left:18px solid #fff;border-top:11px solid transparent;border-bottom:11px solid transparent;opacity:.9;filter:drop-shadow(0 0 2px #000)}
.thumb .new{position:absolute;left:0;top:0;background:#d8271c;color:#fff;font-size:10px;font-weight:bold;padding:1px 5px}
.tile .c{margin-top:4px;font-weight:bold;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tile .s{color:#666;font-size:11px}
.more{padding:4px;background:#ebeef4;border:1px solid #ccc;text-align:center;color:#666}
.empty{padding:24px 8px;color:#666;text-align:center}

/* boxes, avatars */
.box{border:1px solid #ccc;margin-bottom:8px}
.box h3{margin:0;background:#d8dfea;border-bottom:1px solid #b0bcd6;padding:4px 8px;font-size:12px;color:#3b5998;display:flex;justify-content:space-between}
.box .b{padding:8px;color:#666}
.box .b.pad{line-height:1.7}
.box .f{padding:6px 8px 8px;display:flex;flex-direction:column;gap:6px}
.box .f a{display:flex;align-items:center;gap:8px}
.box .f .cnt{color:#666}
.av{display:block;flex:none;width:36px;height:36px;background:#b9c2d6;object-fit:cover}
.av.s28{width:28px;height:28px}
.av.s32{width:32px;height:32px}
.av.s22{width:22px;height:22px}
.av.big{width:100px;height:100px}

/* your own profile box, top of the left column */
.me{margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid #ccc;word-break:break-word}
.me .nm{font-weight:bold;font-size:13px;margin-top:6px}
.me .lk{margin-top:4px;font-size:11px}

/* reel page */

/* inbox */
.split{position:relative;display:inline-flex}
.split > .btn:first-child{border-right:0;padding-right:8px}
.split .caret{padding:4px 6px;border-left:1px solid #8b9dc3;display:inline-flex;align-items:center}
.split .caret::after{content:"";border:4px solid transparent;border-top-color:#fff;border-bottom:0}
.split .menu{position:absolute;right:0;top:100%;margin-top:2px;background:#fff;border:1px solid #777;box-shadow:0 2px 4px rgba(0,0,0,.25);z-index:5;min-width:100%}
.split .menu[hidden]{display:none}
.split .menu button{display:block;width:100%;white-space:nowrap;text-align:left;font:inherit;font-size:11px;background:none;border:0;padding:5px 12px;color:#333;cursor:pointer}
.split .menu button:hover,.split .menu button:focus{background:#3b5998;color:#fff}

/* chat bar: tabs along the bottom of every page, drawn like the side boxes (pale blue headers, blue top edge) */
body{padding-bottom:34px}
.chatbar{position:fixed;left:0;right:0;bottom:0;display:flex;justify-content:flex-end;align-items:flex-end;gap:4px;z-index:20;padding:0 10px;pointer-events:none}
.chatbar .tabs{display:flex;align-items:flex-end;gap:4px;min-width:0}
.ctab{position:relative;display:flex;pointer-events:auto}
.ctab > .lbl{display:flex;align-items:center;gap:6px;max-width:180px;height:30px;background:#d8dfea;border:1px solid #b0bcd6;border-bottom:0;padding:0 8px;font-weight:bold;font-size:12px;color:#3b5998;cursor:pointer;white-space:nowrap;box-shadow:0 -1px 3px rgba(0,0,0,.12)}
.ctab > .lbl span{overflow:hidden;text-overflow:ellipsis}
.ctab > .lbl .tav{display:none}
.ctab > .lbl:hover{background:#eceff5}
.clist > .lbl{padding:0 14px;font-size:14px}
.ctab.on > .lbl{background:#fff;border-color:#ccc}
.ctab.new > .lbl{background:#fff9d7;border-color:#e2c822;color:#333}
.ctab > .lbl .x{color:#8b97b5;font-weight:normal;padding:0 2px}
.ctab > .lbl .x:hover{color:#3b5998}
.chatbar .dot{width:9px;height:9px;background:#8b97b5;display:block;flex:none}
.chatbar .dot.req{background:#e2c822}
.chatbar .n{margin-left:auto;color:#fff;background:#d8271c;padding:0 4px;font-size:10px;font-weight:bold}
.cwin{position:absolute;right:0;bottom:30px;width:262px;height:340px;background:#fff;border:1px solid #999;box-shadow:0 -1px 4px rgba(0,0,0,.18);display:flex;flex-direction:column}
.ctab:not(.on) > .cwin{display:none}
.cwin .hd{background:#6d84b4;border:1px solid #3b5998;margin:-1px -1px 0;color:#fff;display:flex;gap:6px;padding:4px 5px;align-items:flex-start;cursor:pointer}
.cwin .hd .nm{flex:1;min-width:0;font-weight:bold}
.cwin .hd .nm small{display:block;font-weight:normal;font-size:11px;color:#fff;opacity:.9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cwin .hd button{background:none;border:0;color:#fff;font-weight:bold;cursor:pointer;padding:0 6px;line-height:20px;font-size:15px;min-width:24px}
.cwin .hd button:hover{background:#5b74a8}
.cwin .bd{flex:1;overflow-y:auto;padding:0 6px 4px}
.cwin .grp{border-top:1px solid #e5e5e5;padding:4px 0 2px}
.cwin .grp:first-child{border-top:0}
.cwin .grp .who{display:flex;justify-content:space-between;gap:6px;font-weight:bold;color:#3b5998}
.cwin .grp .who span{color:#999;font-weight:normal;font-size:10px}
.cwin .ln{white-space:pre-wrap;overflow-wrap:anywhere;margin:1px 0}
.cwin .ln.pending{color:#999}
.cwin .ln.failed{color:#dd3c10}
.cwin .shot{display:block;position:relative;padding:0;border:1px solid #b0bcd6;background:#6d7da1;cursor:zoom-in;margin:3px 0;max-width:150px}
.cwin .shot img{display:block;width:100%;max-height:200px;object-fit:cover}
.cwin .shot .play{position:absolute;left:50%;top:50%;width:30px;height:30px;margin:-15px 0 0 -15px;background:rgba(0,0,0,.55);border-radius:50%}
.cwin .shot .play::after{content:"";position:absolute;left:12px;top:8px;border:7px solid transparent;border-left:10px solid #fff;border-right:0}
.cwin .shot small{display:block;background:#f7f7f7;color:#333;text-align:left;padding:2px 4px;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cwin .miss{color:#666;font-size:11px}
.cwin .empty{color:#999;padding:10px 0}
.cwin .ask{background:#fff9d7;border-top:1px solid #e2c822;padding:6px;font-size:11px;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.cwin .ask > span:first-child{flex:1 1 100%}
.cwin .ask .err{display:block;margin-top:2px}
.cwin .ask .split .menu{top:auto;bottom:100%;margin:0 0 2px}
.cwin .ft{border-top:1px solid #ccc}
.cwin textarea{display:block;width:100%;height:42px;border:0;padding:4px 6px;resize:none;font-size:11px}
.cwin textarea:focus{outline:1px solid #6d84b4;outline-offset:-1px}
.cwin .ft .status{margin:0;padding:0 6px;min-height:0}
.clist .bd{padding:0}
.clist .sec2{background:#eceff5;border-bottom:1px solid #d8dfea;padding:2px 6px;font-weight:bold;font-size:11px;color:#666}
.clist .fr{display:flex;gap:6px;align-items:center;width:100%;padding:4px 6px;background:none;border:0;border-bottom:1px solid #f0f0f0;text-align:left;cursor:pointer;color:#333}
.clist .fr:hover{background:#eceff5}
.clist .fr .t{flex:1;min-width:0}
.clist .fr .t b{display:block;color:#3b5998}
.clist .fr .t small{display:block;color:#666;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.clist .fr.unread{background:#eff2f7}
.clist .fr.unread .t small{color:#333;font-weight:bold}
.clist .fr .dot{background:#4ab541;border:1px solid #3a9a32;width:7px;height:7px}
.clist .fr .dot.req{background:#f0c330;border-color:#c99d14}
.clist .tools{display:flex;justify-content:flex-end;padding:3px 6px;border-bottom:1px solid #e5e5e5;font-size:11px}
.clist .tools button{background:none;border:0;color:#3b5998;cursor:pointer;padding:0;font-size:11px}
.clist .tools button:hover{text-decoration:underline}
.cwin .send{display:none}
.bar .ic{display:none;width:24px;height:24px;fill:#fff}
@media (max-width:600px){
  .chatbar{padding:0 4px}
  .ctab > .lbl{max-width:110px;height:38px}
  .clist > .lbl{padding:0 16px;font-size:15px}
  .cwin{position:fixed;left:8px;right:8px;width:auto;bottom:38px;height:min(420px,70vh)}
  .cwin .ft{display:flex;flex-wrap:wrap;gap:6px;padding:6px;align-items:stretch}
  .cwin .ft textarea{flex:1;min-width:0;height:44px;border:1px solid #bdc7d8;font-size:14px}
  .cwin .send{display:block;flex:none;padding:0 14px}
  .cwin .ft .status{flex:1 1 100%;padding:0}
  .bar .in{flex-wrap:nowrap;gap:0 12px}
  .bar .sp{display:none}
  .bar form{flex:1;min-width:0}
  .bar input{width:100%}
  .bar a.logo{font-size:24px;margin-right:0}
  .bar .nb .ic{display:block}
  .bar .nb span{display:none}
  .bar .nb{padding:8px 4px}
  .grid{grid-template-columns:repeat(auto-fill,minmax(128px,170px));justify-content:center}
  .bar .nb.home{display:none}        /* the fisher title is the way home */
  .chatbar.pics .ctab:not(.clist) > .lbl .tav{display:block;width:28px;height:28px}
  .chatbar.pics .ctab:not(.clist) > .lbl span{display:none}
  .chatbar.pics .ctab:not(.clist) > .lbl{padding:0 6px}
  .chatbar.pics .ctab:not(.clist) > .lbl .dot{display:none}   /* the picture says who it is */
  .ctab > .lbl .x{font-size:22px;line-height:1;padding:0 4px 2px;min-width:28px;text-align:center}
  .syncinfo{display:none}            /* the footer already says when fisher last checked */
  /* the profile column becomes a "Profile" box at the bottom, under Friends */
  .mid{order:1}
  .right{order:2}
  .left{order:3;flex:1 1 100%;border:1px solid #ccc}
  .left .ptitle{display:block;margin:0;background:#d8dfea;border-bottom:1px solid #b0bcd6;padding:4px 8px;font-size:12px;color:#3b5998}
  .left .me{display:grid;grid-template-columns:64px 1fr;column-gap:10px;align-items:center;margin:0;padding:8px}
  .left .me > a:first-child{grid-row:span 3}
  .left .me .av.big{width:64px;height:64px}
  .left .me .nm{margin:0}
  .left .nav{padding:4px 8px 8px}
  .left .nav a{padding:8px 6px}
  /* chat windows nearly full height, with bigger text and buttons */
  .cwin{height:calc(100vh - 100px);height:calc(100dvh - 100px)}
  .cwin{font-size:14px}
  .cwin .grp .who span,.cwin .shot small,.clist .fr .t small{font-size:12px}
  .cwin .shot{max-width:200px}
  .cwin .hd button{font-size:20px;min-width:34px;line-height:28px}
  .cwin .hd .nm small{font-size:12px}
  .clist .fr{padding:7px 8px}
  .clist .tools button{font-size:13px;padding:4px 0}
}

/* lightbox: a photo or reel shown big over a darkened page */
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.78);z-index:50;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px;cursor:zoom-out}
.lightbox .frame{background:#fff;border:1px solid #29447e;padding:8px;cursor:default;max-width:100%;display:flex;flex-direction:column;gap:6px}
.lightbox img,.lightbox video{display:block;height:calc(100vh - 110px);width:auto;max-width:min(calc(100vw - 52px),1000px);object-fit:contain;margin:0 auto;background:#000}
.lightbox .cap{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#666;max-height:none}
.lightbox .close{position:fixed;top:10px;right:14px;background:none;border:0;color:#fff;font-size:26px;line-height:1;cursor:pointer}

/* settings, login */
.form{max-width:420px}
.form label{display:block;margin:10px 0 3px;font-weight:bold;color:#666;font-size:11px}
.form input,.form select{width:100%;padding:5px 6px;border:1px solid #bdc7d8}
.form .row2{display:flex;gap:10px}
.form .row2>div{flex:1}
.form .help{color:#666;font-size:11px;margin-top:2px}
.form .check{display:flex;align-items:center;gap:6px;font-weight:normal;color:#333;font-size:12px}
.form .check input{width:auto}
.form .go{margin-top:12px}
.form p{margin:6px 0 10px}
table.log{border-collapse:collapse;width:100%;font-size:11px}
table.log th{text-align:left;background:#d8dfea;color:#3b5998;padding:3px 6px;border-bottom:1px solid #b0bcd6}
table.log td{padding:3px 6px;border-bottom:1px solid #e5e5e5}
.tablewrap{overflow-x:auto}
.login-wrap{max-width:520px;margin:40px auto;padding:0 10px}
.login-box{border:1px solid #bdc7d8;border-top:2px solid #3b5998}
.login-box h2{margin:0;background:#d8dfea;border-bottom:1px solid #b0bcd6;padding:6px 10px;font-size:13px;color:#3b5998}
.login-box .body{padding:14px 16px}
.login-box .intro{margin:0 0 6px;color:#333}
.login-wrap .big{font:400 44px/1 "Archivo Black","Arial Black",Impact,sans-serif;letter-spacing:-2px;color:#3b5998;margin:0 0 18px}

/* everything 30% bigger on a computer screen (phones already fit); the lightbox fills the screen on its own */
@media (min-width:700px){
  .bar,.banner,body > .page,.foot,.chatbar,.login-wrap{zoom:1.3}   /* outer boxes only: zoom inside zoom multiplies */
  body{padding-bottom:48px}
}
