:root{
  color-scheme:light;
  --ink:#40364a;
  --muted:#8d7f97;
  --line:rgba(111,86,125,.12);
  --glass:rgba(255,255,255,.66);
}

*{box-sizing:border-box}

html,body{
  margin:0;
  min-height:100%;
}

body{
  font-family:
    -apple-system,BlinkMacSystemFont,
    "PingFang SC","Hiragino Sans GB",
    "Microsoft YaHei",sans-serif;
  color:var(--ink);
  background:
    radial-gradient(circle at 12% 8%,rgba(255,219,235,.7),transparent 34%),
    radial-gradient(circle at 88% 10%,rgba(224,211,255,.72),transparent 38%),
    linear-gradient(180deg,#faf5ff 0%,#fff9fb 52%,#f8f4ff 100%);
}

button,a{font:inherit}

.shell{
  width:min(980px,100%);
  margin:0 auto;
  padding:
    max(28px,env(safe-area-inset-top))
    18px
    max(48px,env(safe-area-inset-bottom));
}

.hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:22px;
  padding:18px 2px 30px;
}

.eyebrow,
.section-kicker{
  font-size:11px;
  letter-spacing:.18em;
  color:#9a7fab;
}

h1{
  margin:8px 0 7px;
  font-size:38px;
  line-height:1;
  font-weight:700;
}

.hero p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
  font-size:14px;
}

.chat-link{
  flex:none;
  text-decoration:none;
  color:#735f84;
  background:rgba(255,255,255,.58);
  border:1px solid var(--line);
  border-radius:999px;
  padding:9px 14px;
  font-size:12px;
}

.section{
  margin-top:24px;
}

.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  margin-bottom:12px;
}

.section h2{
  margin:4px 0 0;
  font-size:18px;
}

.project-list{
  display:grid;
  gap:12px;
}

.project-card{
  width:100%;
  text-align:left;
  border:1px solid var(--line);
  border-radius:22px;
  padding:18px;
  color:inherit;
  background:var(--glass);
  box-shadow:0 12px 34px rgba(73,52,88,.07);
  backdrop-filter:blur(14px);
  cursor:pointer;
}

.project-card h3{
  margin:0 0 8px;
  font-size:18px;
}

.project-meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:12px;
}

.project-status{
  display:inline-flex;
  padding:5px 9px;
  border-radius:999px;
  background:rgba(235,220,255,.64);
  color:#755a87;
}

.tool-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.tool-card{
  min-height:92px;
  border:1px solid var(--line);
  border-radius:20px;
  padding:15px;
  text-align:left;
  color:inherit;
  background:rgba(255,255,255,.5);
}

.tool-card span{
  display:block;
  margin-bottom:7px;
  font-size:15px;
  font-weight:650;
}

.tool-card small{
  color:var(--muted);
  line-height:1.5;
}

.loading{
  color:var(--muted);
  font-size:13px;
  padding:16px 4px;
}

.detail-layer{
  position:fixed;
  inset:0;
  z-index:20;
  padding:
    max(22px,env(safe-area-inset-top))
    14px
    max(22px,env(safe-area-inset-bottom));
  background:rgba(64,46,72,.28);
  backdrop-filter:blur(9px);
  overflow:auto;
}

.detail-card{
  width:min(760px,100%);
  margin:-8px auto 0;
  border-radius:26px;
  padding:22px;
  background:rgba(255,252,255,.96);
  box-shadow:0 24px 70px rgba(50,31,61,.18);
}

.close-button{
  float:right;
  border:0;
  background:rgba(229,217,238,.58);
  color:#695776;
  border-radius:999px;
  padding:7px 11px;
  cursor:pointer;
}

.detail-title{
  margin:4px 0 5px;
  font-size:24px;
}

.detail-time{
  color:var(--muted);
  font-size:12px;
}

.detail-section{
  margin-top:24px;
}

.detail-section h4{
  margin:0 0 9px;
  font-size:13px;
}

.detail-section ul{
  margin:0;
  padding-left:20px;
  color:#5f5269;
  line-height:1.75;
  font-size:14px;
}

.handoff-box{
  padding:16px;
  border-radius:18px;
  background:linear-gradient(
    135deg,
    rgba(242,232,255,.67),
    rgba(255,237,246,.62)
  );
}

.handoff-box p{
  margin:0;
  color:#5f5269;
  line-height:1.75;
  font-size:14px;
}

.copy-button{
  width:100%;
  margin-top:12px;
  border:0;
  border-radius:15px;
  padding:11px 14px;
  background:#6f5b7d;
  color:white;
  cursor:pointer;
}

.link-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.link-row a{
  color:#6f5b7d;
  background:rgba(232,219,241,.55);
  text-decoration:none;
  border-radius:999px;
  padding:7px 11px;
  font-size:12px;
}

@media(max-width:600px){
  .hero{align-items:center}
  h1{font-size:32px}
  .tool-grid{grid-template-columns:1fr}
  .detail-card{padding:18px}
}

