
.tile{
    border: 2px solid #ADADAD;   
    border-radius: 3px;
    min-height: 100px;
    padding: 4px 4px 5px 4px;
    margin: 4px;

}
.tlbr{ /* toolbar  */
    font-weight: bold;
    text-align: left;
    padding: 3px;

}
.chdr{
    vertical-align:middle; 
    border-bottom: 1px solid black;
    padding: 8px;
    text-align: center;
}
.chdrMo{
    vertical-align:middle; 
    border: 1px solid black;
    padding: 8px;
    text-align: center;
}
.bordered {
    border: 1px solid black; /* Add border to each grid column */
}
.bnav{
    padding: 0px 0px 0px 5px;
}
.bbtn{
    cursor: pointer;
}
.miniedit {
    display: inline-flex;
    gap: 3px;
    align-items: center;
    margin-right: 8px;
}
.mini-edit-btn {
    min-width: 24px;
    height: 24px;
    border: 1px solid #b8b8b8;
    border-radius: 3px;
    background: #ffffff;
    color: #333333;
    font-size: 12px;
    line-height: 1;
    padding: 2px 5px;
    cursor: pointer;
}
.mini-edit-btn:hover,
.mini-edit-btn:focus {
    border-color: coral;
    color: coral;
    outline: none;
}
.mini-edit-danger {
    border-color: #dc3545;
    color: #dc3545;
}
.mini-edit-danger:hover,
.mini-edit-danger:focus {
    background: #dc3545;
    color: #ffffff;
}
.clear-field-btn {
    border-color: #ffb39e;
    background: #fff1ec;
    color: #c84f37;
    font-weight: 700;
}
.clear-field-btn:hover,
.clear-field-btn:focus {
    border-color: coral;
    background: #ffd8cb;
    color: #9f351f;
}
.mini-edit-selected {
    background: rgba(255, 127, 80, 0.18);
    outline: 1px solid rgba(255, 127, 80, 0.55);
    border-radius: 3px;
}
.deep-research-nav-btn {
    border: 1px solid coral;
    border-radius: 4px;
    background: transparent;
    color: white;
    font-size: 12px;
    line-height: 1;
    padding: 5px 7px;
    margin-right: 8px;
    cursor: pointer;
}
#fyiDeepThinkIcon {
    background: coral;
    color: white;
    font-weight: 700;
}
#fyiDeepResearchIcon,
#fyiDeepThinkIcon,
#fyiAIIcon {
    display: none !important;
}
#fyiAIToolsIcon {
    background: #ffffff;
    color: #343a40;
    font-weight: 700;
}
.deep-research-nav-btn:hover,
.deep-research-nav-btn:focus {
    background: coral;
    color: white;
    outline: none;
}
.local-search-nav-btn {
    border: 1px solid coral;
    border-radius: 4px;
    background: transparent;
    color: white;
    font-size: 12px;
    line-height: 1;
    padding: 4px 7px;
    margin-left: 6px;
    cursor: pointer;
}
.local-search-nav-btn:hover,
.local-search-nav-btn:focus {
    background: coral;
    color: white;
    outline: none;
}
.local-search-input {
    margin-bottom: 12px;
}
.local-search-section-title {
    color: #64717b;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 8px 0;
    text-transform: uppercase;
}
.local-search-result {
    border: 1px solid #e1e7ea;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
    background: #ffffff;
}
.local-search-result-head {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    align-items: flex-start;
}
.local-search-title {
    font-weight: 700;
    color: #24313a;
}
.local-search-meta,
.local-search-snippet {
    color: #64717b;
    font-size: 0.88rem;
}
.local-search-snippet {
    margin-top: 5px;
}
.local-search-empty {
    color: #64717b;
    padding: 12px 0;
}
.deep-research-dialog {
    max-width: 820px;
}
.deep-research-intro p,
.deep-research-note {
    color: #555;
}
.deep-research-note {
    font-size: 13px;
    margin-top: 10px;
}
.deep-think-upload {
    border: 1px dashed #9eb4c1;
    border-radius: 8px;
    padding: 12px;
    background: #f8fbfc;
    margin-top: 10px;
}
.deep-think-file-list {
    margin-top: 8px;
    color: #4d5b65;
    font-size: 0.9rem;
}
.deep-think-file-item {
    border-bottom: 1px solid #e3eaee;
    padding: 5px 0;
}
.deep-think-warning {
    color: #a94442;
    font-size: 0.9rem;
    margin-top: 8px;
}
.preBullet{
    cursor: pointer;
    margin-right: 3px;
}

