/* Selected reference layout, without account switching or the add-account row. */
body #flight-settings-dialog{width:1104px;background:#f5f7fb;border-radius:12px}
#flight-settings-dialog .flight-settings-head{padding:12px 22px;background:#fff;border-bottom:1px solid #e8edf4}
#flight-settings-dialog .flight-connection-footer{padding:10px 22px;background:#fff;border-top:1px solid #e8edf4}
#flight-settings-dialog .telegram-body{padding:20px;gap:14px}
#flight-settings-dialog .tg-rain-layout{--tg-line:#e8edf4;--tg-soft:#f8f9fb;--tg-muted:#6e7c90;color:var(--skin-text,#202b3e)}
.tg-rain-layout .tg-binding-heading{margin:0 0 12px;min-height:26px}
.tg-rain-layout .telegram-heading h3{font-size:16px;line-height:26px;font-weight:600}
.tg-rain-layout .tg-binding-heading h3{font-size:18px;color:#20324e}
.tg-rain-layout .form-error:not([hidden]){margin:0 0 12px;padding:10px 12px;background:#fff3f3;border-radius:6px}
.tg-rain-layout .tg-profile-card{display:flex;align-items:flex-start;gap:16px;padding:18px 16px;min-height:196px;background:#fff;border:1px solid var(--tg-line);border-radius:17px;box-shadow:0 1px 2px #233a5a06}
.tg-rain-layout .tg-profile-avatar{display:grid;place-items:center;flex:none;width:72px;height:72px;border:1px solid #dae7ff;border-radius:50%;background:#eaf1ff;color:var(--primary);font-size:30px;font-weight:500;object-fit:cover}
.tg-rain-layout .telegram-identity{flex:1;min-width:0;display:block;padding:0}
.tg-rain-layout .tg-profile-name{display:flex;gap:9px;align-items:center;min-height:28px;flex-wrap:wrap}
.tg-rain-layout .tg-profile-name>strong{font-size:18px;line-height:26px;overflow-wrap:anywhere}
.tg-rain-layout .tg-profile-name .tg-bound{padding:1px 7px;border:1px solid #d8dce2;border-radius:4px;background:#fafafa;font-size:12px;line-height:18px;color:#333;white-space:nowrap}
.tg-rain-layout .tg-refresh,.tg-rain-layout .tg-disconnect{min-height:32px;padding:4px 8px;border:0;border-radius:4px;background:transparent;font-size:13px;line-height:24px}
.tg-rain-layout .tg-refresh{display:inline-flex;align-items:center;justify-content:center;gap:6px;margin-left:8px}
.tg-rain-layout .tg-refresh svg{width:16px;height:16px;flex:none}
.tg-rain-layout .tg-disconnect{margin-left:auto}
.tg-rain-layout .tg-refresh:hover{background:#f0f4fb;color:var(--primary)}
.tg-rain-layout .tg-disconnect,.tg-rain-layout .telegram-target [data-telegram-remove],.tg-rain-layout [data-telegram="disconnect"]{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:4px 14px;border:1px solid var(--primary);border-radius:5px;background:var(--primary);color:#fff;font-size:13px;line-height:22px;text-decoration:none}
.tg-rain-layout :is(.tg-disconnect,[data-telegram-remove],[data-telegram="disconnect"]):hover{background:var(--primary-dark);border-color:var(--primary-dark);color:#fff;text-decoration:none}
.tg-rain-layout .tg-username{font-size:13px;line-height:20px;color:var(--tg-muted);overflow-wrap:anywhere;margin-top:1px}
.tg-rain-layout .tg-username span{font-size:13px;color:var(--primary)}
.tg-rain-layout .tg-metadata{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px;row-gap:12px;margin:16px 0 0}
.tg-rain-layout .tg-metadata dt{font-size:12px;line-height:16px;color:#647b9c;margin:0 0 6px}
.tg-rain-layout .tg-metadata dd{font-size:14px;line-height:19px;font-variant-numeric:tabular-nums;margin:0;overflow-wrap:anywhere}
.tg-rain-layout .tg-windows-card{padding:18px 20px 20px;border:1px solid var(--tg-line);border-radius:17px;background:#fff;box-shadow:0 1px 2px #233a5a06}
.tg-rain-layout .tg-window-description{font-size:13px;line-height:21px;margin:4px 0 12px;color:var(--tg-muted)}
.tg-rain-layout .tg-search-panel{display:block;margin:0;padding:14px;background:var(--tg-soft);border:1px solid var(--tg-line);border-radius:14px}
.tg-rain-layout .tg-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;border:0;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.tg-rain-layout .tg-search-box{display:flex;flex-wrap:nowrap;gap:0;align-items:center;min-height:36px;overflow:hidden;border:1px solid #d4d9e1;border-radius:8px;background:#fff}
.tg-rain-layout .tg-search-icon{display:flex;align-items:center;padding-left:12px;color:#4e5969}
.tg-rain-layout .tg-search-icon svg{width:15px;height:15px}
.tg-rain-layout .tg-search-box input{flex:1;flex-basis:auto;min-width:0;min-height:34px;height:34px;padding:6px 8px;border:0;border-radius:0;background:transparent;font-size:14px;line-height:22px;box-shadow:none}
.tg-rain-layout .tg-search-box input::placeholder{color:#929ba8}
.tg-rain-layout .tg-search-box:focus-within{outline:none;box-shadow:none;border-color:#d4d9e1}
#flight-settings-dialog .tg-search-box input:focus{outline:none;box-shadow:none;border-color:transparent}
.tg-rain-layout .tg-search-box:has(input:focus-visible){outline:1px solid #8a96a7;outline-offset:2px}
#flight-settings-dialog .tg-search-box input:focus-visible{outline:0}
.tg-rain-layout .tg-search-box button{align-self:stretch;flex:none;min-height:34px;min-width:58px;padding:5px 12px;border:0;border-left:1px solid #d4d9e1;border-radius:0;background:#eef0f3;color:#53647c;font-size:13px;letter-spacing:2px}
.tg-rain-layout .tg-search-box button:hover{background:#e4ebf7;color:var(--primary)}
.tg-rain-layout .tg-search-examples{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.tg-rain-layout .tg-search-examples span{padding:3px 8px;border:1px solid var(--tg-line);border-radius:6px;background:#fff;font-size:11px;line-height:18px;color:#60789d}
.tg-rain-layout #telegram-search-result:not(:empty){padding:0 14px;margin-top:12px;border:1px solid #dbe7ff;border-radius:10px;background:#f8faff}
.tg-rain-layout .tg-added{margin-top:16px;border:1px solid var(--tg-line);border-radius:14px;overflow:hidden}
.tg-rain-layout .tg-added-heading{min-height:47px;padding:13px 14px;border-bottom:1px solid var(--tg-line);background:var(--tg-soft);font-size:13px;line-height:20px;font-weight:600}
.tg-rain-layout .telegram-target-list .telegram-target{padding:14px 16px}
.tg-rain-layout .telegram-target-list .telegram-target:last-child{border-bottom:0}
.tg-rain-layout .telegram-target>div{gap:4px}
.tg-rain-layout .telegram-target .text-button{font-size:13px}
.tg-rain-layout .tg-empty{min-height:222px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 16px;text-align:center}
.tg-rain-layout .tg-empty svg{width:54px;height:48px;color:#d3d9e2;margin-bottom:14px}
.tg-rain-layout .tg-empty strong{font-size:16px;font-weight:600;line-height:25px}
.tg-rain-layout .tg-empty p{font-size:13px;line-height:20px;color:var(--tg-muted);margin-top:6px}
.tg-rain-layout .tg-login-card{padding:18px 20px;background:#fff;border:1px solid var(--tg-line);border-radius:17px}
.tg-rain-layout .tg-login-card .telegram-help:first-child{margin-top:0}
.tg-rain-layout .tg-login-card .telegram-form{max-width:420px;margin-left:auto;margin-right:auto;text-align:left}
.tg-rain-layout .telegram-confirm{background:#fff;border:1px solid var(--tg-line);border-radius:10px}
@media(max-width:767px){
  #flight-settings-dialog .telegram-body{padding:16px;gap:14px}
  #flight-settings-dialog .flight-settings-head,#flight-settings-dialog .flight-connection-footer{padding:12px 16px}
  .tg-rain-layout .tg-profile-card{padding:16px;gap:12px;min-height:0}
  .tg-rain-layout .tg-profile-avatar{width:48px;height:48px;font-size:23px}
  .tg-rain-layout .tg-profile-name>strong{font-size:16px}
  .tg-rain-layout .tg-profile-name{gap:6px}
  .tg-rain-layout .tg-refresh{margin-left:0}
  .tg-rain-layout .tg-disconnect{margin-left:0}
  .tg-rain-layout .tg-metadata{grid-template-columns:1fr;gap:14px}
  .tg-rain-layout .tg-windows-card{padding:16px}
  .tg-rain-layout .tg-search-panel{padding:12px}
  .tg-rain-layout .tg-search-box{min-height:44px}
  .tg-rain-layout .tg-search-box input{min-height:42px;height:42px;font-size:16px}
  .tg-rain-layout .tg-search-box button{min-height:42px;min-width:54px;padding:6px 9px}
  .tg-rain-layout .tg-search-icon{padding-left:8px}
  .tg-rain-layout .tg-search-examples{gap:6px}
  .tg-rain-layout .tg-search-examples span{padding:3px 6px}
  .tg-rain-layout .tg-empty{min-height:190px}
}