.active-tool{
  cursor:pointer;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

.active-tool:active{
  transform:scale(.985);
}

.tool-layer[hidden]{
  display:none !important;
}

.tool-layer{
  position:fixed;
  inset:0;
  z-index:30;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:
    16px
    14px
    calc(56px + env(safe-area-inset-bottom));
  background:rgba(64,46,72,.22);
  backdrop-filter:blur(8px);
}

.tool-sheet{
  width:min(680px,100%);
  max-height:min(78vh,760px);
  overflow:auto;
  border:1px solid rgba(111,86,125,.1);
  border-radius:26px;
  padding:20px;
  background:
    radial-gradient(circle at 12% 8%,rgba(255,219,235,.7),transparent 34%),
    radial-gradient(circle at 88% 10%,rgba(224,211,255,.72),transparent 38%),
    linear-gradient(180deg,#faf5ff 0%,#fff9fb 52%,#f8f4ff 100%);
  box-shadow:0 24px 70px rgba(50,31,61,.16);
}

.tool-sheet-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

.tool-sheet-head h3{
  margin:5px 0 0;
  font-size:22px;
}

.query-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:20px;
}

.query-form label{
  display:grid;
  gap:7px;
}

.query-form label span{
  font-size:12px;
  color:var(--muted);
}

.query-form input{
  width:100%;
  border:1px solid rgba(111,86,125,.13);
  border-radius:14px;
  padding:11px 12px;
  outline:none;
  color:var(--ink);
  background:rgba(250,247,252,.88);
}

.query-form input:focus{
  border-color:rgba(143,104,163,.32);
  box-shadow:0 0 0 3px rgba(219,201,231,.22);
}

.query-actions{
  grid-column:1 / -1;
  display:flex;
  justify-content:flex-end;
  gap:8px;
}

.primary-button,
.secondary-button{
  border:0;
  border-radius:999px;
  padding:9px 14px;
  cursor:pointer;
}

.primary-button{
  color:white;
  background:#6f5b7d;
}

.secondary-button{
  color:#695776;
  background:rgba(231,220,239,.66);
}

.result-list{
  display:grid;
  gap:9px;
  margin-top:18px;
}

.result-card{
  padding:14px 15px;
  border:1px solid rgba(111,86,125,.1);
  border-radius:17px;
  background:rgba(250,247,252,.68);
}

.result-time{
  margin-bottom:6px;
  font-size:11px;
  color:#9a7fab;
}

.result-text{
  font-size:14px;
  line-height:1.65;
  color:#54485e;
}

.result-repeat{
  display:inline-block;
  margin-top:8px;
  padding:4px 8px;
  border-radius:999px;
  font-size:11px;
  color:#755a87;
  background:rgba(235,220,255,.62);
}

.result-empty{
  padding:20px 4px;
  text-align:center;
  font-size:13px;
  line-height:1.7;
  color:var(--muted);
}

@media(max-width:600px){
  .query-form{
    grid-template-columns:1fr;
  }

  .query-actions{
    grid-column:1;
  }

  .tool-sheet{
    max-height:82vh;
    border-radius:24px 24px 20px 20px;
  }
}

/* AUTHORITY: chat-query-mobile-frame
   revision: 2026-10-07-r4
   Keyword field is the sizing reference.
*/

@media(max-width:760px){

  #chatQueryLayer .tool-sheet{
    box-sizing:border-box;

    width:min(680px,100%);
    max-width:100%;

    max-height:
      min(
        82svh,
        760px
      );

    overflow:auto;
    overscroll-behavior:contain;
  }


  #chatQueryLayer .chat-query-form{
    width:100%;
    min-width:0;

    grid-template-columns:
      minmax(0,1fr);
  }


  #chatQueryLayer .chat-query-form label{
    box-sizing:border-box;

    width:100%;
    min-width:0;

    overflow:hidden;
  }


  #chatQueryLayer .chat-query-form input{
    display:block;

    box-sizing:border-box;

    width:100%;
    width:-webkit-fill-available;

    min-width:0;
    max-width:100%;

    height:auto;
    min-height:0;

    margin:0;

    padding:11px 12px;

    border:
      1px solid
      rgba(111,86,125,.13);

    border-radius:14px;

    background:
      rgba(250,247,252,.88);

    font-size:16px !important;
    line-height:1.2;
  }


  #chatQueryLayer input[type="date"],
  #chatQueryLayer input[type="time"],
  #chatQueryLayer input[type="number"],
  #chatQueryLayer input[type="search"]{
    width:100%;
    width:-webkit-fill-available;

    min-width:0;
    max-width:100%;

    inline-size:
      -webkit-fill-available;

    min-inline-size:0;
    max-inline-size:100%;

    -webkit-appearance:auto;
    appearance:auto;
  }


  #chatQueryLayer
  input[type="date"]::-webkit-date-and-time-value,
  #chatQueryLayer
  input[type="time"]::-webkit-date-and-time-value{
    width:100%;
    min-width:0;

    margin:0;
    padding:0;

    text-align:center;
  }


  #chatQueryLayer
  input[type="date"]::-webkit-datetime-edit,
  #chatQueryLayer
  input[type="time"]::-webkit-datetime-edit{
    min-width:0;

    margin:0;
    padding:0;
  }

}

/* END AUTHORITY: chat-query-mobile-frame */


.chat-result{
  max-width:92%;
}

.chat-result.user{
  margin-left:auto;
  background:
    linear-gradient(
      135deg,
      rgba(237,220,255,.64),
      rgba(255,224,237,.62)
    );
}

.chat-result.assistant{
  margin-right:auto;
  background:
    linear-gradient(
      135deg,
      rgba(255,250,246,.8),
      rgba(255,241,248,.72)
    );
}

.chat-role{
  margin-bottom:5px;
  font-size:10px;
  letter-spacing:.08em;
  color:#9a7fab;
}

@media(max-width:600px){
  .chat-result{
    max-width:96%;
  }
}

.diary-entry{
  padding:16px;
  border:1px solid rgba(111,86,125,.1);
  border-radius:19px;
  background:
    linear-gradient(
      135deg,
      rgba(255,250,246,.72),
      rgba(250,241,255,.62)
    );
}

.diary-entry-head{
  margin-bottom:9px;
}

.diary-entry-title{
  font-size:14px;
  font-weight:650;
  color:#55485f;
}

.diary-entry-time{
  margin-top:3px;
  font-size:11px;
  color:#9a7fab;
}

.diary-entry-body{
  white-space:pre-wrap;
  font-size:14px;
  line-height:1.75;
  color:#63566c;
}

.nickname-link-button{
  margin-top:8px;
  color:#6f5b7d;
  background:rgba(255,255,255,.58);
  border:1px solid rgba(111,86,125,.12);
}

.workroom-clock{
  margin-top:9px;
  color:#a08fa9;
  font-size:11px;
  letter-spacing:.04em;
}


/* ===== 图片收藏 ===== */

.gallery-sheet{
  width:min(880px,100%);
}

.gallery-file-label{
  grid-column:1 / -1;
}

.gallery-message{
  margin-top:14px;
  min-height:22px;
  font-size:12px;
  line-height:1.6;
  color:var(--muted);
}

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:15px;
}

.gallery-empty{
  grid-column:1 / -1;
}

.gallery-card{
  min-width:0;
  overflow:hidden;
  border:1px solid rgba(111,86,125,.11);
  border-radius:19px;
  background:rgba(255,255,255,.7);
  box-shadow:0 10px 28px rgba(72,51,82,.06);
}