.dbtn{
    cursor: move;
}
.rowHdr{
    font-size: larger;
    font-weight: bolder;
    background-color: gainsboro;
    min-height: 50px;
}

.dropzone{
    background-color: rgb(184, 184, 184, 0.25);
    height: 3px;  /* was 3 */
    padding: 0;
    margin: 0px;
    
}
.nhilite{
 background-color: rgb(184, 184, 184, 0.5);
    height: 4px;  /* was 3 */
    
}
.dropzone2{
    background-color: rgb(184, 184, 184, 0.25);
    height: 30px;
    padding: 0;
    margin: 0px;
    
}
.bull{
    padding-left: 6px;
}
.bull > span[id^="e"],
span.bull[id^="e"],
div.bull[id^="e"]{
    background-color: transparent !important;
}
.bldhdr{
    font-size: large;
    font-weight: bolder;
    padding: 0px;
    margin: 0px;

}

.cntr{
    text-align: center;
}


.tftr{
    padding: 8px;
    text-align: center;
    color: coral;
   

}
.bgNote{
    font-size: larger;
}

.bullhr{
    /* horizontal rule*/
    color: coral;
    background-color: coral;
    width: 90%;
    height: 1px;
    text-align: center;
    padding: 0px;
    margin: 5px;
}
.co{
    color: coral;
}
.cobold{
    color: coral;
    font-weight: bold;
}
.advise{
    color: red;
    font-weight: bold;

}
.fntLrg{
    font-size: larger;
}
    
.nvbr{
 
    color: white;
   /* Optional: styling for each item */
    padding: 10px;
    text-align: center;

}
.cont {
    display: flex;
    justify-content: space-between;
}
.smNote{
    border-radius: 3%;
    background-color: rgb(212, 219, 217);
    margin-left: 3px;
    white-space: pre-wrap; /* Preserves line breaks and spaces */
    border: 1px solid #000; /* Optional: for textarea-like look */
    min-height:50px;
    word-wrap: break-word;
    padding: 3px;
    padding-left: 6px;
    padding-bottom: 10px;

}
.homebtn{
    font-size:large;
    color: coral;
    font-weight: bolder;
    margin: 0;
    padding: 0;
    font-stretch: 300%;
}
.mota{
    
    
    border: 2px dashed rgba(0, 0, 0, 0.2);  /* Light dashed border */
    background-color:rgb(212, 219, 217, 0.2);
    border-radius: 10px;
    min-height: 75px;
    padding: 10px; 

}

.coral-btn-outline {
    color: coral;             /* Text color coral */
    border-color: coral;       /* Outline color coral */
    background-color: transparent; /* No background color */
}

.coral-btn-outline:hover {
    background-color: coral;   /* Coral background on hover */
    color: white;              /* White text on hover */
    border-color: coral;       /* Border remains coral on hover */
}

.coral-btn {
    background-color: coral;  /* Coral color */
    border-color: coral;
    color: white;
}

.coral-btn:hover {
    background-color: #e05d4f;  /* Darker shade of coral for hover */
    border-color: #e05d4f;
}

.no-link-style {
    text-decoration: none;
    color: inherit;
}
.pL0{
     padding-left:0;
}

.blkNote{
    /* border-radius: 3%;
    background-color: rgb(212, 219, 217);*/
    margin-left: 7px;
    white-space: pre-wrap; /* Preserves line breaks and spaces */
    /* border: 1px solid #000; /* Optional: for textarea-like look */
    min-height:100px;
    word-wrap: break-word;
    padding: 3px;
    padding-left: 6px;

}

.drop-zone {
    width: 300px;
    height: 200px;
    border: 2px dashed #007bff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007bff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.drop-zone.dragover {
    background-color: #f1f1f1;
    border-color: #28a745;
    color: #28a745;
}
.dropwrapper{
    display: none;
}

