.detail-view{
      margin-top:34px;
      display:none;
    }
    .detail-view.show{display:block;}
    .memory-inline-detail{
      margin-top:14px;
      margin-bottom:22px;
    }
    .detail-top{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      margin-bottom:18px;
    }
    .detail-top-left{
      display:flex;
      align-items:center;
      gap:8px;
      min-width:0;
    }
    .detail-date{
      font-size:14px;
      font-weight:800;
      color:#111;
      letter-spacing:-0.2px;
      line-height:1.45;
      white-space:nowrap;
    }
    .detail-actions{
      display:flex;
      align-items:center;
      gap:8px;
      flex-wrap:nowrap;
    }
    .icon-btn{
      width:32px;
      height:32px;
      border:1px solid var(--line);
      border-radius:10px;
      background:#fff;
      display:flex;
      align-items:center;
      justify-content:center;
      cursor:pointer;
      -webkit-tap-highlight-color:transparent;
    }
    .icon-btn svg{
      width:15px;
      height:15px;
      stroke:#111;
      opacity:0.82;
    }
    .icon-btn:active{transform:translateY(1px);}
    .icon-btn[disabled]{opacity:0.4; cursor:not-allowed;}

    .detail-card{
      border-top:1px solid var(--line);
      padding-top:18px;
    }
    .detail-title{
      margin:0 0 10px;
      font-size:18px;
      font-weight:900;
      line-height:1.45;
      letter-spacing:-0.2px;
      word-break:keep-all;
    }
    .detail-sub{
      margin:0 0 16px;
      font-size:13px;
      color:var(--muted);
      font-weight:700;
      line-height:1.5;
      word-break:keep-all;
    }
    .detail-body{
      margin:0;
      font-size:14px;
      color:#111;
      line-height:1.75;
      white-space:pre-wrap;
      word-break:keep-all;
    }

    .edit-wrap{display:none;}
    .edit-wrap.show{display:block;}
    .edit-label{
      display:block;
      font-family:var(--mono);
      font-size:10px;
      font-weight:900;
      color:var(--muted);
      letter-spacing:0.7px;
      margin:0 0 8px;
    }
    .edit-input,
    .edit-textarea{
      width:100%;
      border:1px solid var(--line);
      border-radius:14px;
      background:#fff;
      padding:14px 14px;
      font-family:var(--ui);
      font-size:14px;
      color:#111;
      outline:none;
      margin-bottom:12px;
    }
    .edit-textarea{
      min-height:180px;
      resize:vertical;
      line-height:1.7;
    }
    .edit-input:focus,
    .edit-textarea:focus{
      border-color:#d4d4d4;
    }

    .empty{
      border:none;
      border-radius:0;
      padding:12px 2px;
      background:transparent;
      font-family:var(--mono);
      font-size:10px;
      font-weight:900;
      color:var(--muted2);
      letter-spacing:0.5px;
      word-break:keep-all;
    }

    