.gallery-image-button{
  display:block;
  width:100%;
  padding:0;
  border:0;
  cursor:pointer;
  background:rgba(235,224,240,.5);
  aspect-ratio:1 / 1;
  overflow:hidden;
}

.gallery-image-button img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .28s ease;
}

.gallery-image-button:hover img{
  transform:scale(1.025);
}

.gallery-card-body{
  padding:11px 12px 12px;
}

.gallery-card-title{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
  font-weight:650;
  color:var(--ink);
}

.gallery-card-meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px 10px;
  margin-top:6px;
  font-size:10px;
  color:var(--muted);
}

.gallery-delete-button{
  margin-top:10px;
  padding:5px 8px;
  border:0;
  border-radius:999px;
  cursor:pointer;
  font-size:10px;
  color:#8a5d76;
  background:rgba(244,224,235,.7);
}


.gallery-preview-layer > *{
  transform:translateY(-24px);
}

.gallery-preview-layer{
  position:fixed;
  inset:0;
  z-index:40;
  display:grid;
  place-items:center;
  padding:
    max(20px,env(safe-area-inset-top))
    15px
    max(20px,env(safe-area-inset-bottom));
  background:rgba(31,22,35,.72);
  backdrop-filter:blur(12px);
}

.gallery-preview-layer[hidden]{
  display:none;
}

.gallery-preview-card{
  position:relative;
  width:min(900px,100%);
  max-height:92vh;
  padding:14px;
  border-radius:23px;
  background:rgba(255,252,255,.97);
  box-shadow:0 28px 90px rgba(0,0,0,.28);
}

.gallery-preview-card img{
  display:block;
  width:100%;
  max-height:78vh;
  object-fit:contain;
  border-radius:16px;
  background:rgba(238,231,242,.7);
}

.gallery-preview-close{
  position:absolute;
  z-index:2;
  top:22px;
  right:22px;
  float:none;
}

.gallery-preview-title{
  padding:10px 4px 2px;
  text-align:center;
  font-size:12px;
  color:var(--muted);
}

@media(max-width:700px){
  .gallery-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:420px){
  .gallery-grid{
    gap:9px;
  }

  .gallery-card-body{
    padding:9px 10px 10px;
  }
}



/* ===== 图片收藏 · 收藏感修整 ===== */

.gallery-head{
  align-items:flex-start;
}

.gallery-head-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

.gallery-add-button{
  white-space:nowrap;
}

.gallery-subtitle{
  margin-top:7px;
  font-size:12px;
  line-height:1.6;
  color:var(--muted);
}

.gallery-upload-panel{
  margin-top:18px;
  padding:15px;
  border:1px solid rgba(111,86,125,.09);
  border-radius:18px;
  background:
    linear-gradient(
      135deg,
      rgba(255,240,249,.62),
      rgba(242,235,255,.62)
    );
}

.gallery-upload-panel[hidden]{
  display:none;
}

.gallery-file-picker{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:center;
  gap:8px 12px;
}

.gallery-field-title{
  grid-column:1 / -1;
  font-size:12px;
  color:var(--muted);
}

.gallery-file-input{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}

.gallery-file-button{
  display:inline-flex;
  width:max-content;
  align-items:center;
  justify-content:center;
  padding:9px 13px;
  border:0;
  border-radius:999px;
  cursor:pointer;
  font-size:12px;
  color:#695776;
  background:rgba(231,220,239,.72);
}

.gallery-file-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11px;
  color:var(--muted);
}

.gallery-grid{
  align-items:start;
}

.gallery-grid.single-photo .gallery-card{
  grid-column:1 / -1;
  width:min(360px,100%);
  justify-self:center;
}

.gallery-image-button{
  aspect-ratio:4 / 5;
}

.gallery-card{
  transition:
    transform .22s ease,
    box-shadow .22s ease;
}

.gallery-card:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 34px rgba(72,51,82,.09);
}

.gallery-card-body{
  padding-top:12px;
}

.gallery-card-meta{
  margin-top:2px;
}

.gallery-card-title + .gallery-card-meta{
  margin-top:7px;
}

#galleryTool{
  background:
    linear-gradient(
      135deg,
      rgba(255,237,249,.68),
      rgba(238,231,255,.72)
    );
}

@media(max-width:600px){
  .gallery-head{
    gap:12px;
  }

  .gallery-head-actions{
    flex-direction:column-reverse;
    align-items:flex-end;
    gap:7px;
  }

  .gallery-grid.single-photo .gallery-card{
    width:min(78vw,360px);
  }

  .gallery-upload-panel{
    padding:13px;
  }

  .gallery-file-picker{
    grid-template-columns:1fr;
  }

  .gallery-field-title{
    grid-column:1;
  }
}


/* gallery preview must stay above the workroom drawer */
.gallery-preview-layer{
  z-index:999 !important;
}

.gallery-preview-layer[hidden]{
  display:none !important;
}


/* ===== gallery preview without img tag ===== */

.gallery-preview-image{
  width:100%;
  height:min(78vh,780px);
  border-radius:16px;
  background-color:rgba(238,231,242,.7);
  background-position:center;
  background-repeat:no-repeat;
  background-size:contain;
}

@media(max-width:600px){
  .gallery-preview-image{
    height:72vh;
  }
}


.reminder-create-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:20px;
}

.reminder-create-form label{
  display:grid;
  gap:7px;
}

.reminder-create-form label span{
  font-size:12px;
  color:var(--muted);
}

.reminder-create-form input,
.reminder-create-form select,
.reminder-create-form textarea{
  width:100%;
  border:1px solid rgba(111,86,125,.13);
  border-radius:14px;
  padding:11px 12px;
  outline:none;
  color:var(--ink);
  background:rgba(250,247,252,.78);
  font:inherit;
}

.reminder-create-form textarea{
  resize:vertical;
  min-height:70px;
}

.reminder-create-form input:focus,
.reminder-create-form select:focus,
.reminder-create-form textarea:focus{
  border-color:rgba(143,104,163,.32);
  box-shadow:0 0 0 3px rgba(219,201,231,.22);
}