.forget{
    padding: 3px;
    margin: 3px;
}
.cdta{
    padding: 3px;
    margin: 0px;
    margin-bottom: 7px;
    /* background-color: cornflowerblue; */
    padding-bottom: 7px;
    flex: 1;
    overflow: visible;
    font-size: calc(1rem * var(--fyi-page-font-scale, 1));
}

.mocol{
    font-size: calc(1rem * var(--fyi-page-font-scale, 1));
}

.page-font-size-controls{
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.page-font-size-label{
    font-weight: 600;
    margin-right: 2px;
}

.page-font-size-value{
    display: inline-block;
    font-weight: 600;
    min-width: 48px;
    text-align: center;
}

.additional-feature-actions{
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 7px;
}

.additional-feature-actions .btnspc,
.additional-feature-actions .btn{
    margin-top: 0;
}


.rndbtn{
    border-radius: 20px; /* Adjust this value for more or less roundness */
    padding: 10px 20px; /* Optional: Custom padding for better aesthetics */
}

.p-s { /*prevent-select */
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}
.mx{

    border-radius: 25px;
    background: #73AD21;
    padding: 3px;
}

.nicebtn{


        background-color: #04AA6D; /* Green */
        border: none;
        color: white;
        padding: 5px 10px;
        text-align: center;
        text-decoration: none;
        font-size: 12px;
        margin: 2px 2px;
        cursor: pointer;
        border-radius: 8px;
        background-color: white; 
        color: black; 
        border: 2px solid #008CBA;

}

.nicebtn:hover {
    background-color: #008CBA; /* Green */
    color: white;
}

.tooltip-inner {
  background-color: rgb(255, 68, 0) !important;
  color: white !important;
}

/* Arrow color for top-positioned tooltips */
.bs-tooltip-top .arrow::before {
  border-top-color: rgb(255, 68, 0) !important;
}

/* Arrow color for bottom-positioned tooltips */
.bs-tooltip-bottom .arrow::before {
  border-bottom-color: rgb(255, 68, 0) !important;
}

/* Optional: left/right arrows */
.bs-tooltip-left .arrow::before {
  border-left-color: rgb(255, 68, 0) !important;
}
.bs-tooltip-right .arrow::before {
  border-right-color: rgb(255, 68, 0) !important;
}

.rounded-coral {
  /* border: 1px solid coral;
  border-radius: 8px; /* Adjust for more or less rounding 
  background-color: transparent; */
  border-radius: 8px;
  border: 1px solid rgba(255, 127, 80, 0.5);
  /*background-color: rgba(255, 127, 80, 0.1);*/
  color: coral; /* Optional: to match the text color */
  /*padding: 0px 0px 0px 0px; /* Optional: spacing inside the span */
 
  font-size: larger;
  display: inline-block;
  padding: 0;
  margin: 0;
  line-height: 1;
  padding-bottom: 3px;
  vertical-align: top;
}
.btn_home:hover {
    background-color: coral; /* Green */
    color: white;
    border-radius: 8px;
}
.cob{
    font-family: "Arial", "Segoe UI Symbol", "Noto Sans Symbols", sans-serif;
    color: coral;

}
.err{
    color: red;
}
.grayed{
    color: gray;
}
.rnd{
    border-radius: 3%;
}
.chat-wrap{max-width:720px;height:35vh;overflow:auto;background:#f7f7f9;border-radius:.75rem;border:1px solid #e5e7eb;padding:1rem}
.msg{max-width:75%}
.bubble{padding:.6rem .8rem;border-radius:1.1rem;line-height:1.3;position:relative;word-wrap:break-word;box-shadow:0 1px 1px rgba(0,0,0,.06)}
.bubble.me{background:#e9f5ff;color:#0b3e6f;border-top-left-radius:1.1rem;border-top-right-radius:1.1rem;border-bottom-left-radius:1.1rem;border-bottom-right-radius:.35rem}
.bubble.them{background:#fccccc;color:#111;border:1px solid #e5e7eb;border-top-left-radius:1.1rem;border-top-right-radius:1.1rem;border-bottom-left-radius:.35rem;border-bottom-right-radius:1.1rem}
.time{font-size:.75rem;color:#6b7280;margin-top:.15rem}

.mxtbl{
    font-family: arial, sans-serif;
  border-collapse: collapse;
  width: 100%;
}
.mxtbl td, th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}
.mxtbl tr:nth-child(even) {
  background-color: #dddddd;
}
.mx-page{
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 18px 10px 28px;
    background: #f7f9fa;
    overflow-x: hidden;
}
.mx-page *{
    box-sizing: border-box;
}
.mx-shell{
    max-width: 760px;
    margin: 0 auto;
    padding: 0;
}
.mx-panel{
    min-height: 600px;
    background: #ffffff;
    border: 1px solid #dfe5e8;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(25, 38, 49, 0.08);
}
.mx-header{
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5ecef;
    margin-bottom: 16px;
}
.mx-header h3,
.mx-section h4{
    margin: 0 0 4px;
}
.mx-header p,
.mx-section p{
    margin: 0;
    color: #64717b;
    font-size: 0.95rem;
}
.mx-version{
    color: #64717b;
    font-size: 0.85rem;
    white-space: nowrap;
}
.mx-section{
    border: 1px solid #e1e7ea;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 14px;
    background: #ffffff;
}
.mx-section-danger{
    border-color: #f1d0d4;
    background: #fffafa;
}
.mx-section-head{
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}
.mx-action-row{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.mx-cache-window{
    margin-top: 12px;
    overflow-x: auto;
}
.mx-storage-result{
    margin-top: 12px;
}
.mx-storage-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}
.mx-storage-card{
    border: 1px solid #dfe7eb;
    border-radius: 6px;
    padding: 10px;
    background: #fbfcfd;
}
.mx-storage-card span{
    display: block;
    color: #64717b;
    font-size: 0.78rem;
    margin-bottom: 3px;
}
.mx-storage-card strong{
    display: block;
    color: #24313a;
    font-size: 1rem;
}
.mx-storage-bar{
    height: 9px;
    border-radius: 99px;
    background: #e8eef1;
    overflow: hidden;
}
.mx-storage-fill{
    height: 100%;
    border-radius: 99px;
    background: coral;
}
.mx-storage-note{
    color: #64717b;
    font-size: 0.85rem;
    margin-top: 8px;
}
.mx-storage-error{
    border: 1px solid #f1d0d4;
    border-radius: 6px;
    color: #a3343a;
    background: #fffafa;
    padding: 10px;
}
.mx-support{
    border-top: 1px solid #e5ecef;
    margin-top: 18px;
    padding-top: 14px;
}
.mx-page .mxtbl{
    margin-top: 8px;
    background: white;
}
.mx-page .mxtbl td,
.mx-page .mxtbl th{
    vertical-align: top;
}
@media (max-width: 600px){
    .mx-page{
        padding: 12px 0 24px;
    }
    .mx-panel{
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        padding: 16px;
    }
    .mx-header,
    .mx-section-head{
        display: block;
    }
    .mx-action-row .btn{
        flex: 1 1 100%;
    }
    .mx-storage-grid{
        grid-template-columns: 1fr;
    }
}
.sm{
    font-size: x-small;
}
.notammsg{
    background-color: #ffffff;
    border: 1px solid #e5b86f;
    border-left: 4px solid coral;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    width: 100%;
    text-align: left;
    box-shadow: 0 1px 3px rgba(38, 45, 52, 0.08);
}
.notam-shell{
    display: grid;
    gap: 10px;
}
.notam-toolbar{
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #e7ecef;
}
.notam-title{
    font-weight: 700;
    color: #263238;
}
.notam-subtitle{
    color: #6b7780;
    font-size: 0.88rem;
}
.notam-head{
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}
.notam-type{
    color: #9f351f;
    font-weight: 700;
}
.notam-date{
    color: #6b7780;
    white-space: nowrap;
}
.notam-body{
    color: #2f3b45;
    margin: 8px 0;
    white-space: pre-wrap;
}
.notam-link{
    display: inline-block;
    margin-bottom: 8px;
}
.notam-actions{
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.notam-empty{
    border: 1px dashed #cfd8dc;
    border-radius: 8px;
    color: #6b7780;
    padding: 14px;
    text-align: center;
}
@media (max-width: 600px){
    .notam-toolbar,
    .notam-head{
        display: block;
    }
    .notam-date{
        display: block;
        margin-top: 3px;
        white-space: normal;
    }
    .notam-actions{
        justify-content: stretch;
    }
    .notam-actions .btn{
        flex: 1 1 auto;
    }
}
.bld{
    font-weight: bold;
}
.spcHR{
    margin-bottom: 5px;

}
.newFlag{
    display: inline-block;
    background-color: coral;
    color: white;
    font-size: x-small;
    font-weight: bold;
    border-radius: 8px;
    padding: 2px 4px;
    margin-left: 6px;
}
.btnspc{
    margin-top:7px;
    margin-right:3px;
}
.favWhite{
    background-color: white;
     font-size: larger;

}
.pgclr{
    background-color: white;
}

.sB{
    font-weight: bolder;
}
.sI{
    font-style: italic;
}
.sU{
    text-decoration: underline;
}
.sS{
    font-size: smaller;
}
.sL{
    font-size: larger;
}
.blkCont{
    border: 2px dashed rgba(255, 127, 80, 0.35);
    background-color: rgb(212, 219, 217, 0.2);
    border-radius: 8px;
    min-height: 48px;
    padding: 8px 8px 10px 12px;
    margin: 4px 0 8px 14px;
    transition: background-color 0.15s ease, border-color 0.15s ease, min-height 0.15s ease;
}
.blkCont:empty::before{
    content: "Drop notes here";
    display: block;
    color: rgba(80, 80, 80, 0.65);
    font-size: 12px;
    font-style: italic;
    pointer-events: none;
}
.blkContDropActive{
    border-color: coral;
    background-color: rgba(255, 127, 80, 0.12);
    min-height: 72px;
}
.blkContSlot{
    margin-left: 0;
}
.blkContToggle{
    display: inline-block;
    min-width: 16px;
    cursor: pointer;
    user-select: none;
}
.blkContToggle:hover,
.blkContToggle:focus{
    color: #e05d4f;
}

/* For Bootstrap 4/5 */
.modal-dialog {
  max-height: calc(100vh - 3.5rem);
}

.modal-content {
  max-height: calc(100vh - 3.5rem);
}

.modal-body {
  overflow-y: auto;
  max-height: calc(100vh - 9rem); /* header+footer space */
}

.ai-dialog-intro{
    margin-bottom: 12px;
}
.ai-dialog-intro h5{
    margin-bottom: 4px;
}
.ai-dialog-intro p{
    margin: 0;
    color: #5f6874;
}
.ai-starter-row{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 12px;
}
.ai-saved-prompts-wrap{
    border: 1px solid #e2e8ec;
    border-radius: 10px;
    padding: 10px;
    margin: 0 0 12px;
    background: #fbfcfd;
}
.ai-saved-prompts-head{
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: #303b45;
    font-weight: 700;
}
.ai-saved-prompts-head small{
    color: #7a8791;
    font-weight: 400;
}
.ai-saved-prompts{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ai-saved-prompts-empty{
    color: #7a8791;
    font-size: 0.9rem;
}
.ai-saved-prompt-item{
    display: inline-flex;
    max-width: 100%;
    border: 1px solid #d7e1e7;
    border-radius: 999px;
    overflow: hidden;
    background: white;
}
.ai-saved-prompt-btn{
    max-width: 300px;
    border: 0;
    background: transparent;
    color: #2f3b45;
    padding: 6px 10px;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ai-saved-prompt-remove{
    border: 0;
    border-left: 1px solid #e2e8ec;
    background: #f6f8f9;
    color: #7a3232;
    padding: 0 10px;
    cursor: pointer;
    font-weight: 700;
}
.ai-saved-prompt-item:hover{
    border-color: coral;
}
.ai-saved-prompt-remove:hover{
    background: #fff0ed;
    color: #b84f34;
}
.ai-starter-btn,
.ai-followup-btn,
.ai-response-action-btn{
    border: 1px solid #d7e1e7;
    background: #f8fbfc;
    color: #2f3b45;
    border-radius: 999px;
    padding: 6px 11px;
    cursor: pointer;
    font-size: 0.9rem;
}
.ai-starter-btn:hover,
.ai-followup-btn:hover,
.ai-response-action-btn:hover{
    border-color: coral;
    color: #b84f34;
    background: #fff7f3;
}
.ai-prompt-input{
    min-height: 112px;
    resize: vertical;
}
.ai-login-notice{
    margin-top: 8px;
    padding: 9px 11px;
    border: 1px solid #f0d3bc;
    border-radius: 8px;
    background: #fff8f2;
    color: #8a4b24;
    font-size: 0.92rem;
}
.ai-login-notice:empty{
    display: none;
}
.ai-submit-row{
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.ai-submit-btn{
    min-width: 120px;
}
.ai-save-prompt-btn{
    min-width: 112px;
}
.ai-secondary-action{
    margin-top: 8px;
}
.ai-loading-state{
    color: #687581;
    font-size: 0.92rem;
}
.ai-loading-state-active::before{
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border: 2px solid #bdd2dd;
    border-top-color: coral;
    border-radius: 50%;
    animation: aiSpin 0.8s linear infinite;
}
@keyframes aiSpin{
    to{
        transform: rotate(360deg);
    }
}
.ai-user-question{
    float: right;
    max-width: 86%;
    margin: 8px 0;
    padding: 8px 10px;
    border-radius: 10px 10px 2px 10px;
    background: #eef7ff;
    color: #1e405f;
    font-weight: 600;
    word-break: break-word;
}
.ai-note {
    clear: both;
    padding: 14px;
    border: 1px solid #dfe6ea;
    border-radius: 10px;
    background: #fff;
    margin-top: 12px;
}

.ai-note h2,
.ai-note h3,
.ai-note h4 {
    margin-top: 0;
}

.ai-followups,
.ai-response-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.ai-tags {
    margin-top: 10px;
}

.ai-tag {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 4px 8px;
    border: 1px solid #bbb;
    border-radius: 12px;
    font-size: 12px;
}
.ai-tools-modal {
    max-width: 900px;
}
.ai-tools-intro {
    margin-bottom: 14px;
}
.ai-tools-intro h5 {
    margin-bottom: 4px;
}
.ai-tools-intro p {
    color: #5d6870;
    margin-bottom: 0;
}
.ai-tools-toggle-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.ai-tools-choice {
    min-height: 92px;
    border: 1px solid #d8e0e5;
    border-radius: 6px;
    background: #ffffff;
    color: #263238;
    padding: 12px;
    text-align: left;
}
.ai-tools-choice strong,
.ai-tools-choice span {
    display: block;
}
.ai-tools-choice strong {
    margin-bottom: 5px;
}
.ai-tools-choice span {
    color: #65727b;
    font-size: 13px;
    line-height: 1.35;
}
.ai-tools-choice:hover,
.ai-tools-choice:focus,
.ai-tools-choice-active {
    border-color: coral;
    box-shadow: 0 0 0 2px rgba(255, 127, 80, 0.18);
    outline: none;
}
.ai-tools-preview-card {
    border: 1px solid #d8e0e5;
    border-radius: 6px;
    background: #f9fbfc;
    padding: 14px;
}
.ai-tools-preview-card h6 {
    font-weight: 700;
    margin-bottom: 6px;
}
.ai-tools-preview-card p {
    color: #4f5d66;
    margin-bottom: 12px;
}
@media (max-width: 600px){
    .ai-starter-row,
    .ai-submit-row,
    .ai-response-actions,
    .ai-followups{
        align-items: stretch;
    }
    .ai-starter-btn,
    .ai-save-prompt-btn,
    .ai-response-action-btn,
    .ai-followup-btn,
    .ai-submit-btn{
        flex: 1 1 100%;
    }
    .ai-saved-prompts-head{
        display: block;
    }
    .ai-saved-prompt-item{
        width: 100%;
    }
    .ai-saved-prompt-btn{
        flex: 1;
        max-width: none;
        text-align: left;
    }
    .ai-user-question{
        max-width: 100%;
    }
    .ai-tools-toggle-row{
        grid-template-columns: 1fr;
    }
    .ai-tools-choice{
        min-height: 72px;
    }
}


.fyi-dialog {
  border: none;
  border-radius: 10px;
  overflow: hidden;
}

.dialog-content {
  padding: 0;
}

.dialog-header {
  background: #f8f9fa;
  padding: 12px 16px;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
}

.dialog-body {
  padding: 20px;
}

.dialog-footer {
  padding: 12px 16px;
  text-align: right;
  border-top: 1px solid #ddd;
}

.emoji-btn {
    color: coral;
}

.sticky-help {
    margin-bottom: 12px;
}

.sticky-create {
    padding: 12px;
    border: 1px solid #e2d8c7;
    border-radius: 10px;
    background: #fbf7ef;
    margin-bottom: 14px;
}

.sticky-label {
    margin-top: 10px;
}

.sticky-body {
    min-height: 110px;
    resize: vertical;
}

.sticky-actions {
    margin-top: 10px;
}

.sticky-preview {
    padding: 12px;
    border: 1px solid #d9e2ef;
    border-radius: 10px;
    background: #f8fbff;
    white-space: pre-wrap;
    margin-bottom: 14px;
}

.sticky-preview-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.sticky-preview-body {
    color: #334;
}

.sticky-list {
    display: grid;
    gap: 10px;
}

.sticky-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.sticky-nav-btn {
    min-width: 38px;
    font-size: 18px;
    line-height: 1;
}

.sticky-nav-count {
    min-width: 54px;
    text-align: center;
    font-weight: 700;
    color: #556;
}

.sticky-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    background: #fff;
}

.sticky-item-selected {
    border-color: coral;
    box-shadow: 0 0 0 1px rgba(255, 127, 80, 0.15);
}

.sticky-single-item {
    display: grid;
    gap: 8px;
}

.sticky-item-meta {
    flex: 1;
    min-width: 0;
}

.sticky-item-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.sticky-item-preview {
    color: #556;
    white-space: pre-wrap;
    word-break: break-word;
}

.sticky-item-link {
    display: block;
    color: #1c5c92;
    overflow-wrap: anywhere;
    font-size: 0.92rem;
}

.sticky-item-buttons {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.sticky-empty {
    padding: 14px;
    border: 1px dashed #cfcfcf;
    border-radius: 10px;
    color: #667;
    background: #fafafa;
}

.collab-shell {
    display: grid;
    gap: 14px;
}

.collab-intro-card {
    padding: 16px 18px;
    border: 1px solid #f0d2bf;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff6ef 0%, #f8fbff 100%);
}

.collab-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c7653d;
    margin-bottom: 6px;
}

.collab-title {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    color: #2c3440;
    margin-bottom: 4px;
}

.collab-subtitle,
.collab-section-copy,
.collab-notice-text,
.collab-user-rights,
.collab-access-copy,
.collab-inline-message,
.collab-empty-state {
    color: #5f6874;
}

.collab-card {
    padding: 14px 16px;
    border: 1px solid #e4e8ef;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(31, 43, 58, 0.05);
}

.collab-loading {
    background: #fcfaf7;
    color: #75695d;
}

.collab-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #243142;
    margin-bottom: 6px;
}

.collab-badge-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.collab-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: coral;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.collab-badge-soft {
    background: #e4eefc;
    color: #31537e;
}

.collab-action-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.collab-share-link {
    display: block;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #d6deea;
    border-radius: 10px;
    background: #f7faff;
    color: #1c5c92;
    text-decoration: none;
    word-break: break-all;
}

.collab-share-link:hover {
    background: #eef6ff;
    text-decoration: none;
}

.collab-form-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-top: 12px;
}

.collab-input-wrap {
    flex: 1 1 240px;
}

.collab-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6a7280;
}

.collab-inline-input {
    min-height: 42px;
}

.collab-submit-btn {
    min-height: 42px;
    border-radius: 10px;
    padding: 0 16px;
}

.collab-error {
    margin-top: 10px;
    color: #b04632;
    font-weight: 600;
}

.collab-notice {
    min-height: 18px;
}

.collab-user-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.collab-user-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e7e3da;
    border-radius: 12px;
    background: linear-gradient(180deg, #fffefc 0%, #faf7f2 100%);
    text-align: left;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.collab-user-row:hover {
    border-color: #efab84;
    box-shadow: 0 6px 18px rgba(199, 101, 61, 0.12);
    transform: translateY(-1px);
}

.collab-user-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.collab-user-name {
    font-weight: 700;
    color: #263243;
}

.collab-user-cta {
    flex-shrink: 0;
    color: #c7653d;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.collab-selected-user {
    font-size: 18px;
    font-weight: 700;
    color: #243142;
    margin-bottom: 4px;
}

.collab-rights-grid {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.collab-right-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e4e8ef;
    border-radius: 12px;
    background: #fbfcfe;
    cursor: pointer;
}

.collab-right-option:hover {
    border-color: #efab84;
    background: #fff8f3;
}

.collab-right-radio {
    flex-shrink: 0;
}

.collab-right-text {
    font-weight: 600;
    color: #2f3a47;
}

.collab-feedback {
    margin-top: 12px;
}

@media (max-width: 640px) {
    .collab-title {
        font-size: 18px;
    }

    .collab-form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .collab-submit-btn {
        width: 100%;
    }

    .collab-user-row {
        align-items: flex-start;
    }
}
.published-qr-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 12px 0 6px;
}

.published-qr-code {
  min-width: 236px;
  min-height: 236px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid #dee2e6;
  background: #ffffff;
}

.published-qr-url {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
  font-size: 0.95rem;
}

.published-qr-img {
  display: block;
  width: 220px;
  height: 220px;
}

.page-ai-dialog {
  padding: 4px 0 12px;
}

.page-ai-intro {
  padding: 14px 16px;
  border: 1px solid #dfe7ef;
  background: #f8fbff;
  margin-bottom: 12px;
}

.page-ai-intro h5 {
  margin: 0 0 6px;
  font-weight: 700;
  color: #243142;
}

.page-ai-intro p {
  margin: 0;
  color: #5f6874;
}

.page-ai-context {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e6e9ee;
  background: #ffffff;
  margin-bottom: 12px;
}

.page-ai-context-title {
  min-width: 0;
  font-weight: 700;
  color: #2d3744;
  overflow-wrap: anywhere;
}

.page-ai-context-meta,
.page-ai-context-warn {
  flex-shrink: 0;
  color: #657181;
  font-size: 13px;
}

.page-ai-starter-row,
.page-ai-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.page-ai-starter-btn {
  border: 1px solid #d4dde8;
  background: #ffffff;
  color: #31537e;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 600;
}

.page-ai-starter-btn:hover {
  border-color: coral;
  color: #a84f31;
}

.page-ai-input {
  min-height: 110px;
  margin-bottom: 10px;
}

.page-ai-results {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.page-ai-user-request,
.page-ai-response,
.page-ai-error {
  border: 1px solid #e2e6ec;
  background: #ffffff;
  padding: 12px;
}

.page-ai-user-request {
  border-left: 4px solid coral;
  color: #334155;
  font-weight: 600;
}

.page-ai-error {
  border-left: 4px solid lightcoral;
  color: #923b34;
  background: #fff8f8;
}

.page-ai-response-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.page-ai-summary {
  color: #3c4653;
  margin-bottom: 12px;
}

.page-ai-suggestions {
  display: grid;
  gap: 10px;
}

.page-ai-suggestion {
  border: 1px solid #e5e9ef;
  background: #fbfcfe;
  padding: 10px 12px;
}

.page-ai-suggestion-title {
  font-weight: 700;
  color: #233044;
}

.page-ai-suggestion-meta {
  margin-top: 2px;
  font-size: 12px;
  text-transform: uppercase;
  color: #6a7280;
}

.page-ai-suggestion-reason {
  margin-top: 8px;
  color: #485465;
}

.page-ai-draft {
  margin: 10px 0 0;
  padding: 10px;
  border: 1px solid #e2e6ec;
  background: #ffffff;
  color: #293445;
  white-space: pre-wrap;
}

.page-ai-section-title {
  margin-top: 12px;
  font-weight: 700;
  color: #243142;
}

.page-ai-list {
  margin: 6px 0 0 18px;
  padding: 0;
  color: #465364;
}

@media (max-width: 640px) {
  .page-ai-context {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-ai-context-meta {
    flex-shrink: 1;
  }

  .page-ai-submit-row .btn {
    width: 100%;
  }
}