.wide-field{
  grid-column:1 / -1;
}

.manage-divider{
  height:1px;
  margin:22px 0 18px;
  background:rgba(111,86,125,.10);
}

.manage-list-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.manage-list-head h4{
  margin:4px 0 0;
  font-size:16px;
}

.managed-reminder-card{
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  align-items:center;
}

.managed-reminder-main{
  min-width:0;
}

.cancel-reminder-button{
  border:0;
  border-radius:999px;
  padding:8px 11px;
  color:#8a6071;
  background:rgba(255,229,238,.78);
  cursor:pointer;
}

@media(max-width:600px){
  .reminder-create-form{
    grid-template-columns:1fr;
  }

  .wide-field{
    grid-column:1;
  }

  .managed-reminder-card{
    grid-template-columns:1fr;
  }

  .cancel-reminder-button{
    justify-self:end;
  }
}

.manage-filter-row{
  display:grid;
  grid-template-columns:1fr 1fr auto auto;
  gap:8px;
  margin-top:14px;
}

.manage-filter-row input{
  min-width:0;
  border:1px solid rgba(111,86,125,.13);
  border-radius:14px;
  padding:9px 11px;
  outline:none;
  color:var(--ink);
  background:rgba(250,247,252,.72);
  font:inherit;
}

@media(max-width:600px){
  .manage-filter-row{
    grid-template-columns:1fr 1fr;
  }

  .manage-filter-row button{
    width:100%;
  }
}

/* 项目卡快捷操作：轻量小按钮 */
.project-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:6px;
  margin-top:10px;
}

.project-actions button{
  flex:0 0 auto;
  width:auto;
  min-width:0;
  min-height:26px;
  padding:0 9px;
  border-radius:999px;
  font-size:10px;
  font-weight:600;
}

@media(max-width:600px){
  .project-actions{
    justify-content:flex-end;
  }

  .project-actions button{
    flex:0 0 auto;
    width:auto;
  }
}

.project-handoff-preview{
  margin-top:9px;
  color:#9b8da2;
  font-size:11px;
  line-height:1.55;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* ===== Galatea 花园 ===== */

.galatea-sheet{
  max-width:720px;
}

.galatea-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:18px;
}

.galatea-section-head h4{
  margin:4px 0 0;
  font-size:16px;
}

.galatea-thread-list{
  display:grid;
  gap:9px;
  margin-top:12px;
}

.galatea-thread-card{
  padding:13px 14px;
  border-radius:17px;
  background:rgba(255,255,255,.56);
  border:1px solid rgba(111,86,125,.09);
}

.galatea-thread-title{
  font-size:14px;
  font-weight:650;
  line-height:1.5;
}

.galatea-thread-meta{
  margin-top:5px;
  color:#9d8fa4;
  font-size:10px;
}

.galatea-thread-excerpt{
  margin-top:8px;
  color:#786d7d;
  font-size:12px;
  line-height:1.65;
}

.galatea-compose{
  display:grid;
  gap:11px;
  margin-top:12px;
}

.galatea-compose label{
  display:grid;
  gap:6px;
}

.galatea-compose label span{
  color:#93849a;
  font-size:11px;
}

.galatea-compose input,
.galatea-compose textarea,
.galatea-compose select{
  width:100%;
  border:1px solid rgba(111,86,125,.12);
  border-radius:14px;
  padding:11px 12px;
  outline:none;
  background:rgba(250,247,252,.76);
  color:var(--ink);
  font:inherit;
}

.galatea-compose textarea{
  resize:vertical;
}

.galatea-draft-result{
  margin-top:15px;
  padding:14px;
  border-radius:17px;
  background:rgba(246,239,251,.72);
  border:1px solid rgba(111,86,125,.10);
  font-size:12px;
  line-height:1.65;
}

.galatea-confirm-code{
  margin:6px 0;
  font-size:18px;
  font-weight:700;
  letter-spacing:.12em;
}

.galatea-guidance{
  margin-top:9px;
  color:#817487;
  white-space:pre-wrap;
  max-height:180px;
  overflow:auto;
}

.galatea-thread-card{
  display:block;
  width:100%;
  text-align:left;
  color:inherit;
  font:inherit;
  cursor:pointer;
}

.galatea-thread-detail{
  display:grid;
  gap:12px;
}

.galatea-back-button{
  justify-self:start;
  margin-bottom:2px;
}

.galatea-detail-title{
  font-size:19px;
  font-weight:700;
  line-height:1.45;
}

.galatea-detail-body{
  padding:14px;
  border-radius:17px;
  background:rgba(255,255,255,.58);
  color:#675d6c;
  font-size:13px;
  line-height:1.8;
  white-space:pre-wrap;
}

.galatea-reply-heading{
  margin-top:6px;
  font-size:13px;
  font-weight:700;
}

.galatea-replies{
  display:grid;
  gap:9px;
}

.galatea-reply{
  padding:12px 13px;
  border-radius:15px;
  background:rgba(255,255,255,.48);
  border:1px solid rgba(111,86,125,.08);
}

.galatea-reply-meta{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-bottom:7px;
  color:#998b9f;
  font-size:10px;
}

.galatea-reply-body{
  color:#6f6574;
  font-size:12px;
  line-height:1.75;
  white-space:pre-wrap;
}

.galatea-load-more{
  justify-self:center;
  margin-top:4px;
}

.galatea-publish-button{
  margin-top:14px;
  width:100%;
}

.galatea-publish-success{
  text-align:center;
  font-weight:650;
}

.galatea-open-published{
  display:block;
  margin:10px auto 0;
}

/* ===== mobile project card overflow fix ===== */
@media(max-width:600px){
  .project-card{
    box-sizing:border-box;
    width:100%;
    max-width:100%;
    min-width:0;
    overflow:hidden;
  }

  .project-card-main{
    width:100%;
    max-width:100%;
    min-width:0;
  }

  .project-meta{
    width:100%;
    max-width:100%;
    min-width:0;
  }

  .project-status{
    max-width:100%;
    min-width:0;
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:break-word;
  }

  .project-handoff-preview{
    display:block;
    width:100%;
    max-width:100%;
    min-width:0;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .project-actions{
    width:100%;
    max-width:100%;
    min-width:0;
  }
}


/* ZHOUYAN_WORKBENCH_HOME_20260920 */

.workbench-stage{
  margin:8px 0 28px;
}

.workbench-stage-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:12px;
}

.workbench-stage-head h2{
  margin:3px 0 0;
  font-size:clamp(22px,3vw,31px);
  letter-spacing:-.025em;
}

.workbench-doors{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.workbench-door{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:33px;
  padding:0 12px;
  border:1px solid rgba(112,78,131,.12);
  border-radius:13px;
  background:rgba(255,255,255,.54);
  color:inherit;
  font-size:11px;
  font-weight:650;
  text-decoration:none;
}

.workbench-door-soft{
  background:rgba(244,232,250,.53);
}


/* 主施工板 */

.workbench-board{
  position:relative;
  padding:13px;
  border:1px solid rgba(116,83,136,.12);
  border-radius:22px;
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.62),
      rgba(248,239,251,.58)
    );
  box-shadow:
    0 16px 40px rgba(81,56,98,.06);
  overflow:hidden;
}

.workbench-board::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.20;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 28px,
      rgba(115,83,137,.07) 29px
    );
}

.workbench-paper{
  position:relative;
  z-index:1;
  padding:19px 20px 17px;
  border:1px solid rgba(255,255,255,.74);
  border-radius:17px;
  background:rgba(255,253,255,.76);
  box-shadow:
    0 9px 25px rgba(84,59,99,.045);
}

.workbench-paper::before{
  content:"";
  position:absolute;
  top:-7px;
  left:29px;
  width:64px;
  height:16px;
  border-radius:3px;
  background:rgba(220,196,227,.51);
  transform:rotate(-1.5deg);
}

.workbench-paper-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.workbench-project-meta{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  color:rgba(89,68,102,.56);
  font-size:10px;
}

.workbench-status{
  display:inline-flex;
  align-items:center;
  min-height:23px;
  padding:0 9px;
  border-radius:999px;
  background:
    linear-gradient(
      135deg,
      rgba(235,212,247,.70),
      rgba(255,220,236,.69)
    );
  color:rgba(91,59,111,.79);
  font-weight:720;
}

.workbench-paper h3{
  margin:12px 0 16px;
  font-size:clamp(22px,3vw,29px);
  line-height:1.15;
}


/* 小安全钉 */

.safety-pin{
  display:inline-flex;
  align-items:center;
  gap:6px;
  flex:0 0 auto;
  padding:6px 9px;
  border:1px dashed rgba(108,74,128,.17);
  border-radius:10px;
  background:rgba(241,231,247,.48);
  color:rgba(93,65,109,.55);
  font-size:9px;
}

.safety-pin i{
  width:6px;
  height:6px;
  border-radius:50%;
  background:
    linear-gradient(
      135deg,
      #cda4da,
      #eeb7ca
    );
  box-shadow:
    0 0 0 3px rgba(213,181,224,.12);
}


/* 最近完成 / 下一刀 */

.workbench-progress-grid{
  display:grid;
  grid-template-columns:
    repeat(2,minmax(0,1fr));
  gap:10px;
}

.workbench-note{
  padding:12px 13px;
  border:1px solid rgba(117,83,136,.08);
  border-radius:13px;
  background:rgba(247,241,249,.46);
}

.workbench-note > span{
  display:block;
  margin-bottom:5px;
  color:rgba(105,76,121,.54);
  font-size:9px;
  font-weight:760;
}

.workbench-note p{
  margin:0;
  color:rgba(65,48,75,.83);
  font-size:12px;
  line-height:1.62;
}

.workbench-actions{
  display:flex;
  gap:7px;
  margin-top:13px;
}

.workbench-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 12px;
  border:1px solid rgba(112,77,133,.12);
  border-radius:11px;
  background:rgba(255,255,255,.60);
  color:inherit;
  font:inherit;
  font-size:11px;
  font-weight:680;
  cursor:pointer;
}

.workbench-action-primary{
  background:
    linear-gradient(
      135deg,
      rgba(229,208,246,.75),
      rgba(255,214,232,.75)
    );
}


/* 项目架不重复交接摘要 */

#projectList .project-handoff-preview{
  display:none !important;
}

#projectList .project-card{
  min-height:0 !important;
  padding:14px 16px !important;
}

#projectList .project-actions{
  margin-top:8px !important;
}


@media(max-width:720px){

  .workbench-stage-head{
    align-items:flex-start;
  }

  .workbench-door{
    min-height:30px;
    padding:0 9px;
    font-size:10px;
  }

  .workbench-board{
    padding:9px;
    border-radius:19px;
  }

  .workbench-paper{
    padding:17px 13px 13px;
  }

  .workbench-paper-top{
    align-items:flex-start;
  }

  .safety-pin{
    padding:5px 7px;
    font-size:8px;
  }

  .workbench-progress-grid{
    grid-template-columns:1fr;
    gap:7px;
  }

}

/* END_ZHOUYAN_WORKBENCH_HOME_20260920 */


/* ZHOUYAN_PROJECT_SHELF_AUTO_20260920 */

.project-shelf-hidden{
  display:none !important;
}

/* END ZHOUYAN_PROJECT_SHELF_AUTO_20260920 */

/* ZHOUYAN_PROJECT_SWITCHER_20260920 */

#projectList .project-card{
  cursor:pointer;
  transition:
    transform .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    background .16s ease;
}

#projectList .project-card:hover{
  transform:translateY(-1px);
}

#projectList .project-card.is-current-project{
  border-color:
    rgba(181,135,207,.30)
    !important;

  background:
    linear-gradient(
      135deg,
      rgba(250,244,253,.74),
      rgba(255,239,247,.61)
    )
    !important;

  box-shadow:
    0 9px 25px
    rgba(99,68,118,.07)
    !important;
}

/*
  项目架现在只负责“选项目”。
  打开 / 复制都交给上面的当前施工台。
*/
#projectList .project-actions{
  display:none !important;
}

/* END ZHOUYAN_PROJECT_SWITCHER_20260920 */





/* ZHOUYAN_PROJECT_SWITCH_BUTTON_SAFE_20260920 */

#projectList .project-switch-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  margin-top:9px;
  min-height:30px;
  padding:0 11px;

  border:1px solid rgba(112,78,131,.13);
  border-radius:11px;

  background:rgba(246,232,249,.72);

  color:inherit;
  font:inherit;
  font-size:11px;
  font-weight:650;

  cursor:pointer;
}

#projectList .project-switch-button:disabled{
  opacity:.48;
  cursor:default;
}

/* END ZHOUYAN_PROJECT_SWITCH_BUTTON_SAFE_20260920 */

/* ZHOUYAN_PROJECT_CARD_BEAUTY_20260920 */

#projectList{
  gap:12px !important;
}


/* 项目纸 */

#projectList .project-card{
  position:relative;

  overflow:hidden;

  padding:
    16px
    17px
    14px
    !important;

  border:
    1px solid
    rgba(118,82,139,.10)
    !important;

  border-radius:
    17px
    !important;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.73),
      rgba(248,240,250,.58)
    )
    !important;

  box-shadow:
    0 7px 22px
    rgba(84,58,98,.045)
    !important;

  backdrop-filter:
    blur(4px);

  -webkit-backdrop-filter:
    blur(4px);

  transition:
    transform .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    background .16s ease;
}


/* 很轻的纸张内边 */

#projectList .project-card::before{
  content:"";

  position:absolute;

  inset:5px;

  pointer-events:none;

  border:
    1px solid
    rgba(255,255,255,.45);

  border-radius:13px;
}


/* 右上角小纸角 */

#projectList .project-card::after{
  content:"";

  position:absolute;

  top:0;
  right:0;

  width:24px;
  height:24px;

  pointer-events:none;

  background:
    linear-gradient(
      225deg,
      rgba(226,205,233,.55) 0 48%,
      transparent 49%
    );

  opacity:.58;
}


/* hover 很轻，不飘太高 */

#projectList .project-card:hover{
  transform:
    translateY(-1px);

  border-color:
    rgba(157,111,179,.18)
    !important;

  box-shadow:
    0 10px 27px
    rgba(84,58,98,.065)
    !important;
}


/* 当前施工 */

#projectList .project-card.is-current-project{
  border-color:
    rgba(177,128,202,.25)
    !important;

  background:
    linear-gradient(
      145deg,
      rgba(252,247,255,.84),
      rgba(255,236,247,.66)
    )
    !important;

  box-shadow:
    0 10px 28px
    rgba(128,82,151,.085)
    !important;
}


/* 当前施工左边加一条很细的标记 */

#projectList .project-card.is-current-project{
  box-shadow:
    inset 3px 0 0
    rgba(192,145,212,.42),
    0 10px 28px
    rgba(128,82,151,.085)
    !important;
}


/* 标题 */

#projectList .project-card h3{
  position:relative;
  z-index:1;

  margin-bottom:
    7px
    !important;

  font-size:
    15px;

  letter-spacing:
    -.01em;
}


/* 状态 / 时间 */

#projectList .project-meta{
  position:relative;
  z-index:1;

  gap:7px !important;

  color:
    rgba(80,59,91,.54);

  font-size:
    10px;
}

#projectList .project-status{
  padding:
    4px
    8px;

  border-radius:
    999px;

  background:
    rgba(237,219,244,.58);

  color:
    rgba(91,61,107,.72);

  font-size:
    9px;
  font-weight:
    700;
}


/* 最新交接文字再淡一点 */

#projectList .project-handoff-preview{
  position:relative;
  z-index:1;

  margin-top:
    9px;

  color:
    rgba(75,55,86,.61);

  font-size:
    11px;

  line-height:
    1.62;
}


/* 切换按钮变成小标签 */

#projectList .project-switch-button{
  position:relative;
  z-index:2;

  margin-top:
    10px;

  min-height:
    28px;

  padding:
    0
    10px;

  border:
    1px solid
    rgba(118,82,139,.10);

  border-radius:
    10px;

  background:
    rgba(247,235,250,.65);

  color:
    rgba(81,57,94,.75);

  font-size:
    10px;

  box-shadow:none;
}

#projectList .project-switch-button:not(:disabled):hover{
  background:
    rgba(240,221,247,.82);
}

#projectList .project-switch-button:disabled{
  background:
    rgba(255,255,255,.38);

  color:
    rgba(83,62,94,.42);

  opacity:1;
}


/* 手机再轻一点 */

@media(max-width:720px){

  #projectList .project-card{
    padding:
      14px
      14px
      12px
      !important;

    border-radius:
      15px
      !important;
  }

  #projectList .project-card::after{
    width:20px;
    height:20px;
  }

}

/* END ZHOUYAN_PROJECT_CARD_BEAUTY_20260920 */



/* ZHOUYAN_PROJECT_SHELF_LAYOUT_20260920 */

/* 桌面：两张项目纸并排 */
#projectList{
  display:grid !important;

  grid-template-columns:
    repeat(2,minmax(0,1fr));

  gap:13px !important;
}


/* 卡片内部：内容左边，切换纸签右下 */
#projectList .project-card{
  display:grid !important;

  grid-template-columns:
    minmax(0,1fr)
    auto;

  grid-template-areas:
    "main switch";

  align-items:end;

  min-width:0;
}

#projectList .project-card-main{
  grid-area:main;
  min-width:0;
}


/* 切换按钮落右下，不再掉在左边 */
#projectList .project-switch-button{
  grid-area:switch;

  align-self:end;
  justify-self:end;

  margin:
    0
    0
    1px
    12px
    !important;

  white-space:nowrap;
}


/* 当前项目的纸签稍微更轻 */
#projectList
.project-card.is-current-project
.project-switch-button{
  background:
    rgba(255,255,255,.44);

  border-color:
    rgba(128,92,145,.10);
}


/* 手机：恢复上下排 */
@media(max-width:720px){

  #projectList{
    grid-template-columns:
      1fr;
  }

  #projectList .project-card{
    grid-template-columns:
      minmax(0,1fr)
      auto;
  }

  #projectList .project-switch-button{
    margin-left:9px !important;
  }

}

/* END ZHOUYAN_PROJECT_SHELF_LAYOUT_20260920 */


/* ZHOUYAN_HERO_LINKS_20260920 */

.hero-links{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  margin-left:auto;
}

.hero-links .chat-link{
  position:static !important;
  margin:0 !important;
  white-space:nowrap;
}

@media(max-width:720px){
  .hero-links{
    gap:6px;
  }
}

/* END ZHOUYAN_HERO_LINKS_20260920 */

/* ZY_PROJECT_RECENT_ACTION_CSS_START */

.project-recent-action-wrap{
  display:flex;
  justify-content:flex-start;
  margin-top:9px;
  min-width:0;
}

.project-recent-action{
  display:inline-flex;
  align-items:center;

  max-width:78%;

  padding:3px 7px;

  border:
    1px dashed
    rgba(126,101,143,.11);

  border-radius:
    6px 8px 7px 5px;

  background:
    rgba(247,239,252,.13);

  color:
    rgba(102,83,113,.50);

  font-size:10.5px;
  font-weight:430;
  line-height:1.35;

  letter-spacing:.015em;

  transform:rotate(-.18deg);

  box-shadow:none;
}

.project-recent-action-dot{
  display:none;
}

.project-recent-action-text{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

@media(max-width:600px){
  .project-recent-action{
    max-width:86%;
    font-size:10px;
  }
}

/* ZY_PROJECT_RECENT_ACTION_CSS_END */



/* ========================================
   ZHOUYAN_MEMORY_CONTINUITY_DRAWER_V1_1_20261006
   ======================================== */

.memory-sheet{
  width:min(980px, calc(100vw - 28px));
}

.memory-sheet-head{
  align-items:flex-start;
}

.memory-sheet-kicker{
  margin:.35rem 0 0;
  opacity:.58;
  font-size:.82rem;
}

.memory-head-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.memory-drawer-state{
  margin:14px 0;
  padding:10px 12px;
  border:
    1px solid
    color-mix(
      in srgb,
      currentColor 13%,
      transparent
    );
  border-radius:12px;
  opacity:.78;
  font-size:.84rem;
}

.memory-drawer-state.is-conflict{
  opacity:1;
  font-weight:650;
}

.memory-summary-grid{
  display:grid;
  grid-template-columns:
    repeat(4, minmax(0,1fr));
  gap:10px;
  margin-bottom:12px;
}

.memory-summary-item,
.memory-card{
  border:
    1px solid
    color-mix(
      in srgb,
      currentColor 12%,
      transparent
    );
  background:
    color-mix(
      in srgb,
      currentColor 4%,
      transparent
    );
  border-radius:14px;
}

.memory-summary-item{
  min-width:0;
  padding:12px;
  display:grid;
  gap:5px;
}

.memory-summary-item small{
  opacity:.52;
}

.memory-summary-item strong{
  font-size:1.02rem;
  overflow-wrap:anywhere;
}

.memory-summary-item span{
  opacity:.66;
  font-size:.78rem;
  overflow-wrap:anywhere;
}

.memory-grid{
  display:grid;
  grid-template-columns:
    repeat(2, minmax(0,1fr));
  gap:10px;
}

.memory-card{
  padding:14px;
  min-width:0;
}

.memory-card-wide{
  grid-column:1 / -1;
}

.memory-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.memory-card-head > div{
  display:grid;
  gap:3px;
}

.memory-card-head small{
  opacity:.52;
}

.memory-verified-list{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:4px 0 12px;
}

.memory-day-button{
  appearance:none;
  border:
    1px solid
    color-mix(
      in srgb,
      currentColor 14%,
      transparent
    );
  background:
    color-mix(
      in srgb,
      currentColor 5%,
      transparent
    );
  color:inherit;
  border-radius:999px;
  padding:7px 10px;
  display:flex;
  align-items:center;
  gap:7px;
  cursor:pointer;
}

.memory-day-button small{
  opacity:.46;
  font-size:.68rem;
}

.memory-day-button:disabled{
  opacity:.32;
  cursor:default;
}

.memory-artifact-meta{
  min-height:1.2em;
  margin:0 0 7px;
  opacity:.58;
  font-size:.76rem;
  overflow-wrap:anywhere;
}

.memory-artifact-text{
  max-height:46vh;
  overflow:auto;
  margin:0;
  padding:12px;
  border-radius:12px;
  background:
    color-mix(
      in srgb,
      currentColor 4%,
      transparent
    );
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font:inherit;
  font-size:.82rem;
  line-height:1.68;
}

.memory-project-status{
  margin:0 0 8px;
  font-weight:650;
}

.memory-project-next{
  margin:0;
  opacity:.66;
  line-height:1.58;
  font-size:.84rem;
}

.memory-readonly-note{
  margin:12px 2px 0;
  opacity:.48;
  font-size:.76rem;
  line-height:1.55;
}

.memory-empty{
  opacity:.5;
  font-size:.82rem;
}

@media(max-width:760px){
  .memory-summary-grid,
  .memory-grid{
    grid-template-columns:1fr;
  }

  .memory-card-wide{
    grid-column:auto;
  }

  .memory-sheet{
    width:min(
      100%,
      calc(100vw - 16px)
    );
  }

  .memory-artifact-text{
    max-height:42vh;
  }
}

/* END ZHOUYAN_MEMORY_CONTINUITY_DRAWER_V1_1_20261006 */


/* ========================================
   ZHOUYAN_MEMORY_CONTINUITY_DRAWER_V1_1_VISUAL_20261006
   V1.1 visual reduction only.
   ======================================== */

.memory-summary-item{
  border-color:
    color-mix(
      in srgb,
      currentColor 8%,
      transparent
    );

  background:
    color-mix(
      in srgb,
      currentColor 2%,
      transparent
    );

  padding:11px 12px;
}

.memory-summary-item strong{
  font-size:.98rem;
  font-weight:680;
}

.memory-card{
  background:
    color-mix(
      in srgb,
      currentColor 2.5%,
      transparent
    );
}

.memory-grid
.memory-card:not(.memory-card-wide){
  padding:13px 14px;
}

.memory-project-next{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;

  opacity:.56;
  font-size:.8rem;
  line-height:1.46;
}

.memory-project-status{
  margin-bottom:6px;
  font-size:.94rem;
}

/* END ZHOUYAN_MEMORY_CONTINUITY_DRAWER_V1_1_VISUAL_20261006 */

/* ZHOUYAN_P1B_DIARY_HIDE_GALLERY_MIGRATION_V2_20261006
   P1-B:
   - Codex 日记：只隐藏 Workroom 入口；本地 diary 存储与工具保留，继续与 House diary 双写
   - 旧图片收藏：已迁入 House collection 后退出 Workroom 日常界面
*/
#diaryTool,
#diaryLayer,
#galleryTool,
#galleryLayer,
#galleryPreviewLayer{
  display:none !important;
}
/* END ZHOUYAN_P1B_DIARY_HIDE_GALLERY_MIGRATION_V2_20261006 */

/* ZHOUYAN_CHAT_CONTEXT_STYLE_AUTHORITY_20261007 */

.chat-result-meta{
  margin-top:8px;
  font-size:10px;
  line-height:1.45;
  color:rgba(86,74,94,.48);
  overflow-wrap:anywhere;
}

.chat-result-actions{
  display:flex;
  gap:8px;
  margin-top:10px;
}

.zy-context-open{
  min-height:30px;
  padding:0 11px;
  font-size:11px;
}

.chat-context-panel{
  margin-top:13px;
  padding-top:13px;
  border-top:1px solid rgba(117,92,128,.10);
}

.chat-context-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:11px;
}

.chat-context-head strong{
  font-size:13px;
  color:rgba(66,54,73,.86);
}

.chat-context-source{
  margin-top:3px;
  font-size:10px;
  color:rgba(86,74,94,.46);
  overflow-wrap:anywhere;
}

.chat-context-stream{
  display:grid;
  gap:8px;
  max-height:min(54vh,560px);
  overflow:auto;
  padding:3px 2px 5px;
}

.chat-context-message{
  padding:9px 11px;
  border:1px solid rgba(114,91,128,.08);
  border-radius:12px;
  background:rgba(255,255,255,.38);
}

.chat-context-message.user{
  margin-left:min(8%,34px);
}

.chat-context-message.assistant{
  margin-right:min(8%,34px);
}

.chat-context-message.is-anchor{
  border-color:rgba(164,112,152,.28);
  box-shadow:0 0 0 2px rgba(190,147,181,.06);
}

.chat-context-message-head{
  display:flex;
  align-items:center;
  gap:7px;
  margin-bottom:5px;
  font-size:10px;
  color:rgba(75,61,82,.60);
}

.chat-context-message-head time{
  margin-left:auto;
  white-space:nowrap;
  color:rgba(75,61,82,.43);
}

.chat-context-hit{
  padding:1px 6px;
  border-radius:999px;
  background:rgba(183,131,169,.12);
  color:rgba(123,75,111,.76);
}

.chat-context-text{
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font-size:12px;
  line-height:1.68;
  color:rgba(58,49,63,.84);
}

.chat-context-controls{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:11px;
}

.chat-context-controls button{
  min-height:30px;
  padding:0 10px;
  font-size:10px;
}

@media(max-width:720px){
  .chat-context-message.user{
    margin-left:12px;
  }

  .chat-context-message.assistant{
    margin-right:12px;
  }

  .chat-context-stream{
    max-height:58vh;
  }
}

/* END CHAT CONTEXT STYLE */

/* ZHOUYAN_WORKROOM_MOBILE_FOCUS_ZOOM_AUTHORITY_20261007 */

@media(max-width:760px){

  html{
    -webkit-text-size-adjust:100%;
    text-size-adjust:100%;
  }

  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
  textarea,
  select{
    font-size:16px !important;
  }

}

/* END ZHOUYAN_WORKROOM_MOBILE_FOCUS_ZOOM_AUTHORITY_20261007 */




/* AUTHORITY: reminder-mobile-form-sizing
   revision: 2026-10-07-r2
   Same field geometry as chat keyword.
*/

@media(max-width:760px){

  #reminderManageLayer .tool-sheet{
    box-sizing:border-box;

    width:min(680px,100%);
    max-width:100%;
  }


  #reminderManageLayer .reminder-create-form{
    width:100%;
    min-width:0;

    grid-template-columns:
      minmax(0,1fr);
  }


  #reminderManageLayer .reminder-create-form label,
  #reminderManageLayer .reminder-create-form .wide-field{
    box-sizing:border-box;

    width:100%;
    min-width:0;

    grid-column:1;

    overflow:hidden;
  }


  #reminderManageLayer .reminder-create-form input,
  #reminderManageLayer .reminder-create-form select,
  #reminderManageLayer .reminder-create-form textarea,
  #reminderManageLayer .manage-filter-row input{
    display:block;

    box-sizing:border-box;

    width:100%;
    width:-webkit-fill-available;

    min-width:0;
    max-width:100%;

    height:auto;
    min-height:0;

    margin:0;

    padding:11px 12px;

    border:
      1px solid
      rgba(111,86,125,.13);

    border-radius:14px;

    background:
      rgba(250,247,252,.88);

    font-size:16px !important;
    line-height:1.2;
  }


  #reminderManageLayer .reminder-create-form textarea{
    min-height:76px;
  }


  #reminderManageLayer input[type="date"],
  #reminderManageLayer input[type="datetime-local"],
  #reminderManageLayer input[type="number"],
  #reminderManageLayer input[type="search"],
  #reminderManageLayer select{
    width:100%;
    width:-webkit-fill-available;

    min-width:0;
    max-width:100%;

    -webkit-appearance:auto;
    appearance:auto;
  }


  #reminderManageLayer
  input[type="date"]::-webkit-date-and-time-value,
  #reminderManageLayer
  input[type="datetime-local"]::-webkit-date-and-time-value{
    width:100%;
    min-width:0;

    margin:0;
    padding:0;
  }


  #reminderManageLayer .manage-filter-row{
    grid-template-columns:
      minmax(0,1fr)
      minmax(0,1fr);

    gap:8px;
  }


  #reminderManageLayer .manage-filter-row input{
    grid-column:1 / -1;
  }


  #reminderManageLayer .manage-filter-row button{
    width:100%;
  }

}

/* END AUTHORITY: reminder-mobile-form-sizing */
